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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-457"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54874.json"
}{
"cpe": "cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "2.5.3"
}
],
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54874.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"272056726866992156509900551740469083344",
"238217240773972104591176391809576663911",
"256099976055268152159627519408704047425",
"208345000864026141751896735822997387696"
],
"threshold": 0.9
},
"id": "CVE-2025-54874-caed9d70",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d",
"target": {
"file": "src/lib/openjp2/jp2.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "282837610718858633442933438411884669742",
"length": 1528
},
"id": "CVE-2025-54874-e27ad67e",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d",
"target": {
"file": "src/lib/openjp2/jp2.c",
"function": "opj_jp2_read_header"
}
}
]
"2026-08-12T15:16:42Z"