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.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.6%top 49.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.21libjxl0.10.4-r0ALPINE-CVE-2024-11403
Alpine:v3.23libjxl0.11.1-r0ALPINE-CVE-2024-11403
Alpine:v3.24libjxl0.11.1-r0ALPINE-CVE-2024-11403
Debian:12jpeg-xl0.7.0-10+deb12u1DSA-5958-1
Debian:12jpeg-xl0.7.0-10+deb12u1DEBIAN-CVE-2024-11403
Debian:13jpeg-xl0.10.4-2DEBIAN-CVE-2024-11403
Debian:14jpeg-xl0.10.4-2DEBIAN-CVE-2024-11403
Ubuntu:24.04:LTSjpeg-xl0.7.0-10.2ubuntu6.1UBUNTU-CVE-2024-11403
Ubuntu:24.04:LTSjpeg-xl0.7.0-10.2ubuntu6.1USN-7637-1

Affected products (as reported)

VendorProductVersions
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

References