Back to overview

CVE-2026-56016

Description
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.

Metadata

CVE ID
CVE-2026-56016
State
PUBLISHED
Assigner
CPANSec
Reserved
2026-06-18 11:27 UTC
Published
2026-07-01 06:46 UTC
Last updated
2026-07-01 06:46 UTC
Primary CWE
CWE-340
CWE-340 Generation of Predictable Numbers or Identifiers
Vendor / Product
MARKSTOS / CGI::Session::ID::md5
Sources
cve.org  ·  NVD

Severity & Metrics

No CVSS data available.

Affected products (1)
VendorProductPlatformVersions
MARKSTOS CGI::Session::ID::md5 0 < 4.49
Weakness (CWE)
CWESourceDescription
CWE-338 cna CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator
CWE-340 cna CWE-340 Generation of Predictable Numbers or Identifiers
Back to overview