{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-40928 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2025-40928 is a high-severity vulnerability in MLEHMANN JSON::XS, published on 8 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-40928 and fix it if it is affected.\n\nWhat it is: CVE-2025-40928 is a high-severity vulnerability in MLEHMANN JSON::XS, published on 8 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-40928 exists.\n\nAffected product: MLEHMANN JSON::XS. 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-40928/ (Markdown: https://insights.sbomify.com/CVE-2025-40928/index.md)","id":"CVE-2025-40928","markdown":"https://insights.sbomify.com/CVE-2025-40928/index.md","name":"CVE-2025-40928","record":{"aliases":["ALSA-2025:17119","ALSA-2025:17162","ALSA-2025:17163","AZL-67076","AZL-67079","DEBIAN-CVE-2025-40928","DLA-4317-1","DSA-5999-1","GHSA-v8qr-gpx9-78rm","MGASA-2025-0283","OESA-2025-2365","OESA-2025-2366","OESA-2025-2367","OESA-2025-2447","OESA-2025-2448","OESA-2025-2449","RHSA-2025:17119","RHSA-2025:17162","RHSA-2025:17163","RHSA-2025:17430","RLSA-2025:17119","RLSA-2025:17162","RLSA-2025:17163","UBUNTU-CVE-2025-40928","USN-7750-1","openSUSE-SU-2025:15535-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Perl JSON library","requires_auth":"none","summary":"An integer buffer overflow in the JSON::XS Perl library allows attackers to cause a denial of service via crafted JSON input.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"CPANSec","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"description":"JSON::XS before version 4.04 for Perl has an integer buffer overflow causing a segfault when parsing crafted JSON, enabling denial-of-service attacks or other unspecified impact","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:8::crb","Red Hat:enterprise_linux:9::crb","Red Hat:rhel_eus:9.4::crb","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Integer overflow in JSON::XS","id":"CVE-2025-40928","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"integer_overflow","year":"2025"},"n_packages":19,"n_references":2,"next":{"headline":"Integer overflow in Cpanel::JSON::XS","id":"CVE-2025-40929"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["1:4.04-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/almalinux/perl-JSON-XS","source":"ALSA-2025:17119"},{"ecosystem":"AlmaLinux:8","fixed":["1:3.04-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/almalinux/perl-JSON-XS","source":"ALSA-2025:17163"},{"ecosystem":"AlmaLinux:9","fixed":["1:4.04-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/almalinux/perl-JSON-XS","source":"ALSA-2025:17162"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:4.04-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/redhat/perl-JSON-XS","source":"RHSA-2025:17119"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:4.04-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS-debuginfo","purl":"pkg:rpm/redhat/perl-JSON-XS-debuginfo","source":"RHSA-2025:17119"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["1:4.04-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS-debugsource","purl":"pkg:rpm/redhat/perl-JSON-XS-debugsource","source":"RHSA-2025:17119"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:3.04-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/redhat/perl-JSON-XS","source":"RHSA-2025:17163"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:3.04-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS-debuginfo","purl":"pkg:rpm/redhat/perl-JSON-XS-debuginfo","source":"RHSA-2025:17163"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["1:3.04-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS-debugsource","purl":"pkg:rpm/redhat/perl-JSON-XS-debugsource","source":"RHSA-2025:17163"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:4.04-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/redhat/perl-JSON-XS","source":"RHSA-2025:17162"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:4.04-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS-debuginfo","purl":"pkg:rpm/redhat/perl-JSON-XS-debuginfo","source":"RHSA-2025:17162"},{"ecosystem":"Red Hat:enterprise_linux:9::crb","fixed":["1:4.04-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS-debugsource","purl":"pkg:rpm/redhat/perl-JSON-XS-debugsource","source":"RHSA-2025:17162"},{"ecosystem":"Red Hat:rhel_eus:9.4::crb","fixed":["1:4.03-5.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/redhat/perl-JSON-XS","source":"RHSA-2025:17430"},{"ecosystem":"Red Hat:rhel_eus:9.4::crb","fixed":["1:4.03-5.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS-debuginfo","purl":"pkg:rpm/redhat/perl-JSON-XS-debuginfo","source":"RHSA-2025:17430"},{"ecosystem":"Red Hat:rhel_eus:9.4::crb","fixed":["1:4.03-5.el9_4.1"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS-debugsource","purl":"pkg:rpm/redhat/perl-JSON-XS-debugsource","source":"RHSA-2025:17430"},{"ecosystem":"Rocky Linux:10","fixed":["1:4.04-1.el10_0"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/rocky-linux/perl-JSON-XS?distro=rocky-linux-10-0\u0026epoch=1","source":"RLSA-2025:17119"},{"ecosystem":"Rocky Linux:8","fixed":["1:3.04-4.el8_10"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/rocky-linux/perl-JSON-XS?distro=rocky-linux-8\u0026epoch=1","source":"RLSA-2025:17163"},{"ecosystem":"Rocky Linux:9","fixed":["1:4.04-1.el9_6"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/rocky-linux/perl-JSON-XS?distro=rocky-linux-9-6\u0026epoch=1","source":"RLSA-2025:17162"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["4.40.0-1.1"],"introduced":["0"],"last_affected":[],"package":"perl-JSON-XS","purl":"pkg:rpm/opensuse/perl-JSON-XS\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15535-1"}],"prev":{"headline":"CGI::Simple versions 1.281 and earlier for Perl has a HTTP response splitting flaw","id":"CVE-2025-40927"},"products":["JSON::XS"],"published":"2025-09-08","related":[],"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":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["MLEHMANN"]},"summary":"An integer buffer overflow in the JSON::XS Perl library allows attackers to cause a denial of service via crafted JSON input.","url":"https://insights.sbomify.com/CVE-2025-40928/"}