OpenJPEG allows OOB heap memory write in opj_jp2_read_header
Priority MEDIUM 64CWE-457Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
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.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00658 51st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial Red Hat: 1 advisoryRed Hat: 2 fixed, 1 without a fix
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| The OpenJPEG Project | openjpeg | 2.5.1 – 2.5.3 | — | No fix listed | CNA |
- openjpeg VendorThe OpenJPEG Project Affected 2.5.1 – 2.5.3 Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:* | up to 2.5.3 | Vulnerable | The OpenJPEG Project |
- cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:* Versions up to 2.5.3 Vulnerable ·The OpenJPEG Project
Remediation
Red Hat 1 advisory
- RHSA-2025:13944 Released 2025-08-18 · Red Hat rating Importantopenjpeg2 security update
- 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-devel-2.5.2-4.el10_0.1, openjpeg2-tools-2.5.2-4.el10_0.1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2025:13944 |
| Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) | Fixed | RHSA-2025:13944 |
Not affected: 4 products
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux AI (RHEL AI)
Timeline
- 2026-10-02 Threatist record created from CVE-2025-54874
- 2026-10-28 EPSS moved to the 50th–90th percentile
References
More The OpenJPEG Project Openjpeg vulnerabilities
- TI-2025-32278 openjpeg v 2.5.0 was discovered to contain a NULL pointer dereference via the component /openjp2/dwt.c. CVSS 3.1MEDIUM 6.5
- TI-2012-02889 Multiple heap-based buffer overflows in the j2k_read_sot function in j2k.c in OpenJPEG… CVSS 2.0HIGH 10.0
- TI-2017-12771 In OpenJPEG 2.3.0, a stack-based buffer overflow was discovered in the pgxtovolume… CVSS 3.1CRITICAL 9.8
- TI-2017-12770 In OpenJPEG 2.3.0, a stack-based buffer overflow was discovered in the pgxtoimage… CVSS 3.0CRITICAL 9.8
- TI-2015-07301 Use-after-free vulnerability in the opj_j2k_write_mco function in j2k.c in OpenJPEG… CVSS 3.0CRITICAL 9.8
- TI-2013-03756 Stack-based buffer overflow in OpenJPEG before 1.5.2 allows remote attackers to have… CVSS 2.0HIGH 10.0
Sources
- CVE-2025-54874 · CVE Program
- CVE-2025-54874 · NVD
- FIRST EPSS
- CVE-2025-54874 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences