CVE-2025-54874

NameCVE-2025-54874
DescriptionOpenJPEG 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1110443

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
openjpeg2 (PTS)bullseye2.4.0-3fixed
bullseye (security)2.4.0-3+deb11u1fixed
bookworm2.5.0-2+deb12u2fixed
bookworm (security)2.5.0-2+deb12u1fixed
trixie2.5.3-2.1~deb13u1fixed
forky, sid2.5.3-2.1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
openjpeg2sourcebullseye(not affected)
openjpeg2sourcebookworm(not affected)
openjpeg2sourcetrixie2.5.3-2.1~deb13u1
openjpeg2source(unstable)2.5.3-2.11110443

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/

Search for package or bug name: Reporting problems