Skip to content
Fencer Vulns
critical 9.8

CVE-2025-54874 json

OpenJPEG allows OOB heap memory write in opj_jp2_read_header

published 2025-08-05 15 mo ago modified 2026-07-25 3 mo ago also EUVD-2025-23631 , JLSEC-2026-552

cvss
9.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.7%
EPSS 0.7% chance of exploitation in 30 days, percentile 51%
public exploits
0
none known

Summary

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.

Patch / fix

  • julia OpenJpeg_jll 2.5.5+0
  • openjpeg2 Debian 13 2.5.3-2.1~deb13u1
  • openjpeg2 Debian 14 2.5.3-2.1

debian advisories DEBIAN-CVE-2025-54874

  • openjpeg2 Ubuntu 26.04 LTS, Ubuntu 25.10 2.5.3-2.1

ubuntu advisories UBUNTU-CVE-2025-54874

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • openjpeg2 RHEL 10.0 2.5.2-4.el10_0.1
  • openjpeg2-tools RHEL 10.0 2.5.2-4.el10_0.1

red hat advisories RHSA-2025:13944

  • openjpeg2 SLES for SAP applications 16.0, SLES 16.0 2.5.3-160000.4.1

suse advisories SUSE-SU-2026:21995-1

  • chromium openSUSE Leap 16.0 142.0.7444.162-bp160.1.1
  • chromium openSUSE Tumbleweed 139.0.7258.66-1.1

opensuse advisories openSUSE-SU-2025:20076-1openSUSE-SU-2025:15421-1

  • openjpeg2 AlmaLinux 10 2.5.2-4.el10_0.1
  • openjpeg2-tools AlmaLinux 10 2.5.2-4.el10_0.1

almalinux advisories ALSA-2025:13944

  • openjpeg2 Rocky Linux 10 2.5.2-4.el10_0.1

rocky linux advisories RLSA-2025:13944

  • openjpeg Alpine 3.22, Alpine 3.21 2.5.4-r0
  • openjpeg Alpine 3.24, Alpine 3.23 2.5.3-r1
  • qt6-qtwebengine Alpine 3.24, Alpine 3.23 6.9.2-r1

alpine advisories ALPINE-CVE-2025-54874

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-54874 updated cvss 8.0

openjpeg: OpenJPEG OOB heap memory write

  • Red Hat Enterprise Linux 6 openjpeg, openjpeg-libs
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux AppStream (v. 10) openjpeg2 2.5.2-4.el10_0.1 Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) openjpeg2-tools 2.5.2-4.el10_0.1
    fixed: vendor fix RHSA-2025:13944
  • Red Hat Enterprise Linux 7 openjpeg, openjpeg2, openjpeg-libs, openjpeg2-tools Red Hat Enterprise Linux 8 openjpeg2, openjpeg2-tools Red Hat Enterprise Linux 9 openjpeg2, openjpeg2-tools Red Hat Enterprise Linux AI (RHEL AI) libpdfium
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
9 mo ago

Exploit prediction

0.66% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • securitylab.github.com https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 4.0 6.6 CVSS: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
CNA 4.0 6.6 CVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
julia OpenJpeg_jll
<2.5.5+0
2.5.5+0

Affected products

  • uclouvain openjpeg

Classification

Weakness
  • CWE-457 Use of Uninitialized Variable

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.