CVE-2007-4137: Buffer Overflow

Published Aug 30, 2007
·
Updated

Dirk Mueller reported an off by one buffer overflow flaw in the way QT parses certain unicode strings.

To quote Dirk:

Ive found a off-by-one buffer overflow in QUtf8Decoder::toUnicode(). It is not exploitable with Qt 4.x or above because there is an additional QChar(0) being allocated in QString, however it is still a bug there, as the array returned by utf16() etc is no longer terminated properly.

Other sources

Off-by-one error in the QUtf8Decoder::toUnicode function in Trolltech Qt 3 allows context-dependent attackers to cause a denial of service (crash) via a crafted Unicode string that triggers a heap-based buffer overflow. NOTE: Qt 4 has the same error in the QUtf8Codec::convertToUnicode function, but it is not exploitable.

MITRE

Affected Software

65 affected components
Conectiva Linux=9.0
Conectiva Linux=10.0
Gentoo Linux
Mandrakesoft Mandrake Linux=9.2
Mandrakesoft Mandrake Linux=9.2
Mandrakesoft Mandrake Linux=10.0
Mandrakesoft Mandrake Linux=10.0
Mandrakesoft Mandrake Linux=2007
Mandrakesoft Mandrake Linux=2007
Mandrakesoft Mandrake Linux=2007.1
Mandrakesoft Mandrake Linux=2007.1
Mandrakesoft Mandrake Linux Corporate Server=3.0
Mandrakesoft Mandrake Linux Corporate Server=3.0
Mandrakesoft Mandrake Linux Corporate Server=4.0
Mandrakesoft Mandrake Linux Corporate Server=4.0
redhat Enterprise Linux=2.1
redhat Enterprise Linux=2.1
redhat Enterprise Linux=2.1
redhat Enterprise Linux=3.0
redhat Enterprise Linux=3.0
redhat Enterprise Linux=3.0
redhat Enterprise Linux=4.0
redhat Enterprise Linux=4.0
redhat Enterprise Linux=4.0
redhat Enterprise Linux=5.0
redhat Enterprise Linux=5.0
redhat Enterprise Linux=5.0
redhat Linux=2.1
redhat Linux=3.0
redhat Linux=4.0
Ubuntu Ubuntu Linux=6.06_lts
Ubuntu Ubuntu Linux=6.06_lts
Ubuntu Ubuntu Linux=6.06_lts
Ubuntu Ubuntu Linux=6.06_lts
Ubuntu Ubuntu Linux=6.10
Ubuntu Ubuntu Linux=6.10
Ubuntu Ubuntu Linux=6.10
Ubuntu Ubuntu Linux=6.10
Ubuntu Ubuntu Linux=7.04
Ubuntu Ubuntu Linux=7.04
Ubuntu Ubuntu Linux=7.04
Ubuntu Ubuntu Linux=7.04
Trolltech Qt=3.0
Trolltech Qt=3.0.3
Trolltech Qt=3.0.5
Trolltech Qt=3.1
Trolltech Qt=3.1.1
Trolltech Qt=3.1.2
Trolltech Qt=3.2.1
Trolltech Qt=3.2.3
Trolltech Qt=3.3.0
Trolltech Qt=3.3.1
Trolltech Qt=3.3.2
Trolltech Qt=3.3.3
Trolltech Qt=3.3.4
Trolltech Qt=3.3.5
Trolltech Qt=3.3.6
Trolltech Qt=3.3.7
Trolltech Qt=3.3.8
Trolltech Qt=4.1
Trolltech Qt=4.1.4
Trolltech Qt=4.1.5
Trolltech Qt=4.2
Trolltech Qt=4.2.1
Trolltech Qt=4.2.3

Event History

Aug 30, 2007
Data Sourced
via Red Hat·08:24 PM
DescriptionSeverityAffected Software
Sep 18, 2007
CVE Published
07:17 PM
Data Sourced
07:17 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2007-4137?

CVE-2007-4137 is classified as a buffer overflow vulnerability which can potentially lead to application crashes.

2

How do I fix CVE-2007-4137?

To fix CVE-2007-4137, ensure Qt is updated to version 4.x or above where the vulnerability is not exploitable.

3

Which software is affected by CVE-2007-4137?

CVE-2007-4137 affects older versions of the Qt library, particularly versions prior to 4.0.

4

Can CVE-2007-4137 be exploited remotely?

CVE-2007-4137 is not known to be easily exploitable in a remote manner, as it primarily affects local applications processing malformed input.

5

What platforms are impacted by CVE-2007-4137?

CVE-2007-4137 impacts various Linux distributions that utilize the affected versions of Qt.

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