Libjson xs perl: JSON::XS before version 4.04 for Perl has an integer buffer overflow causing a segfault when parsing
Affects libjson-xs-perlSource GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 4.040-0ubuntu0.22.04.1 : patch libjson-xs-perl soon.
Data as of 24 Nov 2026, 20:10 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 4.040-0ubuntu0.22.04.1, 4.040-0ubuntu0.24.04.1, 4.040-1
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
Weaponized: 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 23 Nov 2026.
What to do
Upgrade the Ubuntu libjson-xs-perl to 4.040-0ubuntu0.22.04.1 (package) or 4.040-0ubuntu0.24.04.1 (package) or 4.040-1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10libjson-xs-perlpkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=stonkingOther threats | Affected
| Fixed in
|
Ubuntu 26.04 LTSlibjson-xs-perlpkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10libjson-xs-perlpkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlibjson-xs-perlpkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibjson-xs-perlpkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSlibjson-xs-perlpkg:deb/ubuntu/libjson-xs-perl?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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
- ubuntu.com/security/CVE-2025-40928 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-40928 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/32608909/ (opens in a new tab)
- security.metacpan.org/patches/J/JSON-XS/4.03/CVE-2025-40928-r1.patch (opens in a new tab)
- metacpan.org/release/MLEHMANN/JSON-XS-4.03/source/XS.xs (opens in a new tab)
- ubuntu.com/security/notices/USN-7750-1 (opens in a new tab)