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-2026-41564

CVE-2026-41564: CryptX Perl PRNG Fork Vulnerability

CVE-2026-41564 is a PRNG state reseeding flaw in CryptX for Perl that allows identical cryptographic outputs across forked processes, enabling private key recovery. This post covers technical details, affected versions, and mitigations.

Published: April 23, 2026

CVE-2026-41564 Overview

CVE-2026-41564 is an insecure random number generation vulnerability in CryptX versions before 0.088 for Perl. The Crypt::PK modules fail to reseed their PRNG (Pseudorandom Number Generator) state after process forking operations, leading to identical cryptographic output across multiple child processes.

The Crypt::PK::RSA, Crypt::PK::DSA, Crypt::PK::DH, Crypt::PK::ECC, Crypt::PK::Ed25519, and Crypt::PK::X25519 modules seed a per-object PRNG state in their constructors and reuse it without fork detection. When a Crypt::PK::* object is created before fork(), it shares byte-identical PRNG state with every child process. Any randomized cryptographic operation performed by these child processes can produce identical output, including key generation.

Critical Impact

Two ECDSA or DSA signatures from different forked processes using the same PRNG state are sufficient to recover the signing private key through nonce-reuse key recovery attacks. This is particularly dangerous in preforking server environments like Starman.

Affected Products

  • CryptX versions before 0.088 for Perl
  • Crypt::PK::RSA, Crypt::PK::DSA, Crypt::PK::DH, Crypt::PK::ECC, Crypt::PK::Ed25519, Crypt::PK::X25519 modules
  • Preforking services such as Starman web server that inherit Crypt::PK::* objects from parent processes

Discovery Timeline

  • 2026-04-23 - CVE-2026-41564 published to NVD
  • 2026-04-23 - Last updated in NVD database

Technical Details for CVE-2026-41564

Vulnerability Analysis

This vulnerability stems from improper PRNG state management in the CryptX library's public-key cryptography modules. When a Perl application using CryptX creates a cryptographic object and subsequently calls fork(), the PRNG state is duplicated to all child processes without reseeding. Since the PRNG is deterministic given its state, all forked processes will generate identical "random" values when performing cryptographic operations.

The impact is most severe for signature schemes like ECDSA and DSA that rely on unique, unpredictable nonces for each signature. When two signatures are created with the same nonce but different messages, an attacker can mathematically recover the private key. This is a well-documented cryptographic attack known as nonce-reuse key recovery.

Preforking web servers like Starman are particularly vulnerable because they typically load application code (including cryptographic objects) in the parent process before forking worker processes to handle requests.

Root Cause

The root cause is the absence of fork detection in the Crypt::PK::* module structures. Each cryptographic object maintains a prng_state and pindex for its random number generation, but lacks a mechanism to detect when the process has forked. Without a last_pid field to track the process ID at PRNG initialization time, the library cannot detect when it's operating in a forked child process and needs to reseed.

Attack Vector

The attack exploits the network-accessible nature of preforking services:

  1. An attacker identifies a service using CryptX in a preforking architecture (e.g., Starman)
  2. The attacker triggers multiple requests that cause different worker processes to perform signing operations
  3. Due to shared PRNG state, workers generate signatures with identical nonces
  4. The attacker collects two or more signatures with the same nonce but different messages
  5. Using the nonce-reuse recovery formula, the attacker computes the private signing key
  6. With the recovered private key, the attacker can forge signatures or impersonate the service
text
// Security patch adding fork detection via last_pid field
typedef struct rsa_struct {             /* used by Crypt::PK::RSA */
  prng_state pstate;
  int pindex;
+ IV last_pid;
  rsa_key key;
} *Crypt__PK__RSA;

typedef struct dsa_struct {             /* used by Crypt::PK::DSA */
  prng_state pstate;
  int pindex;
+ IV last_pid;
  dsa_key key;
} *Crypt__PK__DSA;

typedef struct dh_struct {              /* used by Crypt::PK::DH */
  prng_state pstate;
  int pindex;
+ IV last_pid;
  dh_key key;
} *Crypt__PK__DH;

typedef struct ecc_struct {             /* used by Crypt::PK::ECC */
  prng_state pstate;
  int pindex;
+ IV last_pid;
  ecc_key key;
} *Crypt__PK__ECC;

Source: GitHub Commit Patch

The fix initializes last_pid in the constructor:

text
        if (!RETVAL) croak("FATAL: Newz failed");
        RETVAL->key.type = -1;
        RETVAL->pindex = find_prng("chacha20");
+       RETVAL->last_pid = (IV)PerlProc_getpid();
        if (RETVAL->pindex == -1) {
          Safefree(RETVAL);
          croak("FATAL: find_prng('chacha20') failed");

Source: GitHub Commit Patch

Detection Methods for CVE-2026-41564

Indicators of Compromise

  • Detection of identical ECDSA or DSA signature nonces across different requests or worker processes
  • Cryptographic signatures with recoverable private keys indicating nonce reuse
  • Multiple SSL/TLS handshakes from the same server producing identical ephemeral keys
  • Duplicate random values in DH or ECDH key exchanges from preforking services

Detection Strategies

  • Audit Perl applications using CryptX modules for preforking patterns (Starman, Starlet, Twiggy with multiple workers)
  • Monitor for Crypt::PK::* object instantiation in parent processes before fork() calls
  • Implement signature nonce logging and anomaly detection for services using DSA/ECDSA
  • Review dependency manifests for CryptX versions below 0.088

Monitoring Recommendations

  • Enable logging of cryptographic operations in production environments to detect nonce collisions
  • Implement automated dependency scanning to identify vulnerable CryptX versions in CI/CD pipelines
  • Monitor security advisories for Perl cryptographic libraries via the OpenWall Security Mailing List
  • Configure SentinelOne agents to detect anomalous cryptographic behavior patterns in monitored Perl processes

How to Mitigate CVE-2026-41564

Immediate Actions Required

  • Upgrade CryptX to version 0.088 or later immediately
  • Audit all Perl applications using Crypt::PK::* modules for preforking patterns
  • Rotate any cryptographic keys that may have been generated or used in vulnerable preforking configurations
  • Review DSA and ECDSA signatures generated by affected systems for potential nonce reuse

Patch Information

The vulnerability is fixed in CryptX version 0.088, which adds fork detection by tracking the process ID (last_pid) in each cryptographic object structure. When a cryptographic operation is performed, the library now compares the current PID with the stored PID and reseeds the PRNG if they differ.

Patch details are available in the GitHub Security Advisory and the fixed version can be obtained from MetaCPAN.

Workarounds

  • Defer Crypt::PK::* object instantiation until after fork() completes in worker processes
  • Explicitly reseed PRNG state in worker processes immediately after fork using system entropy
  • Avoid using preforking server architectures with CryptX until upgraded to version 0.088
  • Consider using alternative cryptographic libraries with proper fork safety until patching is complete
bash
# Upgrade CryptX via CPAN
cpanm CryptX@0.088

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

# For applications using cpanfile, update dependency
echo 'requires "CryptX", ">= 0.088";' >> cpanfile
cpanm --installdeps .

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechCryptx

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-335
  • Technical References
  • GitHub Commit Patch

  • GitHub Security Advisory

  • MetaCPAN Release Information

  • OpenWall Security Mailing List
  • Related CVEs
  • CVE-2025-40912: CryptX for Perl Information Disclosure
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