CVE-2026-9499

N/A Unknown
Published: July 21, 2026 Modified: July 21, 2026
View on NVD

Description

An out-of-bounds read (buffer over-read) vulnerability exists in QTextCodec::codecForName() in Qt. When the function is called with a QByteArray that is not NUL-terminated (for example, one created with QByteArray::fromRawData()), the codec-name matching routine reads past the end of the supplied buffer. In most cases this results in an incorrect text codec being selected; in the worst case, if the over-read reaches unmapped memory, the process crashes (denial of service). The over-read is bounded by the length of the longest codec-name candidate, and the out-of-bounds bytes are only compared internally against Qt's fixed list of codec names, so no data is disclosed to an attacker. Applications that do not pass non-NUL-terminated QByteArrays to QTextCodec::codecForName() are not exposed. The affected code resides in the Qt5Compat module from Qt 6.0.0 onward, and in Qt Core (qtbase) in Qt 4.x and Qt 5.x.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://codereview.qt-project.org/c/qt/qt5compat/+/723911
Source: a59d8014-47c4-4630-ab43-e1b13cbe58e3
https://codereview.qt-project.org/c/qt/qt5compat/+/724348
Source: a59d8014-47c4-4630-ab43-e1b13cbe58e3
https://codereview.qt-project.org/c/qt/qt5compat/+/724995
Source: a59d8014-47c4-4630-ab43-e1b13cbe58e3
https://codereview.qt-project.org/c/qt/tqtc-qt5compat/+/725112
Source: a59d8014-47c4-4630-ab43-e1b13cbe58e3

4 reference(s) from NVD

Quick Stats

CVSS v3 Score
N/A / 10.0
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)