Buffer overflow in FreeBSD
CVE-2009-0689
Array index error in the (1) dtoa implementation in dtoa.c (aka pdtoa.c) and the (2) gdtoa (aka new dtoa) implementation in gdtoa/misc.c in libc, as used in multiple operating systems and products including in FreeBSD 6.4 and 7.2, NetBSD 5.0, OpenBSD 4.5, Mozilla Firefox 3.0.x before 3.0.15 and 3.5.x before 3.5.4, K-Meleon 1.5.3, SeaMonkey 1.1.8, and other products, allows context-dependent attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a large precision value in the format argument to a printf function, which triggers incorrect memory allocation and a heap-based buffer overflow during conversion to a floating-point number.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.8 (Medium). Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.294, 98.2th percentile (scored ); up from 0.281 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.281 · newest: 0.294 · change: +0.013
Affected products
- FreeBSD — versions 6.4, 7.2
- K-Meleon Project — versions 1.5.3
- Mozilla Firefox — versions 3.0.1, 3.0.2, 3.0.3
- Mozilla Seamonkey — versions 1.1.8
- NetBSD — versions 5.0
- OpenBSD — versions 4.5
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- Fullmetal5/str2hax (89 stars, last pushed 2019-09-30): An implementation of CVE-2009-0689 for the Nintendo Wii.
Also mentioned in 4 other repositories (ARPSyndicate/cvemon, CVEDB/awesome-cve-repo, CVEDB/PoC-List, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gdtoa/gdtoaimp.h (Patch)
- secunia.com/secunia_research/2009-35/ (Vendor Advisory)
- bugzilla.mozilla.org/show_bug.cgi
- 20090625 Multiple Vendors libc/gdtoa printf(3) Array Overrun (Exploit, third-party-advisory)
- 20091120 SeaMonkey 1.1.8 Remote Array Overrun (Arbitrary code execution) (mailing-list)
- 20091211 Thunderbird 2.0.0.23 (lib) Remote Array Overrun (Arbitrary code execution) (third-party-advisory)
- RHSA-2010:0153 (vendor-advisory)
- 20091211 Flock 2.5.2 Remote Array Overrun (Arbitrary code execution) (third-party-advisory)
- MDVSA-2009:330 (vendor-advisory)
- secunia.com/advisories/39001 (third-party-advisory, Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.