Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker obtains session cookie
-
ExploitExploit weak randomness from Perl rand()
-
ExecutionPredict valid session tokens
-
ImpactHijack authenticated user sessions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
|
| Exploitation Conditions | Requires PAGI::Middleware::Session::Store::Cookie versions ≤0.001003 running on systems without /dev/urandom (Windows, non-Unix platforms). Remote unauthenticated attacker can predict session tokens generated via insecure rand() function. No victim interaction needed. |
| Impact | This vulnerability presents moderate to high real-world risk despite the absence of a CVSS score. The attack vector is network-based (attackers can observe cookies in transit or at rest), attack complexity is low (predictability of rand() is well-documented), and no privileges are required to mount an attack. EPSS and KEV data are unavailable, but the technical impact is severe: session data confidentiality and integrity are directly threatened. The affected population is significant on Windows platforms and other systems without /dev/urandom. However, exploitation requires the attacker to observe encrypted cookies and possess cryptanalytic capability or access to brute-force computing resources. Organizations using this module on Windows or non-standard systems should prioritize remediation; those on Unix/Linux systems with /dev/urandom are less exposed but not entirely safe (the code path exists and could be triggered by misconfiguration). The misleading warning recommending Crypt::URandom installation increases risk by creating false confidence in a non-existent fix. |
| Exploit ScenarioDerived | An attacker on a Windows system or non-POSIX environment running a web application using PAGI::Middleware::Session::Store::Cookie 0.001003 observes encrypted session cookies transmitted over HTTPS or stored in browser cache. By predicting the IV using Perl's rand() function (seeded with process ID and time, which may be obtained through side channels or inference), the attacker constructs a decryption oracle or performs off-line decryption of captured cookies to recover session identifiers, user tokens, or tampered session state. If the attacker can also modify cookies (via XSS or network interception on non-HTTPS connections), predictable IVs enable forging valid-looking encrypted payloads. No public exploit code has been identified, but the vulnerability is straightforward to weaponize given basic cryptanalytic knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 31, 2026
PAGI::Middleware::Session::Store::Cookie through version 0.001003 generates cryptographically weak initialization vectors (IVs) for session cookie encryption by falling back to Perl's built-in rand() function when /dev/urandom is unavailable, particularly affecting Windows systems. This predictable IV generation enables attackers to decrypt and tamper with session data stored in cookies, compromising session confidentiality and integrity. No active exploitation has been confirmed, but the vulnerability affects all deployments on systems lacking /dev/urandom access.
RemediationAI
Upgrade PAGI::Middleware::Session::Store::Cookie to version 0.001004 or later, which addresses the weak random number generation. To apply the patch, execute 'cpan PAGI::Middleware::Session::Store::Cookie' or use your Perl package manager (e.g., 'apt install libpagi-middleware-session-store-cookie-perl' on Debian-based systems). Verify the installed version with 'perl -MPAGI::Middleware::Session::Store::Cookie -e 'print $PAGI::Middleware::Session::Store::Cookie::VERSION' and confirm it is 0.001004 or higher. No workaround is available for older versions; upgrading is mandatory. See CPAN release notes at https://metacpan.org/release/JJNAPIORK/PAGI-Middleware-Session-Store-Cookie-0.001004/changes for patch details.
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
PAGI::Middleware::Session::Store::Cookie is a Perl module that manages HTTP session storage via encrypted cookies. The module attempts to source random bytes from /dev/urandom for generating IVs used in cookie encryption (AES or similar block cipher modes). When /dev/urandom fails-a condition that occurs by design on Windows and some other non-Unix systems-the module falls back to Perl's built-in rand() function, which is seeded by the process ID and current time. This produces deterministic, predictable output unsuitable for cryptographic purposes (CWE-338: Use of Insufficiently Random Values). The IV is critical because it ensures identical plaintext produces different ciphertext across sessions; a predictable IV allows an attacker to recognize encrypted patterns and potentially recover session data through cryptanalysis or brute-force decryption.
Know when Pagi 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:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) · only source for this CVE.
CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
DescriptionCVE.org
PAGI::Middleware::Session::Store::Cookie versions through 0.001003 for Perl generates random bytes insecurely.
PAGI::Middleware::Session::Store::Cookie attempts to read bytes from the /dev/urandom device directly. If that fails (for example, on systems without the device, such as Windows), then it will emit a warning that recommends the user install Crypt::URandom, and then return a string of random bytes generated by the built-in rand function, which is unsuitable for cryptographic applications.
This modules does not use the Crypt::URandom module, and installing it will not fix the problem.
The random bytes are used for generating an initialisation vector (IV) to encrypt the cookie.
A predictable IV may make it easier for malicious users to decrypt and tamper with the session data that is stored in the cookie.
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.
EUVD-2026-17531
GHSA-r6mr-wmgj-f864
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB