Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-40928: Integer Buffer Overflow in JSON::XS before 4.04

Published Sep 8, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v3.1
EPSS0.70%54th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
IdentifiersCVE-2025-40928CWE-122 · Heap-based Buffer Overflow

CVE-2025-40928 is an integer buffer overflow vulnerability in JSON::XS for Perl affecting versions prior to 4.04. When the library parses crafted JSON input, the flaw can trigger a segmentation fault due to incorrect buffer size handling during processing. The issue is classified as a heap-based buffer overflow. Successful exploitation can crash the consuming process and may have additional unspecified consequences depending on how the vulnerable parser is embedded and invoked.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

The primary confirmed impact is denial of service through process termination caused by a segmentation fault while parsing attacker-controlled JSON. Because the flaw is a heap-based buffer overflow, memory corruption beyond a simple crash may be possible, but no specific additional impact has been confirmed in the available information.

Mitigation

If you can’t patch tonight, do this now.

Reduce exposure by preventing untrusted or externally supplied JSON from reaching vulnerable JSON::XS parsers until the module is updated. Where feasible, isolate services that parse attacker-controlled JSON, add input validation and size constraints before parsing, and monitor for crashes in Perl applications that depend on JSON::XS. These measures are temporary and do not replace upgrading or patching.

Remediation

Patch, then assume compromise.

Upgrade JSON::XS to version 4.04 or later. Where immediate upgrade is not possible, apply the vendor-published patch for the affected pre-4.04 release and redeploy applications linked against the vulnerable module.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2025-40928 exploited in the wild?
Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2025-40928?
Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2025-40928.
Is there a patch for CVE-2025-40928?
Upgrade JSON::XS to version 4.04 or later. Where immediate upgrade is not possible, apply the vendor-published patch for the affected pre-4.04 release and redeploy applications linked against the vulnerable module.
How severe is CVE-2025-40928?
CVE-2025-40928 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 0.70% (54th percentile) as of Sep 25, 2026.
Activity feed

Recent activity

6 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.

View more in app →

No news coverage yet. Advisories and community discussion only.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.