CVE-2009-0689: Buffer Overflow

Published Jul 1, 2009
·
Updated

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.

Other sources

It was reported [1] that KDE's kdelibs 4.3.3, and possibly earlier versions, suffers from a flaw in its dtoa implementation. A heap-based buffer overflow in the string to floating point number conversion routines could allow an attacker to craft some malicious JavaScript code containing a very long string to be converted to a floating point number. This could result in improper memory allocation and the execution of an arbitrary memory location, which could be leveraged to run arbitrary code on the victim's computer.

This same flaw was originally reported against OpenBSD and NetBSD [2], and is similar to the Mozilla flaw CVE-2009-1563. A patch to correct this issue was commited to kdelibs/kjs/dtoa.cpp today [3].

[1] http://marc.info/?l=full-disclosure&m=125867830114502&w=2 [2] http://securityreason.com/achievementsecurityalert/63 [3] http://lists.kde.org/?l=kde-commits&m=125874573511598&w=2 http://websvn.kde.org/?view=revision&revision=1052100

— Red Hat

Affected Software

32 affected components
FreeBSD FreeBSD=6.4-release_p2
Mozilla Firefox=3.5.3
Mozilla SeaMonkey=1.1.8
Mozilla Firefox=3.0.7
FreeBSD FreeBSD=6.4
Mozilla Firefox=3.0.9
FreeBSD FreeBSD=6.4-release_p5
NetBSD NetBSD=5.0
Mozilla Firefox=3.0.8
Mozilla Firefox=3.5
Mozilla Firefox=3.0.4
K-meleon Project K-meleon=1.5.3
FreeBSD FreeBSD=6.4-release
Mozilla Firefox=3.0.5
Mozilla Firefox=3.5.1
Mozilla Firefox=3.0.14
Mozilla Firefox=3.5.2
Mozilla Firefox=3.0.10
FreeBSD FreeBSD=6.4-stable
FreeBSD FreeBSD=6.4-release_p4
Mozilla Firefox=3.0.12
Mozilla Firefox=3.0.3
Mozilla Firefox=3.0.6
OpenBSD OpenBSD=4.5
Mozilla Firefox=3.0.1
FreeBSD FreeBSD=7.2-pre-release
FreeBSD FreeBSD=7.2
Mozilla Firefox=3.0.2
FreeBSD FreeBSD=6.4-release_p3
Mozilla Firefox=3.0.13
FreeBSD FreeBSD=7.2-stable
Mozilla Firefox=3.0.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 1052100

Event History

Jul 1, 2009
CVE Published
via MITRE·12:26 PM
Data Sourced
via MITRE·12:26 PM
Description
Data Sourced
01:00 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·01:00 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 21, 2009
Data Sourced
via Red Hat·02:50 AM
DescriptionSeverityAffected Software
Nov 2, 2018
Data Sourced
10:29 AM
RemedySeverity
Dec 18, 2018
Exploit Published
via GitHub·04:24 AM

Frequently Asked Questions

1

What is the severity of CVE-2009-0689?

CVE-2009-0689 is classified as a high severity vulnerability due to its impact on affected software.

2

How do I fix CVE-2009-0689?

To fix CVE-2009-0689, update your software to the latest version that addresses this vulnerability.

3

What software is affected by CVE-2009-0689?

CVE-2009-0689 affects multiple software including various versions of Mozilla Firefox, FreeBSD, NetBSD, and OpenBSD.

4

What type of vulnerability is CVE-2009-0689?

CVE-2009-0689 is an array index error vulnerability that can lead to potential exploitation.

5

Is there a workaround for CVE-2009-0689?

No specific workaround is recommended for CVE-2009-0689; applying the appropriate software updates is the best course of action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203