cve.bz

CVE-2025-40928 mlehmann json xs: Heap-based Buffer Overflow

7.5 highEPSS 0.7%

High (7.5) in mlehmann json xs. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-09-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-40928 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-40928?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-40928?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-40928 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MLEHMANN JSON::XSbefore 4.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libjson-xs-perl4.030-1+deb11u1DLA-4317-1
Debian12libjson-xs-perl4.040-1~deb12u1DEBIAN-CVE-2025-40928 DSA-5999-1
Debian13libjson-xs-perl4.040-1~deb13u1DEBIAN-CVE-2025-40928 DSA-5999-1
Debian14libjson-xs-perl4.030-3DEBIAN-CVE-2025-40928
Ubuntu14.04:LTS, 16.04:LTS, 18.04:LTS and 1 morelibjson-xs-perlno fix listedUBUNTU-CVE-2025-40928
Ubuntu22.04:LTSlibjson-xs-perl4.040-0ubuntu0.22.04.1UBUNTU-CVE-2025-40928 USN-7750-1
Ubuntu24.04:LTSlibjson-xs-perl4.040-0ubuntu0.24.04.1UBUNTU-CVE-2025-40928 USN-7750-1
Ubuntu25.10, 26.04:LTS, 26.10libjson-xs-perl4.040-1UBUNTU-CVE-2025-40928
Red Hatenterprise_linux:8::crbperl-JSON-XS, perl-JSON-XS-debuginfo, perl-JSON-XS-debugsource1:3.04-4.el8_10RHSA-2025:17163
Red Hatenterprise_linux:9::crbperl-JSON-XS, perl-JSON-XS-debuginfo, perl-JSON-XS-debugsource1:4.04-1.el9_6RHSA-2025:17162
Red Hatenterprise_linux:10.0perl-JSON-XS, perl-JSON-XS-debuginfo, perl-JSON-XS-debugsource1:4.04-1.el10_0RHSA-2025:17119
Red Hatrhel_eus:9.4::crbperl-JSON-XS, perl-JSON-XS-debuginfo, perl-JSON-XS-debugsource1:4.03-5.el9_4.1RHSA-2025:17430
openSUSETumbleweedperl-JSON-XS4.40.0-1.1openSUSE-SU-2025:15535-1
AlmaLinux8perl-JSON-XS1:3.04-4.el8_10ALSA-2025:17163
AlmaLinux9perl-JSON-XS1:4.04-1.el9_6ALSA-2025:17162
AlmaLinux10perl-JSON-XS1:4.04-1.el10_0ALSA-2025:17119
Rocky Linux8perl-JSON-XS1:3.04-4.el8_10RLSA-2025:17163
Rocky Linux9perl-JSON-XS1:4.04-1.el9_6RLSA-2025:17162
Rocky Linux10perl-JSON-XS1:4.04-1.el10_0RLSA-2025:17119
Azure Linux2perl-JSON-XS4.04-1AZL-67079
Azure Linux3perl-JSON-XS4.04-1AZL-67076

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Only applications processing JSON input supplied by untrusted users with the JSON-XS Perl module are vulnerable to this issue, limiting the exposure and impact of this vulnerability.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10perl-JSON-XS-1:4.04-1.el10_0Fixed 2025-09-30RHSA-2025:17119
Red Hat Enterprise Linux 8perl-JSON-XS-1:3.04-4.el8_10Fixed 2025-10-01RHSA-2025:17163
Red Hat Enterprise Linux 9perl-JSON-XS-1:4.04-1.el9_6Fixed 2025-10-01RHSA-2025:17162
Red Hat Enterprise Linux 9.4 Extended Update Supportperl-JSON-XS-1:4.03-5.el9_4.1Fixed 2025-10-07RHSA-2025:17430

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-40928.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON