CVE-2026-56016CWE-338CWE-340

CGI::Session::ID::md5 versions before 4.49 for Perl generate predictable session ids from low-entropy sources

Medium · published July 1, 2026

CVSS v3.1
5.9
EPSS
1%
Percentile
42.9
In the wild
Unconfirmed
What it is

CGI::Session::ID::md5 versions before 4.49 for Perl generate predictable session ids from low-entropy sources.

The generate_id method builds the session id from a MD5 digest of the process id, the epoch time, and the built-in rand() function. All three are predictable, low-entropy sources: the PID is drawn from a small range, the epoch time can be guessed or read from the HTTP Date header, and Perl's rand() is unsuitable for security purposes because it is predictable and reversible.

An attacker who predicts a session id can impersonate the corresponding session and bypass authentication.

The record
Technical detail
CVSS v3.1
5.9 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00513 · 42.9th percentile
Weaknesses
CWE-338 · Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG); CWE-340 · Generation of Predictable Numbers or Identifiers
Published
2026-07-01T06:46Z
EPSS history
Timeline
  • 01 JUL 06:46Z
    CGI::Session::ID::md5 versions before 4.49 for Perl generate predictable session ids from low-entropy sources
    cvelistv5