> CVE-2026-13577

« BACK_TO_HOME
PUBLISHED
2026-07-20 08:16
MODIFIED
2026-07-20 08:16
EPSS (Prob. Exploit)
0.57%
Top 53.5%
DATA SOURCES:
NVD 🔗 2026-07-20 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25 OSV 🔗 2026-07-27

> DESCRIPTION

Dancer2 versions through 2.1.0 for Perl generate insecure session ids when CSPRNG modules are unavailable. Dancer2::Core::Role::SessionFactory::generate_id silently falls back to a built-in rand-derived session id when both Math::Random::ISAAC::XS and Crypt::URandom are unavailable. 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> WEAKNESSES

CWE-338 CWE-340

> CWE DETAILED DESCRIPTIONS

CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) - The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong. | CWE-340: Generation of Predictable Numbers or Identifiers - The product uses a scheme that generates numbers or identifiers that are more predictable than required.

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Dancer2 versions through 2.1.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable

AFFECTED PACKAGES:
Unknown / Unknown
99 versions affected

> HISTORIQUE DES MODIFICATIONS

Première apparition
20/07/2026 08:16
Source: NVD
📊 ENRICHISSEMENT 01/08/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) - The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptogra...
Total des modifications: 1 Dernière mise à jour: 3 months ago

> REFERENCES

https://github.com/PerlDancer/Dancer2/blob/v2.1.0/lib/Dancer2/Core/Role/SessionF...
https://www.cve.org/CVERecord?id=CVE-2026-5080
« BACK_TO_HOME