Bug 2502710 (CVE-2026-13577) - CVE-2026-13577 Dancer2: Dancer2: Predictable session IDs allow system access
Summary: CVE-2026-13577 Dancer2: Dancer2: Predictable session IDs allow system access
Keywords:
Status: NEW
Alias: CVE-2026-13577
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2509105
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-20 09:01 UTC by OSIDB Bzimport
Modified: 2026-07-30 06:29 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-20 09:01:17 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.