Skip to main content

Mojolicious::Sessions::Storable CVE-2026-9692

| EUVDEUVD-2026-37926 MEDIUM
Generation of Predictable Numbers or Identifiers (CWE-340)
2026-06-18 CPANSec GHSA-3m67-fq74-f4qg
Medium
Disputed · 5.3 Vendor: CPANSec
View

Attack ChainAIDerived

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

  1. Access
    Profile target request timing and PID range
  2. Delivery
    Collect sample session IDs from low-privilege account
  3. Exploit
    Compute candidate SHA-1 values offline using epoch/PID/heap permutations
  4. Execution
    Submit candidate tokens to session validation endpoint
  5. Persist
    Match valid token to active privileged session
  6. Impact
    Access authenticated application as victim user

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Exploitation requires that the target Mojolicious application uses Mojolicious::Sessions::Storable as its session backend and has not overridden the default session ID generator - the insecure behavior is in the default, so any application relying on out-of-the-box configuration is affected. The attacker must be able to send HTTP requests to the application to test candidate session IDs (i.e., network reachability). Exploitation is limited by the attacker's ability to estimate epoch time (within a plausible window), PID range, and heap address entropy for the target process; requests processed at low-traffic times with predictable server startup sequences narrow the search space most severely. Authentication is not required by the attacker (CVSS PR:N). No special platform constraint is documented, but ASLR on modern Linux systems marginally increases heap address entropy, slightly hardening exploitation compared to older or ASLR-disabled environments.

Impact

The vendor CVSS assigns AV:N/AC:L, implying trivial network exploitation, but this overstates ease of attack: predicting SHA-1 output from partially observable inputs (epoch, PID, heap address) requires offline computation and timing correlation, making AC:H more accurate. The EPSS score of 0.27% at the 19th percentile confirms low observed exploitation interest, consistent with SSVC's 'exploitation: none' designation. CISA KEV absence and no known public PoC further reduce urgency. The real-world risk is constrained to applications that (a) rely on Mojolicious::Sessions::Storable as their session backend, (b) use the default (insecure) session ID generator without overriding it, and (c) handle sensitive authenticated sessions. Technical impact is partial per SSVC - session hijacking is realistic but does not automatically escalate to full system compromise. The automatable SSVC flag is notable: once an attacker profiles a target's timing and PID range, the attack can be scripted. For applications handling sensitive personal data or financial sessions this warrants prompt patching despite the low EPSS.

Exploit ScenarioDerived

An attacker targeting a Mojolicious application using the default session store samples several valid session IDs by logging in with a test account and recording the SHA-1 outputs alongside precise request timestamps. Using the observed epoch time window (within seconds of the request), the known PID range of typical web server processes (1-65535), and a brute-force loop over plausible heap address offsets, the attacker generates candidate SHA-1 values offline and tests them against the target application's session validation endpoint to hijack an active authenticated user session. No public proof-of-concept code has been identified at time of analysis, but the attack is mechanically straightforward for anyone familiar with Perl internals.

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

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

Alert me

AnalysisAIv1 – Jul 22, 2026

Predictable session ID generation in Mojolicious::Sessions::Storable through version 0.05 for Perl exposes applications to session hijacking. The default session ID generator computes a SHA-1 hash seeded exclusively with low-entropy, attacker-observable sources - Perl's built-in rand function, Unix epoch time, a heap address, and the process ID - none of which meet cryptographic unpredictability requirements for session tokens. No public exploit or active exploitation has been identified (EPSS 0.27%, 19th percentile; not in CISA KEV), but the flaw is automatable per CISA SSVC, meaning a scripted attacker can systematically enumerate candidate session IDs without complex per-target tuning.

RemediationAI

A vendor-supplied patch is available from CPANSec at https://security.metacpan.org/patches/M/Mojolicious-Plugin-SessionStore/0.05/CVE-2026-9692-r1.patch; this is a patch file against version 0.05, and a fully released post-0.05 package version on CPAN has not been independently confirmed from the available data - check metacpan.org/dist/Mojolicious-Plugin-SessionStore for the latest published release before applying the raw patch. As an immediate compensating control, override the default session ID generator with a cryptographically secure alternative: replace the SHA-1/rand-based generator with one sourced from Perl's Crypt::URandom or equivalent OS-level CSPRNG (/dev/urandom). Disabling session persistence entirely is an extreme but effective fallback if the module cannot be patched and an alternative session backend (e.g., Mojolicious::Plugin::Session with a secure generator) can be substituted. Invalidating all current sessions after patching is advisable, as previously issued IDs were generated insecurely. The CPANSec guidance at https://security.metacpan.org/docs/guides/random-data-for-security.html provides Perl-specific remediation patterns.

Affected VersionsENISA

Mojolicious::Sessions::Storable 0 ≤0.05

Affected Packages

euvd mojolicious_sessions_storable 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

The affected component is Mojolicious::Sessions::Storable (CPE: cpe:2.3:a:hayajo:mojolicious::sessions::storable:*:*:*:*:*:*:*:*), a CPAN plugin for the Mojolicious Perl web framework that serializes and stores session data. The root cause is CWE-340 (Generation of Predictable Numbers or Identifiers): SHA-1 is used as a hash function, not a CSPRNG, and its output is only as random as its inputs. Perl's rand() is a deterministic PRNG seeded from the system clock; epoch time and PID are both low-cardinality values guessable within narrow windows; and heap addresses, while partially randomized by ASLR, provide far less entropy than a true random source. An attacker who can observe or approximate request timing can dramatically reduce the search space for valid session tokens. The CPANSec advisory cross-references their own guidance on secure random data for Perl at security.metacpan.org, and a companion CVE (CVE-2025-40923) appears related, suggesting a broader pattern in this library family.

Know when Mojolicious 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

Sources disagree (Medium–Critical)
Vendor (CPANSec) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 4.8 MEDIUM

Predicting SHA-1 from epoch, PID, and heap address requires offline computation and timing correlation, raising AC to H; session forgery enables both read and limited write of session state.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE CRITICAL

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: CPANSec

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

DescriptionCVE.org

Mojolicious::Sessions::Storable versions through 0.05 for Perl generate session ids insecurely.

The default session id generator returns a SHA-1 hash seeded with the built-in rand function, the epoch time, the heap address of an anonymous hash, and the PID.

These are predictable or low-entropy sources that are unsuitable for security purposes.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche CPAN plugin for Perl web framework
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

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.3%
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
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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.

Vendor StatusVendor

SUSE

Severity: Critical

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