Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconEnumerate application path from public sources
-
DeliveryObserve epoch time from HTTP headers
-
ExploitGuess sequential worker PIDs
-
InstallCompute vulnerable session ID formula
-
C2Submit guessed session ID in cookie
-
ExecuteAuthenticate as victim user
-
ImpactAccess protected resources
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | The vulnerability is exploitable against any Dancer application using Dancer::Session::Abstract (versions ≤1.3522) as its session backend with default configuration. No special Dancer configuration settings are required to trigger the vulnerability - the weak algorithm is hardcoded in the library. However, practical exploitation is significantly facilitated if: (1) the application's filesystem path is known or in standard locations (reduces path entropy), (2) HTTP headers (Date, Server, or other timestamps) leak epoch time information or are close to current time, (3) the application runs multiple worker processes with sequential PIDs, or (4) the application's source code is publicly available. Exploitation does NOT require authentication or privileged access to the web server. The vulnerability affects all deployments of vulnerable Dancer versions; it is not limited to specific platforms or configurations. Limitations on exploitation include the attacker's need to iterate through a finite keyspace (though large in absolute terms, the practical search space is reduced by known or guessable path names, narrowed time windows, and common PID ranges in production environments). |
| Impact | The CVSS 5.9 score with AV:N/AC:H/PR:N/UI:N/S:U indicates network-accessible session ID prediction with high attack complexity, resulting in high availability impact but no direct confidentiality or integrity in the vector itself. However, this vector appears to understate actual risk: session ID prediction directly enables authentication bypass and account hijacking (confidentiality and integrity impact), suggesting CVSS scope should be changed (S:C) and CIA impacts reassessed. The high attack complexity (AC:H) reflects the need to guess multiple components, but with path information potentially leaked in HTTP headers (as noted in description), predictable PID sequences in web worker pools, and epoch time verifiable through HTTP headers or certificate timestamps, the practical complexity is lower than AC:H implies. EPSS data not provided, but the CWE-340 classification indicates this is a well-understood weakness. Real-world risk is elevated because: (1) session hijacking is automatable once an attacker narrows the search space, (2) Dancer is used in production applications, and (3) no user interaction or special privileges required. The 'Information Disclosure' tag suggests the primary concern is leakage of session tokens rather than server compromise, but session hijacking directly enables account takeover. Patch availability from vendor mitigates this to a manageable priority level. |
| Exploit ScenarioDerived | An attacker targeting a known Dancer application (e.g., via GitHub repository or public documentation revealing standard installation paths) observes HTTP response headers to extract the approximate creation time and server process identifiers. The attacker then iterates through possible session IDs by computing the sum of character codepoints for common Dancer installation paths (/opt/myapp, /var/www/app, etc.), combined with sequential PIDs (e.g., 1001-1050 for a web worker pool) and recent Unix timestamps, seeding Perl's rand() with common values and generating candidate session IDs. The attacker then submits these guessed session IDs in cookies to the application, and with high probability of success due to the limited entropy, gains access to an active user's session without knowing credentials. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 30, 2026
Dancer::Session::Abstract through version 1.3522 generates cryptographically weak session identifiers by combining predictable inputs (file path, process ID, epoch time) with an insufficiently-seeded Perl rand() function, allowing remote attackers to predict valid session IDs and hijack user sessions without authentication. The vulnerability affects Perl-based web applications using Dancer framework's default session handling; active exploitation is not confirmed but the attack requires only guessing a session ID, making it practically exploitable.
RemediationAI
Upgrade Dancer::Session::Abstract to a patched version released after 1.3522; vendor has confirmed patch availability. The specific patch is available at https://security.metacpan.org/patches/D/Dancer/1.3522/CVE-2026-5080-r1.patch and should be reviewed to confirm session ID generation is replaced with cryptographically secure randomness (e.g., using Crypt::Random or /dev/urandom). For immediate temporary mitigation while patching, implement session token validation by storing server-side session state with strong authentication checks and short expiration windows (5-15 minutes) to reduce the window for successful guessing; this carries the trade-off of increased server memory/storage and reduced session persistence across worker restarts. Alternatively, implement cryptographic session ID generation at the application level using Perl modules like Bytes::Random::Secure prior to patching the underlying library. Invalidate all existing sessions immediately after patching and force re-authentication to revoke any predicted session IDs already generated with the vulnerable code.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Dancer::Session::Abstract is a session management module for the Dancer web framework (Perl). The vulnerability stems from CWE-340 (Generation of Predictable Numbers or Identifiers) in the session ID generation algorithm. The code combines character codepoint sums of the application's filesystem path, the process identifier (PID), Unix epoch timestamp, and three concatenated outputs from Perl's built-in rand() function seeded with only 32 bits of entropy. Perl's rand() is documented as unsuitable for cryptographic purposes and uses a predictable seed. The CPE indicates all versions from 0 through 1.3522 are affected, with the Dancer framework commonly installed in standard locations (/opt/dancer, /var/www/dancer, etc.), making the path component partially guessable.
Know when Dancer gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (CPANSec) · only source for this CVE.
CVSS VectorVendor: CPANSec
Lifecycle Timeline
3DescriptionCVE.org
Dancer::Session::Abstract versions through 1.3522 for Perl generates session ids insecurely.
The session id is generated from summing the character codepoints of the absolute pathname with the process id, the epoch time and calls to the built-in rand() function to return a number between 0 and 999-billion, and concatenating that result three times.
The path name might be known or guessed by an attacker, especially for applications known to be written using Dancer with standard installation locations.
The epoch time can be guessed by an attacker, and may be leaked in the HTTP header.
The process id comes from a small set of numbers, and workers may have sequential process ids.
The built-in rand() function is seeded with 32-bits and is considered unsuitable for security applications.
Predictable session ids could allow an attacker to gain access to systems.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Google OAuth2 login can be fully impersonated in the Perl module Dancer::Plugin::Auth::Google (all versions through 0.07
Dancer::Plugin::SimpleCRUD 1.14 and earlier is affected by: Incorrect Access Control. Rated medium severity (CVSS 6.5),
CRLF injection vulnerability in the cookie method (lib/Dancer/Cookie.pm) in Dancer before 1.3114 allows remote attackers
EUVD-2026-26369
NVD
CVE.org
EPSS
Vulnrichment
GitHub PoC
Exploit-DB