Vulnerabilities > CVE-2013-2021 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in multiple products
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
pdf.c in ClamAV 0.97.1 through 0.97.7 allows remote attackers to cause a denial of service (out-of-bounds-read) via a crafted length value in an encrypted PDF file.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
OS | 5 | |
OS | 2 | |
Application | 7 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2013-10980.NASL description Fix 963920 Update to 0.97.8 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2013-07-12 plugin id 67295 published 2013-07-12 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/67295 title Fedora 17 : clamav-0.97.8-2.fc17 (2013-10980) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The descriptive text and package checks in this plugin were # extracted from Fedora Security Advisory 2013-10980. # include("compat.inc"); if (description) { script_id(67295); script_version("1.4"); script_set_attribute(attribute:"plugin_modification_date", value:"2020/03/12"); script_cve_id("CVE-2013-2020", "CVE-2013-2021"); script_bugtraq_id(59434, 60118); script_xref(name:"FEDORA", value:"2013-10980"); script_name(english:"Fedora 17 : clamav-0.97.8-2.fc17 (2013-10980)"); script_summary(english:"Checks rpm output for the updated package."); script_set_attribute( attribute:"synopsis", value:"The remote Fedora host is missing a security update." ); script_set_attribute( attribute:"description", value: "Fix 963920 Update to 0.97.8 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues." ); script_set_attribute( attribute:"see_also", value:"https://bugzilla.redhat.com/show_bug.cgi?id=956176" ); # https://lists.fedoraproject.org/pipermail/package-announce/2013-June/109652.html script_set_attribute( attribute:"see_also", value:"http://www.nessus.org/u?a42ead40" ); script_set_attribute( attribute:"solution", value:"Update the affected clamav package." ); script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P"); script_set_cvss_temporal_vector("CVSS2#E:ND/RL:OF/RC:C"); script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available"); script_set_attribute(attribute:"exploit_available", value:"false"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"p-cpe:/a:fedoraproject:fedora:clamav"); script_set_attribute(attribute:"cpe", value:"cpe:/o:fedoraproject:fedora:17"); script_set_attribute(attribute:"patch_publication_date", value:"2013/06/16"); script_set_attribute(attribute:"plugin_publication_date", value:"2013/07/12"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2013-2020 Tenable Network Security, Inc."); script_family(english:"Fedora Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/RedHat/release", "Host/RedHat/rpm-list"); exit(0); } include("audit.inc"); include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED); release = get_kb_item("Host/RedHat/release"); if (isnull(release) || "Fedora" >!< release) audit(AUDIT_OS_NOT, "Fedora"); os_ver = eregmatch(pattern: "Fedora.*release ([0-9]+)", string:release); if (isnull(os_ver)) audit(AUDIT_UNKNOWN_APP_VER, "Fedora"); os_ver = os_ver[1]; if (! ereg(pattern:"^17([^0-9]|$)", string:os_ver)) audit(AUDIT_OS_NOT, "Fedora 17.x", "Fedora " + os_ver); if (!get_kb_item("Host/RedHat/rpm-list")) audit(AUDIT_PACKAGE_LIST_MISSING); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) audit(AUDIT_UNKNOWN_ARCH); if ("x86_64" >!< cpu && cpu !~ "^i[3-6]86$") audit(AUDIT_LOCAL_CHECKS_NOT_IMPLEMENTED, "Fedora", cpu); flag = 0; if (rpm_check(release:"FC17", reference:"clamav-0.97.8-2.fc17")) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get()); else security_warning(0); exit(0); } else { tested = pkg_tests_get(); if (tested) audit(AUDIT_PACKAGE_NOT_AFFECTED, tested); else audit(AUDIT_PACKAGE_NOT_INSTALLED, "clamav"); }
NASL family SuSE Local Security Checks NASL id OPENSUSE-2013-430.NASL description New clamav version 0.97.8 (bnc#816865) : - CVE-2013-2020: Fix heap corruption - CVE-2013-2021: Fix overflow due to PDF key length computation. last seen 2020-06-05 modified 2014-06-13 plugin id 75004 published 2014-06-13 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/75004 title openSUSE Security Update : clamav (openSUSE-SU-2013:0881-1) NASL family Misc. NASL id CLAMAV_0_97_8.NASL description According to its version, the ClamAV clamd antivirus daemon on the remote host is earlier than 0.97.8 and is, therefore, potentially affected by the following vulnerabilities : - An overflow condition exists in the last seen 2020-06-01 modified 2020-06-02 plugin id 66308 published 2013-05-03 reporter This script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/66308 title ClamAV < 0.97.8 Multiple Vulnerabilities NASL family MacOS X Local Security Checks NASL id MACOSX_SECUPD2013-004.NASL description The remote host is running a version of Mac OS X 10.6 or 10.7 that does not have Security Update 2013-004 applied. This update contains several security-related fixes for the following component : - Apache - Bind - Certificate Trust Policy - ClamAV - Installer - IPSec - Mobile Device Management - OpenSSL - PHP - PostgreSQL - QuickTime - sudo Note that successful exploitation of the most serious issues could result in arbitrary code execution. last seen 2020-06-01 modified 2020-06-02 plugin id 69878 published 2013-09-13 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/69878 title Mac OS X Multiple Vulnerabilities (Security Update 2013-004) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201405-08.NASL description The remote host is affected by the vulnerability described in GLSA-201405-08 (ClamAV: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in ClamAV. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could send a specially crafted file, leading to arbitrary code execution or a Denial of Service condition. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 74051 published 2014-05-19 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/74051 title GLSA-201405-08 : ClamAV: Multiple vulnerabilities NASL family Fedora Local Security Checks NASL id FEDORA_2013-10953.NASL description Fix 963920 Update to 0.97.8 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2013-07-12 plugin id 67294 published 2013-07-12 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/67294 title Fedora 18 : clamav-0.97.8-2.fc18 (2013-10953) NASL family SuSE Local Security Checks NASL id SUSE_11_CLAMAV-130604.NASL description This release of clamav provides version 0.97.8 and fixes several potential security issues (bnc#816865) : - Fix heap corruption. (CVE-2013-2020) - Fix overflow due to PDF key length computation. (CVE-2013-2021) last seen 2020-06-05 modified 2013-06-21 plugin id 66953 published 2013-06-21 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/66953 title SuSE 11.2 / 11.3 Security Update : clamav (SAT Patch Numbers 7821 / 7915) NASL family SuSE Local Security Checks NASL id SUSE_CLAMAV-8606.NASL description This update contains clamav 0.97.8 which fixes security issues (bnc#816865) : - Fix heap corruption. (CVE-2013-2020) - Fix overflow due to PDF key length computation. (CVE-2013-2021) last seen 2020-06-05 modified 2013-06-21 plugin id 66956 published 2013-06-21 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/66956 title SuSE 10 Security Update : clamav (ZYPP Patch Number 8606) NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-1816-1.NASL description It was discovered that ClamAV would incorrectly parse a UPX-packed executable, leading to possible inappropriate heap reads. An attacker could use this issue to cause ClamAV to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2013-2020) It was discovered that ClamAV would incorrectly parse a PDF document, potentially writing beyond the size of a static array. An attacker could use this issue to cause ClamAV to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2013-2021). Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 66314 published 2013-05-04 reporter Ubuntu Security Notice (C) 2013-2019 Canonical, Inc. / NASL script (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/66314 title Ubuntu 10.04 LTS / 11.10 / 12.04 LTS / 12.10 / 13.04 : clamav vulnerabilities (USN-1816-1) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2013-159.NASL description ClamAV 0.97.8 addresses several reported potential security bugs. last seen 2020-06-01 modified 2020-06-02 plugin id 66286 published 2013-05-01 reporter This script is Copyright (C) 2013-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/66286 title Mandriva Linux Security Advisory : clamav (MDVSA-2013:159) NASL family MacOS X Local Security Checks NASL id MACOSX_SERVER_2_2_2.NASL description The remote Mac OS X 10.8 host has a version of OS X Server installed that is prior to 2.2.2. It is, therefore, affected by the following vulnerabilities : - Two vulnerabilities exist in the included ClamAV software, the most serious of which could allow an attacker to execute arbitrary code remotely. (CVE-2013-2020 / CVE-2013-2021) - Three vulnerabilities exist in the included PostgreSQL software, the most serious of which could result in data corruption or privilege escalation. (CVE-2013-1899 / CVE-2013-1900 / CVE-2013-1901) - Multiple cross-site scripting issues exist in the included Wiki Server software (CVE-2013-1034) last seen 2020-06-01 modified 2020-06-02 plugin id 69932 published 2013-09-17 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/69932 title Mac OS X : OS X Server < 2.2.2 Multiple Vulnerabilities NASL family Fedora Local Security Checks NASL id FEDORA_2013-8047.NASL description Update to 0.97.8 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2013-05-16 plugin id 66454 published 2013-05-16 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/66454 title Fedora 18 : clamav-0.97.8-1.fc18 (2013-8047) NASL family Fedora Local Security Checks NASL id FEDORA_2013-10853.NASL description Fix 963920 Update to 0.97.8 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2013-07-12 plugin id 67289 published 2013-07-12 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/67289 title Fedora 19 : clamav-0.97.8-2.fc19 (2013-10853)
References
- http://www.securityfocus.com/bid/59434
- https://bugzilla.clamav.net/show_bug.cgi?id=7053
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:159
- http://www.ubuntu.com/usn/USN-1816-1
- https://github.com/vrtadmin/clamav-devel/commit/24ff855c82d3f5c62bc5788a5776cefbffce2971
- http://www.openwall.com/lists/oss-security/2013/04/25/2
- http://secunia.com/advisories/53150
- http://secunia.com/advisories/53182
- http://www.openwall.com/lists/oss-security/2013/04/29/20
- http://blog.clamav.net/2013/04/clamav-0978-has-been-released.html
- http://lists.opensuse.org/opensuse-updates/2013-06/msg00020.html
- http://lists.opensuse.org/opensuse-updates/2013-06/msg00018.html
- http://lists.fedoraproject.org/pipermail/package-announce/2013-June/109514.html
- http://lists.fedoraproject.org/pipermail/package-announce/2013-June/109639.html
- http://lists.fedoraproject.org/pipermail/package-announce/2013-June/109652.html
- http://lists.apple.com/archives/security-announce/2013/Sep/msg00002.html
- http://support.apple.com/kb/HT5880
- http://lists.apple.com/archives/security-announce/2013/Sep/msg00004.html
- http://support.apple.com/kb/HT5892
- http://lists.fedoraproject.org/pipermail/package-announce/2013-May/105575.html
- http://lists.opensuse.org/opensuse-security-announce/2014-12/msg00006.html