CVE-2025-40928
CVE-2025-40928 · 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
CVSS 7.5 · High · EPSS 1.0% · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- json::xsUpdate to 4.04
- libjson-xs-perl Debian 12Update to 4.040-1~deb12u1
- libjson-xs-perl Debian 13Update to 4.040-1~deb13u1
- libjson-xs-perl Debian 14Update to 4.030-3
- and 9 more
Check the installed version:
dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="libjson-xs-perl"'Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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
- Published
- Updated
Fixes in distributions
- RLSA-2025:17162 · Rocky Linux 9 ·
- RHSA-2025:17430 · Red Hat rhel eus 9.4 crb ·
- RLSA-2025:17119 · Rocky Linux 10 ·
- RLSA-2025:17163 · Rocky Linux 8 ·
- RHSA-2025:17163 · Red Hat Enterprise Linux 8 crb ·
- RHSA-2025:17162 · Red Hat Enterprise Linux 9 crb ·
- RHSA-2025:17119 · Red Hat Enterprise Linux 10.0 ·
- ALSA-2025:17162 · AlmaLinux 9 ·
- ALSA-2025:17163 · AlmaLinux 8 ·
- ALSA-2025:17119 · AlmaLinux 10 ·
- DLA-4317-1 · Debian 11 ·
- USN-7750-1 · Ubuntu 22.04 LTS, Ubuntu 24.04 LTS ·
- DSA-5999-1 · Debian 12, Debian 13 ·
- openSUSE-SU-2025:15535-1 · openSUSE Tumbleweed ·
Stack: system
Affected products and versions
json::xs
- Versions
- ≥ 0, < 4.04: Affected (custom)
Update to 4.04
libjson-xs-perl Debian 12
- Versions
- 4.030-2
- 4.030-3
- Affected ranges
- ECOSYSTEM: < 4.040-1~deb12u1
Update to 4.040-1~deb12u1
libjson-xs-perl Debian 13
- Versions
- 4.030-2
- 4.030-3
- 4.040-1~deb12u1
- Affected ranges
- ECOSYSTEM: < 4.040-1~deb13u1
Update to 4.040-1~deb13u1
libjson-xs-perl Debian 14
- Versions
- 4.030-2
- Affected ranges
- ECOSYSTEM: < 4.030-3
Update to 4.030-3
libjson-xs-perl Ubuntu 14.04 LTS
- Versions
- 2.340-1
- 2.340-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libjson-xs-perl Ubuntu 16.04 LTS
- Versions
- 3.010-2
- 3.010-2build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libjson-xs-perl Ubuntu 18.04 LTS
- Versions
- 3.030-1build1
- 3.040-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libjson-xs-perl Ubuntu 20.04 LTS
- Versions
- 4.020-1
- 4.020-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libjson-xs-perl Ubuntu 22.04 LTS
- Versions
- 4.030-1build2
- 4.030-1build3
- Affected ranges
- ECOSYSTEM: < 4.040-0ubuntu0.22.04.1
Update to 4.040-0ubuntu0.22.04.1
libjson-xs-perl Ubuntu 24.04 LTS
- Versions
- 4.030-2
- 4.030-2build1
- 4.030-2build2
- 4.030-2build3
- Affected ranges
- ECOSYSTEM: < 4.040-0ubuntu0.24.04.1
Update to 4.040-0ubuntu0.24.04.1
libjson-xs-perl Ubuntu 25.10
- Versions
- 4.030-2build4
- Affected ranges
- ECOSYSTEM: < 4.040-1
Update to 4.040-1
libjson-xs-perl Ubuntu 26.10
- Affected ranges
- ECOSYSTEM: < 4.040-1
Update to 4.040-1
libjson-xs-perl Ubuntu 26.04 LTS
- Affected ranges
- ECOSYSTEM: < 4.040-1
Update to 4.040-1
Original sources
- https://metacpan.org/release/MLEHMANN/JSON-XS-4.03/source/XS.xs#L256
- https://security.metacpan.org/patches/J/JSON-XS/4.03/CVE-2025-40928-r1.patch
- https://lists.debian.org/debian-lts-announce/2025/09/msg00033.html
- http://www.openwall.com/lists/oss-security/2025/09/08/2
- https://nvd.nist.gov/vuln/detail/CVE-2025-40928