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

EcosystemPackageFixed inAdvisory
AlmaLinux:10perl-JSON-XS1:4.04-1.el10_0ALSA-2025:17119
AlmaLinux:8perl-JSON-XS1:3.04-4.el8_10ALSA-2025:17163
AlmaLinux:9perl-JSON-XS1:4.04-1.el9_6ALSA-2025:17162
Debian:12libjson-xs-perl4.040-1~deb12u1DEBIAN-CVE-2025-40928
Debian:12libjson-xs-perl4.040-1~deb12u1DSA-5999-1
Debian:13libjson-xs-perl4.040-1~deb13u1DEBIAN-CVE-2025-40928
Debian:13libjson-xs-perl4.040-1~deb13u1DSA-5999-1
Debian:14libjson-xs-perl4.030-3DEBIAN-CVE-2025-40928
Rocky Linux:10perl-JSON-XS1:4.04-1.el10_0RLSA-2025:17119
Rocky Linux:8perl-JSON-XS1:3.04-4.el8_10RLSA-2025:17163
Rocky Linux:9perl-JSON-XS1:4.04-1.el9_6RLSA-2025:17162
Ubuntu:22.04:LTSlibjson-xs-perl4.040-0ubuntu0.22.04.1UBUNTU-CVE-2025-40928
Ubuntu:22.04:LTSlibjson-xs-perl4.040-0ubuntu0.22.04.1USN-7750-1
Ubuntu:24.04:LTSlibjson-xs-perl4.040-0ubuntu0.24.04.1USN-7750-1
Ubuntu:24.04:LTSlibjson-xs-perl4.040-0ubuntu0.24.04.1UBUNTU-CVE-2025-40928
Ubuntu:25.10libjson-xs-perl4.040-1UBUNTU-CVE-2025-40928
Ubuntu:26.04:LTSlibjson-xs-perl4.040-1UBUNTU-CVE-2025-40928
Ubuntu:26.10libjson-xs-perl4.040-1UBUNTU-CVE-2025-40928

Affected products (as reported)

VendorProductVersions
MLEHMANN JSON::XS 0 – before 4.04

Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References