CVEfocus › CVE database › CVE-2025-40928

CVE-2025-40928JSON::XS before version 4.04 for Perl has an integer buffer overflow causing a segfault…

CVSS 7.5 HighEPSS 0.7% (higher than 54% of CVEs)Published 2025-09-08Updated 2025-11-04Assigner: CPANSec

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

CWE-122

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fixed
4Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libjson-xs-perlFixed4.040-1UBUNTU-CVE-2025-40928
Ubuntu 26.04libjson-xs-perlFixed4.040-1UBUNTU-CVE-2025-40928
Ubuntu 25.10libjson-xs-perlFixed4.040-1UBUNTU-CVE-2025-40928
Ubuntu 24.04libjson-xs-perlFixed4.040-0ubuntu0.24.04.1UBUNTU-CVE-2025-40928
Ubuntu 22.04libjson-xs-perlFixed4.040-0ubuntu0.22.04.1UBUNTU-CVE-2025-40928
Ubuntu 20.04libjson-xs-perlFix pendingUBUNTU-CVE-2025-40928
Ubuntu 18.04libjson-xs-perlFix pendingUBUNTU-CVE-2025-40928
Ubuntu 16.04libjson-xs-perlFix pendingUBUNTU-CVE-2025-40928
Ubuntu 14.04libjson-xs-perlFix pendingUBUNTU-CVE-2025-40928
Debian 14libjson-xs-perlFixed4.030-3DEBIAN-CVE-2025-40928
Debian 13libjson-xs-perlFixed4.040-1~deb13u1DEBIAN-CVE-2025-40928
Debian 12libjson-xs-perlFixed4.040-1~deb12u1DEBIAN-CVE-2025-40928
Red Hat Enterprise Linux 10perl-JSON-XSFixed1:4.04-1.el10_0RHSA-2025:17119
Red Hat Enterprise Linux 9perl-JSON-XSFixed1:4.04-1.el9_6RHSA-2025:17162
Red Hat Enterprise Linux 8perl-JSON-XSFixed1:3.04-4.el8_10RHSA-2025:17163
AlmaLinux 10perl-JSON-XSFixed1:4.04-1.el10_0ALSA-2025:17119
AlmaLinux 9perl-JSON-XSFixed1:4.04-1.el9_6ALSA-2025:17162
AlmaLinux 8perl-JSON-XSFixed1:3.04-4.el8_10ALSA-2025:17163
Rocky Linux 10perl-JSON-XSFixed1:4.04-1.el10_0RLSA-2025:17119
Rocky Linux 9perl-JSON-XSFixed1:4.04-1.el9_6RLSA-2025:17162
Rocky Linux 8perl-JSON-XSFixed1:3.04-4.el8_10RLSA-2025:17163

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Update to 4.04, or apply the provided patch

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.