Vulnerability · Published Nov 25, 2024 · Assigned by Google
CVE-2024-11403Out of Bounds Memory Read/Write in libjxl
Medium 6.9
In plain English
A medium-severity out-of-bounds write in libjxl from libjxl. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
There exists an out of bounds read/write in LibJXL versions prior to commit 9cc451b91b74ba470fd72bd48c121e9f33d24c99. The JPEG decoder used by the JPEG XL encoder when doing JPEG recompression (i.e. if using JxlEncoderAddJPEGFrame on untrusted input) does not properly check bounds in the presence of incomplete codes. This could lead to an out-of-bounds write. In jpegli which is released as part of the same project, the same vulnerability is present. However, the relevant buffer is part of a bigger structure, and the code makes no assumptions on the values that could be overwritten. The issue could however cause jpegli to read uninitialised memory, or addresses of functions.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | libjxl | 0.10.4-r0 | ALPINE-CVE-2024-11403 |
| Alpine:v3.23 | libjxl | 0.11.1-r0 | ALPINE-CVE-2024-11403 |
| Alpine:v3.24 | libjxl | 0.11.1-r0 | ALPINE-CVE-2024-11403 |
| Debian:12 | jpeg-xl | 0.7.0-10+deb12u1 | DSA-5958-1 |
| Debian:12 | jpeg-xl | 0.7.0-10+deb12u1 | DEBIAN-CVE-2024-11403 |
| Debian:13 | jpeg-xl | 0.10.4-2 | DEBIAN-CVE-2024-11403 |
| Debian:14 | jpeg-xl | 0.10.4-2 | DEBIAN-CVE-2024-11403 |
| Ubuntu:24.04:LTS | jpeg-xl | 0.7.0-10.2ubuntu6.1 | UBUNTU-CVE-2024-11403 |
| Ubuntu:24.04:LTS | jpeg-xl | 0.7.0-10.2ubuntu6.1 | USN-7637-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libjxl | libjxl | 0.11.0 – before 9cc451b91b74ba470fd72bd48c121e9f33d24c990.10.0-2 – before 9cc451b91b74ba470fd72bd48c121e9f33d24c990.9.0-3 – before 9cc451b91b74ba470fd72bd48c121e9f33d24c990.8.0-3 – before 9cc451b91b74ba470fd72bd48c121e9f33d24c990.7.0-1 – before 9cc451b91b74ba470fd72bd48c121e9f33d24c99 |
Weakness: CWE-787, CWE-125 · Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N