CVE-2026-9499

published 21 Jul 2026 · updated 22 Jul 2026

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

6.3MediumCVSS 6.3EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 6.0.0, 6.8.8 and 6.11.1.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
qt>=4.0.0 <6.0.0, >=6.0.0 <6.8.8, >=6.9.0 <6.11.16.0.0, 6.8.8, 6.11.1

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-9499 severity on Zeptric[![CVE-2026-9499](https://zeptric.io/badge/cve/CVE-2026-9499.svg)](https://zeptric.io/cve/CVE-2026-9499)