Vulnerability · Published Sep 8, 2025 · Assigned by CPANSec
CVE-2025-40928JSON::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
High 7.5
In plain English
A high-severity heap buffer overflow in JSON::XS from MLEHMANN. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 47.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | perl-JSON-XS | 1:4.04-1.el10_0 | ALSA-2025:17119 |
| AlmaLinux:8 | perl-JSON-XS | 1:3.04-4.el8_10 | ALSA-2025:17163 |
| AlmaLinux:9 | perl-JSON-XS | 1:4.04-1.el9_6 | ALSA-2025:17162 |
| Debian:12 | libjson-xs-perl | 4.040-1~deb12u1 | DEBIAN-CVE-2025-40928 |
| Debian:12 | libjson-xs-perl | 4.040-1~deb12u1 | DSA-5999-1 |
| Debian:13 | libjson-xs-perl | 4.040-1~deb13u1 | DEBIAN-CVE-2025-40928 |
| Debian:13 | libjson-xs-perl | 4.040-1~deb13u1 | DSA-5999-1 |
| Debian:14 | libjson-xs-perl | 4.030-3 | DEBIAN-CVE-2025-40928 |
| Rocky Linux:10 | perl-JSON-XS | 1:4.04-1.el10_0 | RLSA-2025:17119 |
| Rocky Linux:8 | perl-JSON-XS | 1:3.04-4.el8_10 | RLSA-2025:17163 |
| Rocky Linux:9 | perl-JSON-XS | 1:4.04-1.el9_6 | RLSA-2025:17162 |
| Ubuntu:22.04:LTS | libjson-xs-perl | 4.040-0ubuntu0.22.04.1 | UBUNTU-CVE-2025-40928 |
| Ubuntu:22.04:LTS | libjson-xs-perl | 4.040-0ubuntu0.22.04.1 | USN-7750-1 |
| Ubuntu:24.04:LTS | libjson-xs-perl | 4.040-0ubuntu0.24.04.1 | USN-7750-1 |
| Ubuntu:24.04:LTS | libjson-xs-perl | 4.040-0ubuntu0.24.04.1 | UBUNTU-CVE-2025-40928 |
| Ubuntu:25.10 | libjson-xs-perl | 4.040-1 | UBUNTU-CVE-2025-40928 |
| Ubuntu:26.04:LTS | libjson-xs-perl | 4.040-1 | UBUNTU-CVE-2025-40928 |
| Ubuntu:26.10 | libjson-xs-perl | 4.040-1 | UBUNTU-CVE-2025-40928 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H