Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 71%

CVE-2026-56016: CWE-340 Generation of Predictable Numbers or Identifiers in MARKSTOS CGI::Session::ID::md5

0
Medium
VulnerabilityCVE-2026-56016cvecve-2026-56016cwe-340cwe-338
Published: 07/01/2026 (07/01/2026, 06:46:23 UTC)
Source: CVE Database V5
Vendor/Project: MARKSTOS
Product: CGI::Session::ID::md5

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.

CVSS v3.1

Score 5.9medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected software

GitHub Actionsmore threats →cve
CGI-Session
pkg:github/CGI-Session
Affected versions
<4.49

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/08/2026, 12:25:50 UTC

Technical Analysis

The vulnerability in CGI::Session::ID::md5 prior to version 4.49 arises from the generate_id method using an MD5 digest of predictable inputs: process ID (PID), epoch time, and Perl's built-in rand() function. Each of these sources has low entropy and is predictable or reversible, making the resulting session IDs guessable. An attacker able to predict a session ID can impersonate the associated session, bypassing authentication controls. This issue is categorized under CWE-340 (Generation of Predictable Numbers or Identifiers) and CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator). No official patch or remediation level is indicated in the available data.

Potential Impact

Successful exploitation allows an attacker to predict session IDs, leading to session hijacking and authentication bypass. This compromises confidentiality by allowing unauthorized access to user sessions. There is no indication of impact on integrity or availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid using CGI::Session::ID::md5 versions before 4.49 or implement additional session ID generation mechanisms that use cryptographically secure random sources. Avoid relying on Perl's built-in rand() for security-sensitive identifiers.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
CPANSec
Date Reserved
2026-06-18T11:27:09.117Z
Cvss Version
null
State
PUBLISHED
Remediation Level
null

Threat ID: 6a44ca9927e9c797192fad00

Added to database: 07/01/2026, 08:06:49 UTC

Last enriched: 07/08/2026, 12:25:50 UTC

Last updated: 08/11/2026, 15:36:46 UTC

Views: 98

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses