PAGI Middleware Session Store Cookie Insecure Random Byte Generation Vulnerability

Vulnerability

A vulnerability exists in PAGI::Middleware::Session::Store::Cookie versions through 0.001003 for Perl, where random bytes are generated insecurely for use in encryption. The module attempts to read bytes from /dev/urandom for cryptographic purposes. However, on systems without this device, such as Windows, it falls back to using the built-in rand function, which is not cryptographically secure. This insecure random byte generation is used to create an initialization vector (IV) for encrypting session data stored in cookies. A predictable IV could potentially allow attackers to decrypt or tamper with the session data.

Impact

The vulnerability leads to the use of predictable initialization vectors in encryption, which could make it easier for attackers to decrypt and manipulate session data stored in cookies.

Remediation

Users can upgrade to PAGI::Middleware::Session::Store::Cookie version 0.001004 or later, which addresses the vulnerability by using Crypt::PRNG from CryptX for secure random byte generation.

Added: Mar 31, 2026, 4:57 PM
Updated: Mar 31, 2026, 4:57 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
5.5
remediation
0.0
relevance
5.0
threat
3.2
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.