Skip to main content

Pagi CVE-2026-5087

| EUVDEUVD-2026-17531 HIGH
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (CWE-338)
2026-03-31 9b29abf9-4ab0-4765-b253-1875cd9b441e GHSA-r6mr-wmgj-f864
7.5
CVSS 3.1 · Vendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
View

Attack ChainAIDerived

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

  1. Access
    Attacker obtains session cookie
  2. Exploit
    Exploit weak randomness from Perl rand()
  3. Execution
    Predict valid session tokens
  4. Impact
    Hijack 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

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

PAGI::Middleware::Session::Store::Cookie 0 ≤0.001003

Affected Packages

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

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

Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) PRIMARY 7.5 HIGH
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

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

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

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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

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