cve.bz

CVE-2026-56016 markstos cgi session id md5

5.9 mediumEPSS 0.5%

Medium (5.9) in markstos cgi session id md5. EPSS 0.5% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 37th percentile. Scored 2026-11-25. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
CWE-340 Generation of Predictable Numbers or Identifiers
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-56016 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-56016?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-56016?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-56016 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MARKSTOS CGI::Session::ID::md5before 4.49

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13libcgi-session-perlno fix listedDEBIAN-CVE-2026-56016
Debian14libcgi-session-perl4.49-1DEBIAN-CVE-2026-56016
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morelibcgi-session-perlno fix listedUBUNTU-CVE-2026-56016
openSUSETumbleweedperl-CGI-Session4.490.0-1.1openSUSE-SU-2026:11168-1
Alpinev3.24perl-cgi-session4.49-r0ALPINE-CVE-2026-56016

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in perl-CGI-Session allows a remote attacker to bypass authentication by predicting session identifiers. The `CGI::Session::ID::md5` module generates session IDs using low-entropy sources, including process ID, epoch time, and a predictable random number generator. This predictability enables an attacker to impersonate a user's session, potentially leading to unauthorized access in web applications utilizing this module for session management.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6perl-CGI-SessionAffected
Red Hat Enterprise Linux 7perl-CGI-SessionAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-56016.

References

Check your stackJSON