Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-40928

CVE-2025-40928: JSON::XS Perl DoS Vulnerability

CVE-2025-40928 is a denial-of-service flaw in JSON::XS for Perl caused by an integer buffer overflow. Attackers can trigger segfaults using crafted JSON. This article covers technical details, affected versions, and mitigations.

Published: April 22, 2026

CVE-2025-40928 Overview

CVE-2025-40928 is a critical integer buffer overflow vulnerability affecting JSON::XS, a popular high-performance JSON parsing library for Perl. Versions prior to 4.04 contain a flaw that allows attackers to trigger a segmentation fault by supplying specially crafted JSON input. This vulnerability can be exploited to cause denial-of-service conditions and may potentially enable other unspecified impacts depending on the application context.

Critical Impact

Attackers can crash applications using vulnerable JSON::XS versions by sending malicious JSON payloads, disrupting service availability for web applications, APIs, and backend systems that rely on Perl-based JSON processing.

Affected Products

  • JSON::XS versions before 4.04
  • Perl applications utilizing vulnerable JSON::XS versions
  • Debian systems with unpatched JSON::XS packages

Discovery Timeline

  • 2025-09-08 - CVE-2025-40928 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-40928

Vulnerability Analysis

This vulnerability stems from an integer buffer overflow condition within the JSON::XS XS.xs source code, specifically around line 256 as referenced in the MetaCPAN Source Code Reference. The flaw is classified under CWE-122 (Heap-based Buffer Overflow), indicating that improper bounds checking during JSON parsing operations can lead to memory corruption.

When JSON::XS processes certain malformed or excessively crafted JSON structures, an integer overflow occurs during buffer size calculations. This causes the library to allocate an insufficient buffer, and subsequent write operations overflow the allocated heap memory region. The resulting memory corruption triggers a segmentation fault, immediately crashing the affected process.

The vulnerability is exploitable over the network without authentication or user interaction, making it particularly dangerous for internet-facing services that parse untrusted JSON input.

Root Cause

The root cause is an integer overflow in the buffer size calculation logic within the XS.xs parsing code. When processing specially crafted JSON input with specific size characteristics, the integer arithmetic used to compute required buffer sizes wraps around, resulting in a smaller-than-expected allocation. Subsequent parsing operations write beyond the allocated buffer boundaries, corrupting adjacent heap memory and causing a segmentation fault.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by sending a crafted JSON payload to any application endpoint that processes JSON using vulnerable JSON::XS versions. The attack is particularly effective against:

  • Web applications accepting JSON API requests
  • Backend services parsing JSON configuration or data
  • Message queue consumers processing JSON messages
  • Any Perl script or daemon that deserializes untrusted JSON input

The vulnerability triggers when the parser encounters the malicious input, causing immediate process termination. For technical details on the vulnerable code path, refer to the MetaCPAN Source Code Reference.

Detection Methods for CVE-2025-40928

Indicators of Compromise

  • Unexpected segmentation faults or crashes in Perl processes handling JSON data
  • Core dump files generated by applications using JSON::XS during JSON parsing operations
  • Service availability issues correlated with receipt of unusual JSON payloads
  • Error logs showing memory-related crashes in JSON parsing routines

Detection Strategies

  • Monitor application logs for segmentation fault signals (SIGSEGV) in Perl processes
  • Implement JSON payload size and structure validation at ingress points before processing
  • Deploy endpoint protection solutions like SentinelOne that detect memory corruption exploitation attempts
  • Audit installed Perl module versions to identify JSON::XS versions below 4.04

Monitoring Recommendations

  • Enable core dump analysis for production Perl applications to capture crash details
  • Configure application performance monitoring to alert on unexpected process restarts
  • Implement request logging with payload metadata to correlate crashes with specific inputs
  • Use SentinelOne Singularity platform for real-time behavioral detection of exploitation attempts

How to Mitigate CVE-2025-40928

Immediate Actions Required

  • Upgrade JSON::XS to version 4.04 or later immediately across all affected systems
  • Apply the available patch from MetaCPAN CVE-2025 Patch if immediate upgrade is not possible
  • Implement input validation to reject excessively large or malformed JSON before processing
  • Consider temporary use of alternative JSON parsing libraries like JSON::PP until patching is complete
  • Review the Debian LTS Announcement for distribution-specific guidance

Patch Information

The vulnerability has been addressed in JSON::XS version 4.04. A backport patch is available for version 4.03 at the MetaCPAN CVE-2025 Patch repository. Debian users should apply updates from their distribution's security repositories as detailed in the Debian LTS Announcement. The security discussion and additional context can be found in the Openwall OSS-Security Discussion.

Workarounds

  • Implement a reverse proxy or web application firewall to validate and sanitize JSON input before it reaches Perl applications
  • Add application-level JSON size limits to prevent processing of excessively large payloads
  • Deploy rate limiting on endpoints accepting JSON to reduce exploitation impact
  • Consider containerization with resource limits to contain crash impact and enable automatic recovery
bash
# Upgrade JSON::XS using CPAN
cpan JSON::XS

# Verify installed version is 4.04 or later
perl -MJSON::XS -e 'print $JSON::XS::VERSION . "\n"'

# For Debian-based systems, update via package manager
apt-get update && apt-get install libjson-xs-perl

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPerl

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.13%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-122
  • Technical References
  • MetaCPAN Source Code Reference

  • MetaCPAN CVE-2025 Patch

  • Openwall OSS-Security Discussion

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2026-2474: Perl Crypt::URandom Heap Overflow DoS Flaw

  • CVE-2026-40199: Net::CIDR::Lite Auth Bypass Vulnerability

  • CVE-2026-40198: Net::CIDR::Lite Auth Bypass Vulnerability

  • CVE-2026-4176: Perl Compress::Raw::Zlib Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English