Vulnerability in Uclouvain Openjpeg
CVE-2025-54874
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.007, 52.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Uclouvain Openjpeg — versions >= 2.5.1, <= 2.5.3
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- cyhe50/cve-2025-54874-poc (last pushed 2025-10-20)
Also mentioned in 2 other repositories (fkie-cad/nvd-json-data-feeds, jenggo/muPDF-Worker). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d (Patch)
- https://github.com/uclouvain/openjpeg/pull/1573 (Third Party Advisory)
- https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.