Skip to main content

Amon2 EUVDEUVD-2025-209114

| CVE-2025-15604 CRITICAL
Generation of Predictable Numbers or Identifiers (CWE-340)
2026-03-28 CPANSec GHSA-7r2j-hgh9-jqqx
9.8
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
Impact

Although CVSS vector and EPSS score are not provided, the underlying risk is substantial and well-understood in cryptography: predictable random number generation for security functions enables session hijacking, cookie forgery, and CSRF attacks. The attack vector is remote and does not require authentication (an attacker can exploit predictability of session tokens or CSRF tokens without prior access). The primary risk factors are: (1) fallback behavior in versions 6.06-6.16 is triggered when /dev/urandom is unavailable, a scenario that may occur in containerized or virtualized environments or on misconfigured systems; (2) the seed components (PID, epoch time) are often observable or guessable; (3) Perl's rand() function, even when hashed, is not cryptographically sound; (4) the impact is direct compromise of session and CSRF token security. The absence of an assigned CVSS score and EPSS probability reflects that this CVE was not formally scored by NVD or FIRST at analysis time, but the technical severity is high for any application relying on Amon2's random_string for session/token generation. No public exploit code or active exploitation has been confirmed (no KEV status, no POC reference), meaning this is a logic flaw that attackers must manually weaponize through brute-force or side-channel inference of seed values-feasible but not trivial. Real-world risk depends entirely on whether the fallback is triggered and whether an application's deployment exposes the seed inputs.

Exploit ScenarioDerived

An attacker targeting an application built with vulnerable Amon2 (versions 6.06-6.16) running in an environment where /dev/urandom is unavailable (e.g., a restricted container or system) can infer or brute-force session IDs or CSRF tokens by enumerating plausible process IDs, observing or guessing the epoch time (obtainable from HTTP Date headers), and leveraging knowledge that the random component is derived from Perl's weak rand() function seeded predictably. The attacker then hijacks a user's session or forges a CSRF request without requiring authentication or interaction with the victim. Exploitation is not automated and requires technical sophistication (reverse-engineering the seed and hash), but the attack surface is real and expands significantly if multiple application instances run simultaneously with recycled PIDs.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 28, 2026

Amon2 for Perl versions before 6.17 use cryptographically weak random number generation for security-critical functions including session IDs, cookie signing secrets, and CSRF tokens. Versions 6.06-6.16 fall back to SHA-1 hashes seeded with predictable inputs (process ID from a small set, guessable epoch time, and the unsuitable built-in rand() function) when /dev/urandom is unavailable; versions before 6.06 relied entirely on built-in rand(). No CVSS vector or EPSS data is available, and no public exploit code or active exploitation has been confirmed, but the weakness directly undermines session security and CSRF protection in affected applications.

RemediationAI

Upgrade Amon2 to version 6.17 or later, which replaces the weak random_string implementation with cryptographically secure random number generation. The fix is documented in the diff at https://metacpan.org/release/TOKUHIROM/Amon2-6.17/diff/TOKUHIROM/Amon2-6.16#lib/Amon2/Util.pm and was implemented via pull request https://github.com/tokuhirom/Amon/pull/135. No workaround is available for versions prior to 6.17; patching is the only remediation. Administrators should audit applications using affected Amon2 versions to identify all session IDs, CSRF tokens, and cookie signing secrets generated during the vulnerable period and consider invalidating them or implementing additional integrity checks. For guidance on secure random data generation in Perl, refer to https://security.metacpan.org/docs/guides/random-data-for-security.html.

Affected VersionsENISA

Amon2 0 <6.17

Affected Packages

euvd amon2 fix: 6.17

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Amon2 is a Perl web application framework (CPE: cpe:2.3:a:tokuhirom:amon2:*:*:*:*:*:*:*:*) that implements the random_string function to generate cryptographic material for web session management and token generation. The vulnerability falls under CWE-340 (Generation of Predictable Numbers or Identifiers from a Seed). In versions 6.06-6.16, the function attempts to read from /dev/urandom but falls back to concatenating a SHA-1 hash derived from three inputs: Perl's built-in rand() function (which is a pseudorandom number generator unsuitable for cryptographic use), the process identifier (constrained to a small numeric range), and high-resolution epoch time (often visible in HTTP Date headers or otherwise guessable within a narrow window). Versions before 6.06 had no fallback mechanism; versions before 6.04 used only the built-in rand() function directly. The random_string output is used for session ID generation, deriving secrets for cookie encryption/signing, and generating CSRF protection tokens-all security-critical functions where predictability directly compromises application security.

Know when Amon2 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Updated
Apr 16, 2026 - 05:47 EUVD-patch-fix
executive summary
Patch available
Apr 16, 2026 - 05:29 EUVD
6.17
CVE Published
Mar 28, 2026 - 18:43 nvd
CRITICAL 9.8

DescriptionCVE.org

Amon2 versions before 6.17 for Perl use an insecure random_string implementation for security functions.

In versions 6.06 through 6.16, the random_string function will attempt to read bytes from the /dev/urandom device, but if that is unavailable then it generates bytes by concatenating a SHA-1 hash seeded with the built-in rand() function, the PID, and the high resolution epoch time. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage.

Before version 6.06, there was no fallback when /dev/urandom was not available.

Before version 6.04, the random_string function used the built-in rand() function to generate a mixed-case alphanumeric string.

This function may be used for generating session ids, generating secrets for signing or encrypting cookie session data and generating tokens used for Cross Site Request Forgery (CSRF) protection.

Executive ViewAI

Why It Matters

Amon2 for Perl versions before 6.17 generate cryptographically weak session IDs, CSRF tokens, and cookie secrets, creating a critical risk of session hijacking and CSRF attacks against applications using affected versions. Organizations running Amon2-based web applications face immediate exposure to unauthorized access and account compromise, as attackers can predict security tokens without authentication.

Business Impact: Severe
Compensating Controls

Apply vendor patch to version 6.17 or later. If immediate patching is not possible, ensure /dev/urandom availability in the runtime environment; however, this does not remediate versions before 6.06 which bypass cryptographic sources entirely. Consider implementing a Web Application Firewall with CSRF detection and session anomaly monitoring as temporary mitigation only-patching is mandatory.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy