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"
}{
"extracted_events": [
{
"range": [
{
"introduced": "2.5.1"
},
{
"last_affected": "2.5.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "f809b80c67717c152a5ad30bf06774f00da4fd2d"
}
],
"source": "REFERENCES_COMMIT"
}
]
}