CVE-2025-40928 Details
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
A buffer overflow vulnerability has been identified in the JSON::XS module for Perl, affecting versions prior to 4.04. This vulnerability arises from improper handling of integers, leading to a segmentation fault (segfault) when the module parses specially crafted JSON. The flaw enables denial-of-service (DoS) attacks and potentially other unspecified impacts.
Users are advised to update to JSON::XS version 4.04 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 8, 2025CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/MLEHMANN/JSON-XS-4.03/source/XS.xs#L256 | CPANSec | Source CodeVendor |
| https://security.metacpan.org/patches/J/JSON-XS/4.03/CVE-2025-40928-r1.patch | CPANSec | Broken LinkSource CodeVendor |
| https://lists.debian.org/debian-lts-announce/2025/09/msg00033.html | CVE | |
| http://www.openwall.com/lists/oss-security/2025/09/08/2 | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| MLEHMANN JSON::XS | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 4, 2025 | CVE Modified | CVE |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 8, 2025 | CVE Modified | CISA-ADP |
| Sep 8, 2025 | New CVE Received | CPANSec |
Volerion