CVE-2026-13577: CWE-340 Generation of Predictable Numbers or Identifiers in CROMEDOME Dancer2
Dancer2 versions up to 2.1.0 for Perl generate insecure, predictable session IDs when required cryptographically secure random number generator (CSPRNG) modules are unavailable. The fallback mechanism uses low-entropy sources including the built-in rand() function, which is seeded with only 32 bits and is unsuitable for security purposes. This vulnerability could allow attackers to predict session IDs and potentially gain unauthorized access.
AI Analysis
Technical Summary
CVE-2026-13577 affects Dancer2 versions up to 2.1.0. When the required CSPRNG modules Math::Random::ISAAC::XS and Crypt::URandom are not available, the Dancer2::Core::Role::SessionFactory::generate_id function silently falls back to generating session IDs using a SHA-1 hash of low-entropy inputs such as the built-in rand() output, module path, process ID, internal counters, and a shuffled character string. The built-in rand() function is seeded with only 32 bits and is not suitable for cryptographic use, resulting in predictable session identifiers. This weakness in session ID generation can lead to session prediction attacks.
Potential Impact
The vulnerability allows attackers to predict session IDs due to the use of weak entropy sources in the fallback session ID generation. This can lead to unauthorized access to user sessions, compromising confidentiality and availability of affected systems. The CVSS 3.1 base score is 8.2 (high), reflecting network attack vector, low attack complexity, no privileges or user interaction required, with limited confidentiality impact but high availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, ensure that the required CSPRNG modules Math::Random::ISAAC::XS and Crypt::URandom are installed and available to Dancer2 to avoid fallback to insecure session ID generation. Avoid running affected versions without these modules.
CVE-2026-13577: CWE-340 Generation of Predictable Numbers or Identifiers in CROMEDOME Dancer2
Description
Dancer2 versions up to 2.1.0 for Perl generate insecure, predictable session IDs when required cryptographically secure random number generator (CSPRNG) modules are unavailable. The fallback mechanism uses low-entropy sources including the built-in rand() function, which is seeded with only 32 bits and is unsuitable for security purposes. This vulnerability could allow attackers to predict session IDs and potentially gain unauthorized access.
CVSS v3.1
Score 8.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-13577 affects Dancer2 versions up to 2.1.0. When the required CSPRNG modules Math::Random::ISAAC::XS and Crypt::URandom are not available, the Dancer2::Core::Role::SessionFactory::generate_id function silently falls back to generating session IDs using a SHA-1 hash of low-entropy inputs such as the built-in rand() output, module path, process ID, internal counters, and a shuffled character string. The built-in rand() function is seeded with only 32 bits and is not suitable for cryptographic use, resulting in predictable session identifiers. This weakness in session ID generation can lead to session prediction attacks.
Potential Impact
The vulnerability allows attackers to predict session IDs due to the use of weak entropy sources in the fallback session ID generation. This can lead to unauthorized access to user sessions, compromising confidentiality and availability of affected systems. The CVSS 3.1 base score is 8.2 (high), reflecting network attack vector, low attack complexity, no privileges or user interaction required, with limited confidentiality impact but high availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, ensure that the required CSPRNG modules Math::Random::ISAAC::XS and Crypt::URandom are installed and available to Dancer2 to avoid fallback to insecure session ID generation. Avoid running affected versions without these modules.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-06-28T20:59:07.978Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5dd8612a4a8d5989a80609
Added to database: 07/20/2026, 08:12:17 UTC
Last enriched: 07/30/2026, 13:25:16 UTC
Last updated: 09/03/2026, 22:52:09 UTC
Views: 148
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.