Bug 2509105 - CVE-2026-13577 perl-Dancer2: Dancer2: Predictable session IDs allow system access [fedora-all]
Summary: CVE-2026-13577 perl-Dancer2: Dancer2: Predictable session IDs allow system ac...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Dancer2
Version: 45
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["d1449e56-3b9c-42f6-aa00-c...
Depends On:
Blocks: CVE-2026-13577
TreeView+ depends on / blocked
 
Reported: 2026-07-30 06:28 UTC by Tomas Hoger
Modified: 2026-08-17 15:41 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Tomas Hoger 2026-07-30 06:28:32 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Aoife Moloney 2026-08-17 15:41:00 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 45 development cycle.
Changing version to 45.


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