CVE-2025-54874: OpenJPEG is an open-source JPEG 2000 codec
CVE-2025-54874 is a critical-severity flaw (CVSS 9.8) affecting openjpeg. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 this priority
- Critical severity
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.6% (top 50%) |
| CISA exploited list | No |
| Weakness | CWE-457 |
| Published | 2025-08-05 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-54874?
openjpeg: upgrade to newer than 2.5.3. Exact commands for each OS are on this page.
Is CVE-2025-54874 being exploited?
CVE-2025-54874 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-54874 affect?
CVE-2025-54874 affects openjpeg. Severity is critical (CVSS 9.8). 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.
How urgent is CVE-2025-54874?
Priority 57/100. Critical severity; Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2023-39329 MEDIUM 6.5 DOWNGRADE A flaw was found in OpenJPEG
- CVE-2023-39327 MEDIUM 4.3 DOWNGRADE A flaw was found in OpenJPEG
- CVE-2023-39328 MEDIUM 5.5 DOWNGRADE A vulnerability was found in OpenJPEG similar to CVE-2019-6988
- CVE-2025-50952 MEDIUM 6.5 DOWNGRADE openjpeg v 2.5.0 was discovered to contain a NULL pointer dereference via the component /openjp2/dwt.c.