The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-40914

CVE-2025-40914: Perl CryptX Buffer Overflow Vulnerability

CVE-2025-40914 is a buffer overflow vulnerability in Perl CryptX affecting versions before 0.087 through an embedded libtommath library. This article covers technical details, affected versions, security impact, and mitigation.

Published: March 24, 2026

CVE-2025-40914 Overview

Perl CryptX before version 0.087 contains a vulnerable dependency that is susceptible to an integer overflow. The vulnerability stems from CryptX embedding a version of the libtommath library that is affected by the integer overflow associated with CVE-2023-36328. This vulnerability can potentially allow attackers to compromise cryptographic operations performed by the CryptX module.

Critical Impact

This integer overflow vulnerability in the embedded libtommath library within Perl CryptX can lead to memory corruption, potentially enabling remote code execution or denial of service attacks against applications using affected versions.

Affected Products

  • Perl CryptX versions prior to 0.087
  • Applications utilizing CryptX module for cryptographic operations
  • Systems with embedded libtommath library vulnerable to CVE-2023-36328

Discovery Timeline

  • 2025-06-11 - CVE CVE-2025-40914 published to NVD
  • 2025-06-12 - Last updated in NVD database

Technical Details for CVE-2025-40914

Vulnerability Analysis

This vulnerability exists due to CryptX embedding a version of the libtommath library that contains an integer overflow flaw. The libtommath library is a portable number theoretic multiple-precision integer library written in C, commonly used for cryptographic operations. The embedded version within CryptX prior to 0.087 carries the same integer overflow vulnerability documented in CVE-2023-36328.

Integer overflow vulnerabilities occur when arithmetic operations produce values that exceed the maximum size that can be stored in the allocated integer type. In the context of libtommath, this can lead to incorrect calculations during arbitrary-precision arithmetic operations, which are fundamental to cryptographic algorithms.

Root Cause

The root cause of this vulnerability lies in the bn_mp_grow.c source file within the embedded libtommath library. The integer overflow occurs during memory allocation calculations when growing multi-precision integer structures. When processing specially crafted input, the arithmetic used to calculate required buffer sizes can overflow, resulting in undersized memory allocations.

This issue was addressed in the upstream libtommath library through Pull Request #546, but CryptX versions prior to 0.087 continued to use a vulnerable embedded copy of the library.

Attack Vector

The vulnerability is exploitable over the network without requiring authentication or user interaction. An attacker can potentially exploit this by:

  1. Providing specially crafted input to applications using CryptX for cryptographic operations
  2. Triggering integer overflow during multi-precision integer growth operations
  3. Causing heap corruption due to undersized buffer allocations
  4. Potentially achieving arbitrary code execution or causing denial of service

Applications that process untrusted cryptographic data using affected CryptX versions are at risk. This includes systems performing signature verification, encryption/decryption, or key exchange operations with attacker-controlled input.

Detection Methods for CVE-2025-40914

Indicators of Compromise

  • Unexpected crashes or memory corruption errors in applications using Perl CryptX
  • Anomalous behavior during cryptographic operations involving large or malformed inputs
  • Process termination signals (SIGSEGV, SIGABRT) in Perl applications utilizing CryptX module

Detection Strategies

  • Audit installed Perl modules to identify CryptX versions below 0.087 using cpan -l | grep CryptX or checking $CryptX::VERSION
  • Monitor application logs for unexpected errors during cryptographic operations
  • Deploy runtime application self-protection (RASP) solutions to detect memory corruption attempts
  • Implement input validation for cryptographic data processed by CryptX-dependent applications

Monitoring Recommendations

  • Enable verbose logging for Perl applications utilizing CryptX to capture cryptographic operation failures
  • Configure system monitoring to alert on abnormal memory usage patterns in Perl processes
  • Implement file integrity monitoring for CryptX module files to detect unauthorized modifications
  • Review application dependencies regularly using CPAN security advisories

How to Mitigate CVE-2025-40914

Immediate Actions Required

  • Upgrade Perl CryptX to version 0.087 or later immediately using cpanm CryptX or cpan CryptX
  • Audit all systems and applications for the presence of vulnerable CryptX versions
  • Implement input validation to reject abnormally large or malformed cryptographic input
  • Consider temporarily restricting network access to affected applications until patching is complete

Patch Information

The vulnerability has been addressed in CryptX version 0.087. The fix incorporates an updated version of the embedded libtommath library that resolves the integer overflow issue. Users should upgrade to the latest available version through CPAN.

For additional technical details, refer to the GitHub Security Advisory and the upstream libtommath fix.

Workarounds

  • If immediate upgrade is not possible, limit exposure by restricting network access to affected applications
  • Implement application-level input validation to reject exceptionally large cryptographic inputs
  • Consider temporarily using alternative Perl cryptographic modules that do not rely on the vulnerable libtommath version
  • Deploy web application firewalls (WAF) to filter potentially malicious cryptographic payloads
bash
# Upgrade CryptX to patched version
cpanm CryptX

# Verify installed version
perl -MCryptX -e 'print "$CryptX::VERSION\n"'

# Alternative: Install specific version
cpanm CryptX@0.087

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechPerl Cryptx

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • Technical References
  • GitHub Security Advisory

  • GitHub Pull Request

  • MetaCPAN Source File

  • CVE-2023-36328 Record
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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