CVE-2026-56016: CWE-340 Generation of Predictable Numbers or Identifiers in MARKSTOS CGI::Session::ID::md5
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.
AI Analysis
Technical Summary
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.
CVE-2026-56016: CWE-340 Generation of Predictable Numbers or Identifiers in MARKSTOS 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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.