CVE-2025-40928 Integer overflow in JSON::XS

High 7.5 Published Updated

An integer buffer overflow in the JSON::XS Perl library allows attackers to cause a denial of service via crafted JSON input.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-40928?

CVE-2025-40928 is a high-severity vulnerability in MLEHMANN JSON::XS, published on 8 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-122

Which versions are affected by CVE-2025-40928?

Linux distribution packages (19)
perl-JSON-XS AlmaLinux:10All versions1:4.04-1.el10_0
perl-JSON-XS AlmaLinux:8All versions1:3.04-4.el8_10
perl-JSON-XS AlmaLinux:9All versions1:4.04-1.el9_6
perl-JSON-XS Red Hat:enterprise_linux:10.0All versions1:4.04-1.el10_0
perl-JSON-XS-debuginfo Red Hat:enterprise_linux:10.0All versions1:4.04-1.el10_0
perl-JSON-XS-debugsource Red Hat:enterprise_linux:10.0All versions1:4.04-1.el10_0
perl-JSON-XS Red Hat:enterprise_linux:8::crbAll versions1:3.04-4.el8_10
perl-JSON-XS-debuginfo Red Hat:enterprise_linux:8::crbAll versions1:3.04-4.el8_10
perl-JSON-XS-debugsource Red Hat:enterprise_linux:8::crbAll versions1:3.04-4.el8_10
perl-JSON-XS Red Hat:enterprise_linux:9::crbAll versions1:4.04-1.el9_6
perl-JSON-XS-debuginfo Red Hat:enterprise_linux:9::crbAll versions1:4.04-1.el9_6
perl-JSON-XS-debugsource Red Hat:enterprise_linux:9::crbAll versions1:4.04-1.el9_6
perl-JSON-XS Red Hat:rhel_eus:9.4::crbAll versions1:4.03-5.el9_4.1
perl-JSON-XS-debuginfo Red Hat:rhel_eus:9.4::crbAll versions1:4.03-5.el9_4.1
perl-JSON-XS-debugsource Red Hat:rhel_eus:9.4::crbAll versions1:4.03-5.el9_4.1
perl-JSON-XS Rocky Linux:10All versions1:4.04-1.el10_0
perl-JSON-XS Rocky Linux:8All versions1:3.04-4.el8_10
perl-JSON-XS Rocky Linux:9All versions1:4.04-1.el9_6
perl-JSON-XS openSUSE:TumbleweedAll versions4.40.0-1.1

How do I fix CVE-2025-40928?

Upgrade to a fixed version.

Is CVE-2025-40928 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-40928 exists.

Sources

Also known as ALSA-2025:17119, ALSA-2025:17162, ALSA-2025:17163, AZL-67076, AZL-67079, DEBIAN-CVE-2025-40928 and 20 more.

Is CVE-2025-40928 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free