Skip to main content

Dancer::Session::Abstract EUVDEUVD-2026-26369

| CVE-2026-5080 MEDIUM
Generation of Predictable Numbers or Identifiers (CWE-340)
2026-04-30 CPANSec
5.9
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Enumerate application path from public sources
  2. Delivery
    Observe epoch time from HTTP headers
  3. Exploit
    Guess sequential worker PIDs
  4. Install
    Compute vulnerable session ID formula
  5. C2
    Submit guessed session ID in cookie
  6. Execute
    Authenticate as victim user
  7. Impact
    Access 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Dancer::Session::Abstract 0 ≤1.3522

Affected Packages

euvd dancer_session_abstract no fix

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

Vendor (CPANSec) PRIMARY 5.9 MEDIUM
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

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
Apr 30, 2026 - 14:22 NVD
5.9 (MEDIUM)
Patch released
Apr 30, 2026 - 12:15 nvd
Patch available
CVE Published
Apr 30, 2026 - 11:49 nvd
MEDIUM 5.9

DescriptionCVE.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

EPSS Score
0.0%
Top 89% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy