CVE Explorer
CVE-2026-13577
Dancer2 versions through 2.1.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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:389caa1884e1e937f034f56d74e8187cc6f5a8d61099c395d0eff8c3631e629c · sha256:6a3baa055b0e4599… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:389caa1884e1e937f034f56d74e8187cc6f5a8d61099c395d0eff8c3631e629c · sha256:6a3baa055b0e4599… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Dancer2","product":"Dancer2","programFiles":["lib/Dancer2/Core/Role/SessionFactory.pm"],"programRoutines":[{"name":"Dancer2::Core::Role::SessionFactory::generate_id"}],"repo":"https://github.com/PerlDancer/Dancer2","vendor":"CROMEDOME","versions":[{"lessThanOrEqual":"2.1.0","status":"affected","version":"0","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:389caa1884e1e937f034f56d74e8187cc6f5a8d61099c395d0eff8c3631e629c · sha256:6a3baa055b0e4599… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.2,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:389caa1884e1e937f034f56d74e8187cc6f5a8d61099c395d0eff8c3631e629c · sha256:6a3baa055b0e4599… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:389caa1884e1e937f034f56d74e8187cc6f5a8d61099c395d0eff8c3631e629c · sha256:6a3baa055b0e4599… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:389caa1884e1e937f034f56d74e8187cc6f5a8d61099c395d0eff8c3631e629c · sha256:6a3baa055b0e4599… · /containers/cna/problemTypes/1/descriptions/0
Source references
2 source assertions{"url":"https://github.com/PerlDancer/Dancer2/blob/v2.1.0/lib/Dancer2/Core/Role/SessionFactory.pm#L142"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:389caa1884e1e937f034f56d74e8187cc6f5a8d61099c395d0eff8c3631e629c · sha256:6a3baa055b0e4599… · /containers/cna/references/0
{"tags":["related"],"url":"https://www.cve.org/CVERecord?id=CVE-2026-5080"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:389caa1884e1e937f034f56d74e8187cc6f5a8d61099c395d0eff8c3631e629c · sha256:6a3baa055b0e4599… · /containers/cna/references/1
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.