{"id":"CVE-2026-13577","published":"2026-07-20T07:11:10Z","modified":"2026-09-20T10:17:51Z","title":"Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable","vendor":null,"product":null,"tier":"tail","description":{"text":"Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable.\n\nDancer2::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.\n\nThe 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).\n\nThese are all low-entropy and easily guessed sources.\n\nThe built-in rand() function is seeded with 32-bits and considered unsuitable for security applications.\n\nPredictable session ids could allow an attacker to gain access to systems.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0057,"percentile":0.48074,"provenance":"source"},"cwes":[{"id":"CWE-340","name":"Generation of Predictable Numbers or Identifiers"},{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes","tags":["release-notes"]},{"url":"https://github.com/PerlDancer/Dancer2/issues/1807","tags":["issue-tracking"]},{"url":"https://github.com/PerlDancer/Dancer2/pull/1804","tags":["issue-tracking"]},{"url":"https://github.com/PerlDancer/Dancer2/blob/v2.1.0/lib/Dancer2/Core/Role/SessionFactory.pm#L142","tags":[]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-5080","tags":["related"]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":9.61},{"name":"CVSS severity","points":5.74}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 2.2.0"]}],"solutions":{"items":["Upgrade to Davcer2 2.2.0 or later."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["For deployments that cannot upgrade, ensure Crypt::URandom and Math::Random::ISAAC::XS modules are installed in the application PERL5LIB path."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-115","name":"Authentication Bypass"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-20T13:05:03.182340Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-45896","exploited":false,"provenance":"source"}}