{"id":"CVE-2025-54874","state":"PUBLISHED","title":"OpenJPEG allows OOB heap memory write in opj_jp2_read_header","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.","publishedAt":"2025-08-05T14:33:17.323Z","updatedAt":"2026-02-26T17:49:57.556Z","severity":{"score":6.6,"label":"Medium","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["uclouvain openjpeg"],"affected":[{"vendor":"uclouvain","product":"openjpeg","versions":[{"version":">=  2.5.1, <= 2.5.3","status":"affected"}]}],"references":["https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d","https://github.com/uclouvain/openjpeg/pull/1573","https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV"],"weaknesses":["CWE-457"],"ingestedAt":"2026-10-29T20:09:31.862Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/54xxx/CVE-2025-54874.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-54874","state":"PUBLISHED","datePublished":"2025-08-05T14:33:17.323Z","dateUpdated":"2026-02-26T17:49:57.556Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2025-07-31T17:23:33.473Z"},"containers":{"cna":{"title":"OpenJPEG allows OOB heap memory write in opj_jp2_read_header","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"uclouvain","product":"openjpeg","versions":[{"version":">=  2.5.1, <= 2.5.3","status":"affected"}]}],"references":[{"url":"https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d","name":"https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/uclouvain/openjpeg/pull/1573","name":"https://github.com/uclouvain/openjpeg/pull/1573","tags":["x_refsource_MISC"]},{"url":"https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV","name":"https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.6,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-457","lang":"en","description":"CWE-457: Use of Uninitialized Variable","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-09-26T21:55:42.071Z"},"source":{"advisory":"GHSA-97xc-584w-cmfc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-54874","role":"CISA Coordinator","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-01-22T04:55:47.578218Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-26T17:49:57.556Z"}}]}}}