# CVE-2025-54874: OpenJPEG allows OOB heap memory write in opj_jp2_read_header

- Severity: Medium 6.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.66%, higher than 52% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-05T14:33:17.323Z
- Modified: 2026-06-17T09:40:50.743Z
- Weaknesses: CWE-457
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- uclouvain openjpeg: >=  2.5.1, <= 2.5.3; up to 2.5.3

## Every score

- GitHub_M: CVSS:4.0 6.6 Medium `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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV> (exploit, third-party-advisory)
- <https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d> (patch)
- <https://github.com/uclouvain/openjpeg/pull/1573> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-54874](https://www.cve.org/CVERecord?id=CVE-2025-54874), CVE Terms of Use, modified 2026-02-26
- NVD: [CVE-2025-54874](https://nvd.nist.gov/vuln/detail/CVE-2025-54874), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54874 · Whole record: https://cve.day/CVE-2025-54874.json · Rebuilt by cve.day 2026-11-25T22:59:02.063Z
