Vulnerabilities > CVE-2010-3814 - Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in Freetype
Attack vector
UNKNOWN Attack complexity
UNKNOWN Privileges required
UNKNOWN Confidentiality impact
UNKNOWN Integrity impact
UNKNOWN Availability impact
UNKNOWN Summary
Heap-based buffer overflow in the Ins_SHZ function in ttinterp.c in FreeType 2.4.3 and earlier allows remote attackers to execute arbitrary code or cause a denial of service (application crash) via a crafted SHZ bytecode instruction, related to TrueType opcodes, as demonstrated by a PDF document with a crafted embedded font.
Vulnerable Configurations
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 SuSE Local Security Checks NASL id SUSE_FREETYPE2-7366.NASL description Specially crafted font files could crash applications that use freetype2 to render the fonts. (CVE-2010-3814 / CVE-2010-3855) last seen 2020-06-01 modified 2020-06-02 plugin id 53487 published 2011-04-19 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53487 title SuSE 10 Security Update : freetype2 (ZYPP Patch Number 7366) code #%NASL_MIN_LEVEL 80502 # # (C) Tenable Network Security, Inc. # # The text description of this plugin is (C) Novell, Inc. # include("compat.inc"); if (description) { script_id(53487); script_version ("1.6"); script_cvs_date("Date: 2019/10/25 13:36:43"); script_cve_id("CVE-2010-3814", "CVE-2010-3855"); script_name(english:"SuSE 10 Security Update : freetype2 (ZYPP Patch Number 7366)"); script_summary(english:"Checks rpm output for the updated packages"); script_set_attribute( attribute:"synopsis", value:"The remote SuSE 10 host is missing a security-related patch." ); script_set_attribute( attribute:"description", value: "Specially crafted font files could crash applications that use freetype2 to render the fonts. (CVE-2010-3814 / CVE-2010-3855)" ); script_set_attribute( attribute:"see_also", value:"http://support.novell.com/security/cve/CVE-2010-3814.html" ); script_set_attribute( attribute:"see_also", value:"http://support.novell.com/security/cve/CVE-2010-3855.html" ); script_set_attribute(attribute:"solution", value:"Apply ZYPP patch number 7366."); script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/o:suse:suse_linux"); script_set_attribute(attribute:"patch_publication_date", value:"2011/03/05"); script_set_attribute(attribute:"plugin_publication_date", value:"2011/04/19"); script_end_attributes(); script_category(ACT_GATHER_INFO); script_copyright(english:"This script is Copyright (C) 2011-2019 Tenable Network Security, Inc."); script_family(english:"SuSE Local Security Checks"); script_dependencies("ssh_get_info.nasl"); script_require_keys("Host/local_checks_enabled", "Host/cpu", "Host/SuSE/release", "Host/SuSE/rpm-list"); exit(0); } include("global_settings.inc"); include("rpm.inc"); if (!get_kb_item("Host/local_checks_enabled")) exit(0, "Local checks are not enabled."); if (!get_kb_item("Host/SuSE/release")) exit(0, "The host is not running SuSE."); if (!get_kb_item("Host/SuSE/rpm-list")) exit(1, "Could not obtain the list of installed packages."); cpu = get_kb_item("Host/cpu"); if (isnull(cpu)) exit(1, "Failed to determine the architecture type."); if (cpu >!< "x86_64" && cpu !~ "^i[3-6]86$") exit(1, "Local checks for SuSE 10 on the '"+cpu+"' architecture have not been implemented."); flag = 0; if (rpm_check(release:"SLES10", sp:3, reference:"freetype2-2.1.10-18.25.11")) flag++; if (rpm_check(release:"SLES10", sp:3, reference:"freetype2-devel-2.1.10-18.25.11")) flag++; if (rpm_check(release:"SLES10", sp:3, cpu:"x86_64", reference:"freetype2-32bit-2.1.10-18.25.11")) flag++; if (rpm_check(release:"SLES10", sp:3, cpu:"x86_64", reference:"freetype2-devel-32bit-2.1.10-18.25.11")) flag++; if (flag) { if (report_verbosity > 0) security_warning(port:0, extra:rpm_report_get()); else security_warning(0); exit(0); } else exit(0, "The host is not affected.");
NASL family SuSE Local Security Checks NASL id SUSE_11_3_FREETYPE2-110303.NASL description Specially crafted font files could crash applications that use freetype2 to render the fonts (CVE-2010-3814, CVE-2010-3855). last seen 2020-06-01 modified 2020-06-02 plugin id 75505 published 2014-06-13 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/75505 title openSUSE Security Update : freetype2 (openSUSE-SU-2011:0361-1) NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-1013-1.NASL description Marc Schoenefeld discovered that FreeType did not correctly handle certain malformed font files. If a user were tricked into using a specially crafted font file, a remote attacker could cause FreeType to crash or possibly execute arbitrary code with user privileges. This issue only affected Ubuntu 6.06 LTS, 8.04 LTS, 9.10 and 10.04 LTS. (CVE-2010-3311) Chris Evans discovered that FreeType did not correctly handle certain malformed TrueType font files. If a user were tricked into using a specially crafted TrueType file, a remote attacker could cause FreeType to crash or possibly execute arbitrary code with user privileges. This issue only affected Ubuntu 8.04 LTS, 9.10, 10.04 LTS and 10.10. (CVE-2010-3814) It was discovered that FreeType did not correctly handle certain malformed TrueType font files. If a user were tricked into using a specially crafted TrueType file, a remote attacker could cause FreeType to crash or possibly execute arbitrary code with user privileges. (CVE-2010-3855). 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 50491 published 2010-11-05 reporter Ubuntu Security Notice (C) 2010-2019 Canonical, Inc. / NASL script (C) 2010-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/50491 title Ubuntu 6.06 LTS / 8.04 LTS / 9.10 / 10.04 LTS / 10.10 : freetype vulnerabilities (USN-1013-1) NASL family SuSE Local Security Checks NASL id SUSE_FREETYPE2-7399.NASL description Specially crafted font files could crash applications that use freetype2 to render the fonts. (CVE-2010-3814 / CVE-2010-3855) last seen 2020-06-01 modified 2020-06-02 plugin id 57197 published 2011-12-13 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/57197 title SuSE 10 Security Update : freetype2 (ZYPP Patch Number 7399) NASL family SuSE Local Security Checks NASL id SUSE_11_FREETYPE2-110304.NASL description Specially crafted font files could crash applications that use freetype2 to render the fonts. (CVE-2010-3814 / CVE-2010-3855) last seen 2020-06-01 modified 2020-06-02 plugin id 53313 published 2011-04-07 reporter This script is Copyright (C) 2011-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/53313 title SuSE 11.1 Security Update : freetype2 (SAT Patch Number 4089) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2010-236.NASL description Multiple vulnerabilities were discovered and corrected in freetype2 : An error within the last seen 2020-06-01 modified 2020-06-02 plugin id 50608 published 2010-11-16 reporter This script is Copyright (C) 2010-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/50608 title Mandriva Linux Security Advisory : freetype2 (MDVSA-2010:236) NASL family MacOS X Local Security Checks NASL id MACOSX_10_6_7.NASL description The remote host is running a version of Mac OS X 10.6.x that is prior to 10.6.7. Mac OS X 10.6.7 contains security fixes for the following products : - AirPort - Apache - AppleScript - ATS - bzip2 - CarbonCore - ClamAV - CoreText - File Quarantine - HFS - ImageIO - Image RAW - Installer - Kerberos - Kernel - Libinfo - libxml - Mailman - PHP - QuickLook - QuickTime - Ruby - Samba - Subversion - Terminal - X11 last seen 2020-06-01 modified 2020-06-02 plugin id 52754 published 2011-03-22 reporter This script is Copyright (C) 2011-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/52754 title Mac OS X 10.6.x < 10.6.7 Multiple Vulnerabilities NASL family Debian Local Security Checks NASL id DEBIAN_DSA-2155.NASL description Two buffer overflows were found in the Freetype font library, which could lead to the execution of arbitrary code. last seen 2020-03-17 modified 2011-02-01 plugin id 51828 published 2011-02-01 reporter This script is Copyright (C) 2011-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/51828 title Debian DSA-2155-1 : freetype - several vulnerabilities NASL family SuSE Local Security Checks NASL id SUSE_11_2_FREETYPE2-110303.NASL description Specially crafted font files could crash applications that use freetype2 to render the fonts (CVE-2010-3814, CVE-2010-3855). last seen 2020-06-01 modified 2020-06-02 plugin id 53723 published 2011-05-05 reporter This script is Copyright (C) 2011-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/53723 title openSUSE Security Update : freetype2 (openSUSE-SU-2011:0361-1) NASL family MacOS X Local Security Checks NASL id MACOSX_SECUPD2011-001.NASL description The remote host is running a version of Mac OS X 10.5 that does not have Security Update 2011-001 applied. This security update contains fixes for the following products : - Apache - bzip2 - ClamAV - ImageIO - Kerberos - Libinfo - libxml - Mailman - PHP - QuickLook - Ruby - X11 last seen 2020-06-01 modified 2020-06-02 plugin id 52753 published 2011-03-22 reporter This script is Copyright (C) 2011-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/52753 title Mac OS X Multiple Vulnerabilities (Security Update 2011-001) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201201-09.NASL description The remote host is affected by the vulnerability described in GLSA-201201-09 (FreeType: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in FreeType. Please review the CVE identifiers referenced below for details. Impact : A remote attacker could entice a user to open a specially crafted font, possibly resulting in the remote execution of arbitrary code with the privileges of the user running the application, or a Denial of Service. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 57651 published 2012-01-24 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/57651 title GLSA-201201-09 : FreeType: Multiple vulnerabilities
References
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602221
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=602221
- http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=0edf0986f3be570f5bf90ff245a85c1675f5c9a4
- http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=0edf0986f3be570f5bf90ff245a85c1675f5c9a4
- http://lists.apple.com/archives/security-announce/2010//Nov/msg00003.html
- http://lists.apple.com/archives/security-announce/2010//Nov/msg00003.html
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://lists.apple.com/archives/security-announce/2011/Mar/msg00006.html
- http://secunia.com/advisories/42314
- http://secunia.com/advisories/42314
- http://secunia.com/advisories/43138
- http://secunia.com/advisories/43138
- http://secunia.com/advisories/48951
- http://secunia.com/advisories/48951
- http://security-tracker.debian.org/tracker/CVE-2010-3814
- http://security-tracker.debian.org/tracker/CVE-2010-3814
- http://support.apple.com/kb/HT4456
- http://support.apple.com/kb/HT4456
- http://support.apple.com/kb/HT4581
- http://support.apple.com/kb/HT4581
- http://www.debian.org/security/2011/dsa-2155
- http://www.debian.org/security/2011/dsa-2155
- http://www.mandriva.com/security/advisories?name=MDVSA-2010:236
- http://www.mandriva.com/security/advisories?name=MDVSA-2010:236
- http://www.securityfocus.com/bid/44643
- http://www.securityfocus.com/bid/44643
- http://www.securitytracker.com/id?1024767
- http://www.securitytracker.com/id?1024767
- http://www.ubuntu.com/usn/USN-1013-1
- http://www.ubuntu.com/usn/USN-1013-1
- http://www.vupen.com/english/advisories/2010/3046
- http://www.vupen.com/english/advisories/2010/3046
- http://www.vupen.com/english/advisories/2011/0246
- http://www.vupen.com/english/advisories/2011/0246