Vulnerabilities / CVE-2025-54874

critical

CVE-2025-54874

openjpeg: OpenJPEG OOB heap memory write

Published Modified CWE 457
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.0CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Julia6.6CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (high), Oracle (high), Rocky Linux (high), Julia (medium), Ubuntu (medium).

Description

OpenJPEG is an open-source JPEG 2000 codec. In OpenJPEG from 2.5.1 through 2.5.3, 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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.21openjpeg2.5.4-r0
alpine 3.22openjpeg2.5.4-r0
alpine 3.23openjpeg, qt6-qtwebengine2.5.3-r1 and 1 more
alpine 3.24openjpeg, qt6-qtwebengine2.5.3-r1 and 1 more
alpine edgeopenjpeg, qt6-qtwebengine2.5.3-r1 and 1 more
chainguardopenjpeg2.5.3-r2
debian 13openjpeg22.5.3-2.1~deb13u1
debian 14openjpeg22.5.3-2.1
julia::Julia Ecosystem Security AdvisoriesOpenJpeg_jll2.5.5+0
minimosopenjpeg2.5.4-r0
rapidfort alpine 3.20openjpeg, qt6-qtwebengine2.5.3-r1 and 1 more
rapidfort alpine 3.21openjpeg, qt6-qtwebengine2.5.3-r1 and 1 more
Show all 45 entries from 31 sources
SourcePackageFixed in
alpine 3.21openjpeg2.5.4-r0
alpine 3.22openjpeg2.5.4-r0
alpine 3.23openjpeg2.5.3-r1
alpine 3.23qt6-qtwebengine6.9.2-r1
alpine 3.24openjpeg2.5.3-r1
alpine 3.24qt6-qtwebengine6.9.2-r1
alpine edgeopenjpeg2.5.3-r1
alpine edgeqt6-qtwebengine6.9.2-r1
chainguardopenjpeg2.5.3-r2
debian 13openjpeg22.5.3-2.1~deb13u1
debian 14openjpeg22.5.3-2.1
julia::Julia Ecosystem Security AdvisoriesOpenJpeg_jll2.5.5+0
minimosopenjpeg2.5.4-r0
rapidfort alpine 3.20openjpeg2.5.3-r1
rapidfort alpine 3.20qt6-qtwebengine6.9.2-r1
rapidfort alpine 3.21openjpeg2.5.3-r1
rapidfort alpine 3.21qt6-qtwebengine6.9.2-r1
rapidfort alpine 3.22openjpeg2.5.3-r1
rapidfort alpine 3.22qt6-qtwebengine6.9.2-r1
rapidfort alpine 3.23openjpeg2.5.3-r1
rapidfort alpine 3.23qt6-qtwebengine6.9.2-r1
rapidfort alpine 3.24openjpeg2.5.3-r1
rapidfort alpine 3.24qt6-qtwebengine6.9.2-r1
rapidfort debian 12openjpeg20:2.5.3-2.1, 0:2.5.3-2.1~deb13u1
rapidfort debian 12rf-openjpeg20:2.5.3-2.1~deb13u1
rapidfort debian 13openjpeg20:2.5.3-2.1, 0:2.5.3-2.1~deb13u1
rapidfort debian 13rf-openjpeg20:2.5.3-2.1~deb13u1
rapidfort fedora 41openjpeg0:2.5.3-8.fc41
rapidfort Oracle Linux 10openjpeg20:2.5.2-4.el10_0.1
rapidfort ubuntuopenjpeg20:2.5.3-0rfubu
rapidfort ubunturf-openjpeg20:2.5.3-0rfubu
rapidfort ubuntu 20.04rf-openjpeg2no fix listed
rapidfort ubuntu 22.04rf-openjpeg2no fix listed
rapidfort ubuntu 24.04rf-openjpeg2no fix listed
Red Hatopenjpegno fix listed
Red Hatopenjpeg-develno fix listed
Red Hatopenjpeg-libsno fix listed
rocky 10openjpeg22.5.2-4.el10_0.1
root.io debian 13openjpeg22.5.3-2.1~deb13u1
root.io debian 13rootio-openjpeg22.5.3-2.1~deb13u1
ubuntu 25.04openjpeg22.5.3-2ubuntu0.1
ubuntu 25.10openjpeg22.5.3-2.1
ubuntu 26.04openjpeg22.5.3-2.1
ubuntu 26.10openjpeg22.5.3-2.1
wolfiopenjpeg2.5.3-r2

References

All 15 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.