CVE-2026-9499
Out-of-bounds read in QTextCodec::codecForName() in Qt
Reported by tqtc · Published July 21, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| qt5-qtbase-postgresql | errata.rockylinux.org | 5.15.9-11.el9 |
| qt5-qtbase-mysql | errata.rockylinux.org | 5.15.9-11.el9, 5.15.3-9.el8 |
| qt5-qtbase-gui-debuginfo | errata.rockylinux.org | 5.15.9-11.el9, 5.15.3-9.el8 |
| qt5-qtbase-odbc | errata.rockylinux.org | 5.15.9-11.el9, 5.15.3-9.el8 |
| qt5-qtbase-debugsource | errata.rockylinux.org | 5.15.9-11.el9, 5.15.3-9.el8 |
| qt6-qt5compat-debugsource | errata.rockylinux.org | 6.10.1-1.el10 |
| qt5-qtbase-devel-debuginfo | errata.rockylinux.org | 5.15.9-11.el9, 5.15.3-9.el8 |
| qt6-qt5compat-examples | errata.rockylinux.org | 6.10.1-1.el10 |
| qt6-qt5compat-debuginfo | errata.rockylinux.org | 6.10.1-1.el10 |
| qt5-qtbase-common | errata.rockylinux.org | 5.15.9-11.el9 |
| qt5-qtbase | errata.rockylinux.org | 5.15.3-9.el8 |
| qt5-qtbase-devel | errata.rockylinux.org | 5.15.9-11.el9, 5.15.3-9.el8 |
17 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Qt | Qt | 6.0.0, 6.9.0 |
| Qt | Qt | 4.0.0 |
| amazon:2 | qt5-qtbase-static | 0 |
| amazon:2 | qt5-qtbase-gui | 0 |
| Qt | Qt | 6.0.0, 4.0.0, 6.9.0 |
| amazon:2 | qt5-qtbase-private-devel | 0 |
| amazon:2 | qt5-qtbase-devel | 0 |
| amazon:2 | qt5-qtbase-examples | 0 |
| qt | qt | 4.0.0, 6.0.0, 6.9.0 |
| amazon:2 | qt5-qtbase-postgresql | 0 |
| amazon:2 | qt5-qtbase-common | 0 |
| amazon:2 | qt5-qtbase-mysql | 0 |
| amazon:2 | qt5-qtbase-odbc | 0 |
| amazon:2 | qt5-qtbase | 0 |
Timeline
- Jul 21, 2026 Coalition ESS Score
- Jul 21, 2026 CVE Published
- Jul 22, 2026 CVE Updated
- Aug 7, 2026 EPSS Score (29 in total, the first dated here)
- Aug 25, 2026 Security Advisory (9 in total, the first dated here)
- Sep 10, 2026 Distribution Patch (11 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-9499
vulnetix vdb fixes CVE-2026-9499
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-9499/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart