{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54874 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-54874 is a medium-severity memory corruption vulnerability in Uclouvain Openjpeg, published on 5 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-54874 and fix it if it is affected.\n\nWhat it is: CVE-2025-54874 is a medium-severity memory corruption vulnerability in Uclouvain Openjpeg, published on 5 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54874 exists.\n\nAffected product: Uclouvain Openjpeg. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-54874/ (Markdown: https://insights.sbomify.com/CVE-2025-54874/index.md)","id":"CVE-2025-54874","markdown":"https://insights.sbomify.com/CVE-2025-54874/index.md","name":"CVE-2025-54874","record":{"aliases":["ALPINE-CVE-2025-54874","ALSA-2025:13944","AZL-66090","AZL-66114","BELL-CVE-2025-54874","DEBIAN-CVE-2025-54874","JLSEC-2026-552","MINI-p7c9-fvp5-2mrj","RHSA-2025:13944","RLSA-2025:13944","SUSE-SU-2026:21995-1","UBUNTU-CVE-2025-54874","openSUSE-SU-2026:20842-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"JPEG 2000 codec library","requires_auth":"none","summary":"OpenJPEG library allows out-of-bounds heap memory write during header parsing, potentially enabling code execution or denial of service.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"openjpeg","vendor":"uclouvain"}],"cvss":{"score":6.6,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-457","name":"Use of Uninitialized Variable"}],"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.","ecosystems":["AlmaLinux:10","Red Hat:enterprise_linux:10.0","Rocky Linux:10","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP applications 16.0"],"exploits":{"exploitdb":0,"first_seen":"2025-10-19","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-10-19T22:49:53Z","kind":"github_poc","ref":"https://github.com/cyhe50/cve-2025-54874-poc","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"OpenJPEG allows OOB heap memory write in opj_jp2_read_header","id":"CVE-2025-54874","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"uclouvain:openjpeg","products":["uclouvain:openjpeg"],"type":"memory_corruption","year":"2025"},"n_packages":12,"n_references":3,"next":{"headline":"FreshRSS: Unauthorized creation of admin user when registration is enabled","id":"CVE-2025-54875"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2","purl":"pkg:rpm/almalinux/openjpeg2","source":"ALSA-2025:13944"},{"ecosystem":"AlmaLinux:10","fixed":["2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2-devel","purl":"pkg:rpm/almalinux/openjpeg2-devel","source":"ALSA-2025:13944"},{"ecosystem":"AlmaLinux:10","fixed":["2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2-tools","purl":"pkg:rpm/almalinux/openjpeg2-tools","source":"ALSA-2025:13944"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2","purl":"pkg:rpm/redhat/openjpeg2","source":"RHSA-2025:13944"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2-debuginfo","purl":"pkg:rpm/redhat/openjpeg2-debuginfo","source":"RHSA-2025:13944"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2-debugsource","purl":"pkg:rpm/redhat/openjpeg2-debugsource","source":"RHSA-2025:13944"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2-devel","purl":"pkg:rpm/redhat/openjpeg2-devel","source":"RHSA-2025:13944"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2-tools","purl":"pkg:rpm/redhat/openjpeg2-tools","source":"RHSA-2025:13944"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2-tools-debuginfo","purl":"pkg:rpm/redhat/openjpeg2-tools-debuginfo","source":"RHSA-2025:13944"},{"ecosystem":"Rocky Linux:10","fixed":["0:2.5.2-4.el10_0.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2","purl":"pkg:rpm/rocky-linux/openjpeg2?distro=rocky-linux-10-0\u0026epoch=0","source":"RLSA-2025:13944"},{"ecosystem":"SUSE:Linux Enterprise Server 16.0","fixed":["2.5.3-160000.4.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2","purl":"pkg:rpm/suse/openjpeg2\u0026distro=SUSE%20Linux%20Enterprise%20Server%2016.0","source":"SUSE-SU-2026:21995-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP applications 16.0","fixed":["2.5.3-160000.4.1"],"introduced":["0"],"last_affected":[],"package":"openjpeg2","purl":"pkg:rpm/suse/openjpeg2\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20applications%2016.0","source":"SUSE-SU-2026:21995-1"}],"prev":{"headline":"RISC Zero Underconstrained Vulnerability: Division","id":"CVE-2025-54873"},"products":["openjpeg"],"published":"2025-08-05","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2013-4289","kev_date_added":null,"published":"2014-04-18"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2013-4290","kev_date_added":null,"published":"2014-04-18"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2012-3358","kev_date_added":null,"published":"2012-07-18"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2018-7648","kev_date_added":null,"published":"2018-03-02"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-17479","kev_date_added":null,"published":"2017-12-08"},{"cvss_score":9.3,"headline":"Memory corruption in n/a","id":"CVE-2012-1499","kev_date_added":null,"published":"2012-04-11"},{"cvss_score":8.8,"headline":"Memory corruption in n/a","id":"CVE-2018-16375","kev_date_added":null,"published":"2018-09-03"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["uclouvain"]},"summary":"OpenJPEG library allows out-of-bounds heap memory write during header parsing, potentially enabling code execution or denial of service.","url":"https://insights.sbomify.com/CVE-2025-54874/"}