{"id":"CVE-2025-54874","aliases":["CVE-2025-54874"],"related":[],"kind":"vulnerability","state":"published","title":"OpenJPEG allows OOB heap memory write in opj_jp2_read_header","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"OpenJPEG es un códec JPEG 2000 de código abierto. En OpenJPEG 2.5.3 y versiones anteriores, una llamada a opj_jp2_read_header puede provocar una escritura en memoria OOB cuando el flujo de datos p_stream es demasiado corto y p_image no se inicializa.","source":"nvd"}],"published":"2025-08-05T14:33:17.323Z","modified":"2026-06-17T09:40:50.743Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":6.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-457"],"affected":[{"ranges":[{"version":">=  2.5.1, <= 2.5.3","status":"affected"}],"vendor":"uclouvain","product":"openjpeg","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.5.3"}],"vendor":"uclouvain","product":"openjpeg","cpe":"cpe:2.3:a:uclouvain:openjpeg:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uclouvain/openjpeg/commit/f809b80c67717c152a5ad30bf06774f00da4fd2d","tags":["patch","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/uclouvain/openjpeg/pull/1573","tags":["third-party-advisory","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://securitylab.github.com/advisories/GHSL-2025-057_OpenCV","tags":["exploit","third-party-advisory","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-01-22T04:55:47.578Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-54874","url":"https://www.cve.org/CVERecord?id=CVE-2025-54874","licence":"CVE Terms of Use","modified":"2026-02-26T17:49:57.556Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-54874","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54874","licence":"Public domain","modified":"2026-06-17T09:40:50.743Z"}],"updatedAt":"2026-11-25T22:59:02.063Z","epss":{"score":0.00658,"percentile":0.52778,"date":"2026-12-01T12:00:22.000Z"}}