Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable. Dancer2::Core::Role::SessionFactory::generate_id silently falls back to a built-in rand-derived session id unless both Math::Random::ISAAC::XS and Crypt::URandom are available. The fallback session id is generated from a SHA-1 hash of a call to the built-in rand function, the absolute path of the Dancer2::Core::Role::SessionFactory module, an internal counter, the process id, the module instance memory address, and a shuffled string of characters (using the List::Util::shuffle function, which also uses the built-in rand function). These are all low-entropy and easily guessed sources. The built-in rand() function is seeded with 32-bits and considered unsuitable for security applications. Predictable session ids could allow an attacker to gain access to systems.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Dancer2 | before 2.2.0 | 2.2.0 | Patch available | CNA |
- Dancer2 Vendor— Affected before 2.2.0 Fixed in 2.2.0 Patch available CNA
Remediation
- Fix · CNA Dancer2 Fixed in 2.2.0
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2026-13577
- 2026-10-03 Alias added: GHSA-ccc2-34g9-j7rg
References
Other 5
Sources
- CVE-2026-13577 · CVE Program
- CVE-2026-13577 · NVD
- FIRST EPSS
- GHSA-ccc2-34g9-j7rg · GitHub Advisory Database · CC BY 4.0
- CVE-2026-13577 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences