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-15604

CVE-2025-15604: Amon2 Information Disclosure Vulnerability

CVE-2025-15604 is an information disclosure vulnerability in Tokuhirom Amon2 for Perl caused by weak random number generation in security functions. This article covers technical details, affected versions, and mitigation.

Published: April 2, 2026

CVE-2025-15604 Overview

CVE-2025-15604 is a critical insecure random number generation vulnerability affecting Amon2, a popular Perl web application framework. Versions prior to 6.17 implement a weak random_string function that relies on cryptographically unsuitable methods for generating security-critical values such as session identifiers, cookie signing secrets, and CSRF protection tokens.

The vulnerability stems from multiple implementation flaws across different version ranges. In versions 6.06 through 6.16, when the /dev/urandom device is unavailable, the framework falls back to generating random bytes by concatenating a SHA-1 hash seeded with Perl's built-in rand() function, the process ID (PID), and high-resolution epoch time. Earlier versions had even weaker implementations, with versions before 6.06 having no fallback mechanism and versions before 6.04 using rand() directly for alphanumeric string generation.

Critical Impact

Attackers can predict session tokens, CSRF tokens, and cryptographic secrets, enabling session hijacking, authentication bypass, and cross-site request forgery attacks against applications built with vulnerable Amon2 versions.

Affected Products

  • Tokuhirom Amon2 versions prior to 6.17 for Perl
  • Amon2 versions 6.06 through 6.16 (weak /dev/urandom fallback)
  • Amon2 versions before 6.04 (direct rand() usage)

Discovery Timeline

  • 2026-03-28 - CVE-2025-15604 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2025-15604

Vulnerability Analysis

This vulnerability represents a fundamental weakness in cryptographic random number generation (CWE-338). The random_string function in Amon2 is used for generating security-sensitive values including session identifiers, secrets for signing or encrypting cookie session data, and tokens for Cross-Site Request Forgery (CSRF) protection.

The core issue is that Perl's built-in rand() function is a pseudorandom number generator (PRNG) designed for general-purpose use, not cryptographic applications. When combined with predictable values like the PID (which typically falls within a small, enumerable range) and epoch time (which may be leaked via HTTP Date headers or guessed based on request timing), an attacker can potentially reconstruct the seed values and predict the output of the random string generation.

Root Cause

The root cause is the use of cryptographically weak random number generation in security-critical contexts. Specifically:

  1. Perl's rand() function uses a linear congruential generator or similar PRNG algorithm that is deterministic and predictable given the seed
  2. Limited entropy sources when /dev/urandom is unavailable, relying on easily guessable or leakable values (PID, timestamp)
  3. Information leakage through HTTP Date headers that can expose the approximate time used in seed generation
  4. Small PID space that can be enumerated by attackers to reconstruct potential seeds

Attack Vector

The vulnerability is exploitable over the network without authentication or user interaction. An attacker can exploit this weakness through the following approach:

The attack involves collecting timing information from HTTP response headers to estimate the epoch time used during token generation. Since process IDs typically range from 1 to 32768 (or similar limited ranges depending on the operating system), an attacker can enumerate possible PID values combined with the estimated timestamp to reconstruct potential seeds.

Once the seed is determined, the attacker can predict:

  • Session identifiers, enabling session hijacking
  • Cookie signing secrets, allowing forged session cookies
  • CSRF tokens, bypassing CSRF protection mechanisms

The MetaCPAN Security Guide provides additional context on proper random data generation for security purposes. Technical details of the fix can be reviewed in the MetaCPAN Version Diff.

Detection Methods for CVE-2025-15604

Indicators of Compromise

  • Applications running Amon2 versions prior to 6.17 that generate session tokens or CSRF tokens
  • Systems where /dev/urandom is unavailable or restricted, forcing the weak fallback mechanism
  • Evidence of session hijacking or CSRF bypass attacks in application logs

Detection Strategies

  • Audit Perl application dependencies for Amon2 versions prior to 6.17 using CPAN module version checks
  • Review application logs for suspicious session token reuse patterns that may indicate prediction attacks
  • Monitor for unusual authentication or session-related anomalies that could indicate exploitation
  • Implement entropy monitoring on systems to detect when /dev/urandom becomes unavailable

Monitoring Recommendations

  • Enable detailed logging for session creation and CSRF token generation events
  • Monitor for multiple failed authentication attempts followed by successful access using predicted tokens
  • Implement anomaly detection for session token patterns that may indicate predictable generation
  • Set up alerts for systems where cryptographic entropy sources become unavailable

How to Mitigate CVE-2025-15604

Immediate Actions Required

  • Upgrade Amon2 to version 6.17 or later immediately across all affected applications
  • Audit all applications using Amon2 to identify vulnerable deployments
  • Ensure /dev/urandom is available and accessible on all systems running Amon2 applications
  • Invalidate all existing sessions and regenerate all secrets after upgrading

Patch Information

The vulnerability has been addressed in Amon2 version 6.17. The fix ensures proper cryptographic random number generation is used for all security-sensitive operations. Details of the changes are available in the MetaCPAN Release Changes and the associated GitHub Pull Request.

Administrators should update using CPAN or their preferred Perl module management tool:

bash
# Upgrade Amon2 to the patched version
cpanm Amon2@6.17

# Verify the installed version
perl -MAmon2 -e 'print $Amon2::VERSION'

Workarounds

  • Ensure /dev/urandom is always available and accessible to the application process to avoid triggering the weak fallback
  • Consider implementing a custom random string generator using Crypt::URandom or similar cryptographically secure modules as an interim measure
  • Remove HTTP Date headers from responses to reduce timestamp information leakage if immediate patching is not possible
  • Implement additional session validation mechanisms such as IP binding or user agent verification as defense-in-depth measures
bash
# Verify /dev/urandom availability
ls -la /dev/urandom

# Check if Perl can access urandom
perl -e 'open(my $fh, "<", "/dev/urandom") or die "Cannot access urandom: $!"; print "urandom accessible\n";'

# Upgrade Amon2 via CPAN
cpan install Amon2

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechAmon2

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.04%

  • 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
  • CWE References
  • CWE-338
  • Technical References
  • MetaCPAN Release Changes

  • MetaCPAN Version Diff

  • MetaCPAN Security Guide

  • OpenWall OSS Security Post
  • Vendor Resources
  • GitHub Pull Request Update
  • Latest CVEs
  • CVE-2026-35467: Browser API Key Information Disclosure

  • CVE-2026-35466: cveInterface.js XSS Vulnerability

  • CVE-2026-30252: ZenShare Suite XSS Vulnerability

  • CVE-2026-30251: ZenShare Suite v17.0 XSS Vulnerability
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