Name | CVE-2025-54874 |
Description | OpenJPEG is an open-source JPEG 2000 codec. In OpenJPEG 2.5.3 and earlier, a call to opj_jp2_read_header may lead to OOB heap memory write when the data stream p_stream is too short and p_image is not initialized. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 1110443 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
openjpeg2 (PTS) | bullseye | 2.4.0-3 | fixed |
| bullseye (security) | 2.4.0-3+deb11u1 | fixed |
| bookworm | 2.5.0-2+deb12u2 | fixed |
| bookworm (security) | 2.5.0-2+deb12u1 | fixed |
| trixie | 2.5.3-2.1~deb13u1 | fixed |
| forky, sid | 2.5.3-2.1 | fixed |
The information below is based on the following data on fixed versions.
Notes
[bookworm] - openjpeg2 <not-affected> (Vulnerable code introduced later)
[bullseye] - openjpeg2 <not-affected> (Vulnerable code introduced later)
https://github.com/uclouvain/openjpeg/pull/1573
Introduced with: https://github.com/uclouvain/openjpeg/commit/0f528e95788863608aa1772f5370659edf618793 (v2.5.1)
Fixed by: https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d (master)
https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV/