CVE-2026-9499

MEDIUM

Out-of-bounds read in QTextCodec::codecForName() in Qt

Title source: cna
STIX 2.1

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.

References (4)

Core 4
Core References
Patch patch
Fix (dev, released in Qt 6.12.0)
https://codereview.qt-project.org/c/qt/qt5compat/+/723911
Patch patch
Fix (6.11 branch, released in Qt 6.11.1)
https://codereview.qt-project.org/c/qt/qt5compat/+/724348
Patch patch
Fix (6.8 LTS branch, released in Qt 6.8.8)
https://codereview.qt-project.org/c/qt/tqtc-qt5compat/+/725112

Scores

CVSS v4 6.3
EPSS 0.0030
EPSS Percentile 22.4%
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-125
Status published
Products (3)
Qt/Qt 4.0.0 - 6.0.0
Qt/Qt 6.0.0 - 6.8.8
Qt/Qt 6.9.0 - 6.11.1
Published Jul 21, 2026
Tracked Since Jul 21, 2026