Vulnerability · Published Jul 1, 2026 · Assigned by CPANSec

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

Medium 5.9

In plain English

A medium-severity security flaw in CGI::Session::ID::md5 from MARKSTOS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.9Medium
Exploit odds (30 days)0.5%top 56.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.24perl-cgi-session4.49-r0ALPINE-CVE-2026-56016
Debian:12libcgi-session-perlno fix listedDEBIAN-CVE-2026-56016
Debian:13libcgi-session-perlno fix listedDEBIAN-CVE-2026-56016
Debian:14libcgi-session-perl4.49-1DEBIAN-CVE-2026-56016
Ubuntu:22.04:LTSlibcgi-session-perlno fix listedUBUNTU-CVE-2026-56016
Ubuntu:24.04:LTSlibcgi-session-perlno fix listedUBUNTU-CVE-2026-56016
Ubuntu:25.10libcgi-session-perlno fix listedUBUNTU-CVE-2026-56016
Ubuntu:26.04:LTSlibcgi-session-perlno fix listedUBUNTU-CVE-2026-56016
Ubuntu:26.10libcgi-session-perlno fix listedUBUNTU-CVE-2026-56016

Affected products (as reported)

VendorProductVersions
MARKSTOS CGI::Session::ID::md5 0 – before 4.49

Weakness: CWE-340, CWE-338 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

References