{"id":"CVE-2026-13577","aliases":["CVE-2026-13577"],"related":[],"kind":"vulnerability","state":"published","title":"Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Las versiones de Dancer2 hasta la 2.1.0 para Perl generan identificadores de sesión inseguros cuando los módulos CSPRNG requeridos no están disponibles.\n\nDancer2::Core::Role::SessionFactory::generate_id recurre silenciosamente a un identificador de sesión derivado de la función ’rand’ incorporada a menos que Math::Random::ISAAC::XS y Crypt::URandom estén ambos disponibles.\n\nEl identificador de sesión de respaldo se genera a partir de un hash SHA-1 de una llamada a la función ’rand’ incorporada, la ruta absoluta del módulo Dancer2::Core::Role::SessionFactory, un contador interno, el ID del proceso, la dirección de memoria de la instancia del módulo y una cadena de caracteres mezclada (utilizando la función List::Util::shuffle, que también usa la función ’rand’ incorporada).\n\nTodas estas son fuentes de baja entropía y fácilmente predecibles.\n\nLa función ’rand()’ incorporada se inicializa con 32 bits y se considera inadecuada para aplicaciones de seguridad.\n\nLos identificadores de sesión predecibles podrían permitir a un atacante obtener acceso a los sistemas.","source":"nvd"}],"published":"2026-07-20T07:11:10.403Z","modified":"2026-10-24T20:10:00.137Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"}],"cwes":["CWE-338","CWE-340"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"2.2.0","status":"affected"}],"package":"Dancer2","repo":"https://github.com/PerlDancer/Dancer2","source":"cvelist"}],"references":[{"url":"https://metacpan.org/release/CROMEDOME/Dancer2-2.2.0/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/PerlDancer/Dancer2/issues/1807","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/PerlDancer/Dancer2/pull/1804","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://github.com/PerlDancer/Dancer2/blob/v2.1.0/lib/Dancer2/Core/Role/SessionFactory.pm#L142","tags":[],"sources":["cvelist","nvd"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-5080","tags":["related"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-20T13:05:03.182Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-13577","url":"https://www.cve.org/CVERecord?id=CVE-2026-13577","licence":"CVE Terms of Use","modified":"2026-09-20T10:17:51.905Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-13577","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13577","licence":"Public domain","modified":"2026-10-24T20:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:29.193Z","epss":{"score":0.0035,"percentile":0.30681,"date":"2026-12-01T12:00:22.000Z"}}