CVE-2025-40928: MLEHMANN JSON::XS · Heap-based Buffer Overflow
Affects MLEHMANN JSON::XSSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 51% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 8 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| MLEHMANN JSON::XS | Affected
| Fixed in– |
AI-suggested
1. Immediately upgrade all instances of JSON::XS to version 4.04 or later, where the vulnerability is fixed. 2. Conduct a thorough audit of all Perl applications and services to identify usage of JSON::XS and assess exposure. 3. Implement input validation and sanitization to detect and reject malformed or suspicious JSON payloads before parsing. 4. Deploy runtime protections such as application-level monitoring and crash detection to quickly identify and respond to abnormal terminations. 5. Use containerization or sandboxing to isolate vulnerable components and limit the blast radius of potential crashes. 6. Establish network-level controls to restrict access to services that parse JSON from untrusted sources. 7. Maintain up-to-date backups and incident response plans to recover quickly from denial-of-service events. 8. Monitor security advisories and community resources for any emerging exploits or patches related to this vulnerability.
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
References
- metacpan.org/release/MLEHMANN/JSON-XS-4.03/source/XS.xs (opens in a new tab)
- security.metacpan.org/patches/J/JSON-XS/4.03/CVE-2025-40928-r1.patch (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/09/msg00033.html (opens in a new tab)
- openwall.com/lists/oss-security/2025/09/08/2 (opens in a new tab)