JLSEC-2026-2403: An out-of-bounds read (buffer over-read) vulnerability exists in QTextCodec::codecForName() in Qt...

Published Dec 3, 2026
·
Updated

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 Software

3 affected components
julia/qt5base_jll*
julia/qt65compat_jll*
julia/qt_jll*

Event History

Dec 3, 2026
Advisory Published
via OSV·09:04 PM
Data Sourced
via OSV·09:04 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which applications are exposed to this issue?

Only applications that call QTextCodec::codecForName() with a QByteArray that is not NUL-terminated are exposed. A QByteArray created with QByteArray::fromRawData() is an example of an input that may meet this condition.

2

What can an attacker achieve?

The likely effect is selection of an incorrect text codec. In the worst case, reading into unmapped memory can crash the process, causing denial of service; the issue does not disclose data because out-of-bounds bytes are only compared with Qt's fixed codec-name list.

3

Which Qt components and releases contain the affected code?

The affected code is in the Qt5Compat module from Qt 6.0.0 onward. For Qt 4.x and Qt 5.x, it is in Qt Core (qtbase).

4

What can be done if an update is not immediately available?

Ensure that every QByteArray supplied to QTextCodec::codecForName() is NUL-terminated. Avoid passing raw, non-NUL-terminated buffers, including QByteArray instances created with QByteArray::fromRawData() unless they are made safely NUL-terminated first.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203