{"id":"CVE-2026-9499","published":"2026-07-21T13:25:27Z","modified":"2026-07-22T18:28:22Z","title":"Out-of-bounds read in QTextCodec::codecForName() in Qt","vendor":"Qt","product":"Qt","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00302,"percentile":0.23472,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://codereview.qt-project.org/c/qt/qt5compat/+/723911","tags":["patch"]},{"url":"https://codereview.qt-project.org/c/qt/qt5compat/+/724348","tags":["patch"]},{"url":"https://codereview.qt-project.org/c/qt/qt5compat/+/724995","tags":["patch"]},{"url":"https://codereview.qt-project.org/c/qt/tqtc-qt5compat/+/725112","tags":["patch"]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":4.69},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"qt","affectedVersions":[{"vendor":"Qt","product":"Qt","versions":[">= 6.0.0, < 6.8.8",">= 6.9.0, < 6.11.1"]},{"vendor":"Qt","product":"Qt","versions":[">= 4.0.0, < 6.0.0"]}],"solutions":{"items":["Update to Qt 6.8.8, Qt 6.11.1, Qt 6.12.0, or later, or apply the referenced patch."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-540","name":"Overread Buffers"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-22T18:13:28.519204Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-46257","exploited":false,"provenance":"source"}}