
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-40932 is a weak session ID generation vulnerability in Apache::SessionX versions through 2.01 for Perl. The default session ID generator (Apache::SessionX::Generate::MD5) produces MD5 hashes seeded with Perl's built-in rand() function, the epoch time, and the process ID (PID) — all of which are predictable or guessable values. This flaw allows a network attacker to enumerate valid session IDs and potentially gain unauthorized access to user sessions. The CVE was received from CPANSec on February 26, 2026, and carries a CVSS v3.1 base score of 8.2 (High) as assessed by CISA-ADP (Red Hat CVE, MetaCPAN Source).
The root cause is classified under CWE-338 (Use of Cryptographically Weak Pseudo-Random Number Generator) and CWE-340 (Generation of Predictable Numbers or Identifiers). The Apache::SessionX::Generate::MD5 module seeds Perl's rand() — a non-cryptographic PRNG — with the epoch time and PID to produce an MD5 hash used as the session ID. The PID is drawn from a small, bounded set of values, and the epoch time can often be inferred or leaked via the HTTP Date response header, making the seed space feasible to brute-force. An unauthenticated remote attacker can exploit this over the network with low complexity and no user interaction required (MetaCPAN Source, Red Hat CVE).
Successful exploitation allows an attacker to predict or enumerate valid session IDs without any credentials, enabling session hijacking and user impersonation. An attacker who obtains a valid session ID can access any resources, data, or functionality protected by that session, potentially exposing sensitive user information and application data. The vulnerability affects all Perl-based applications using Apache::SessionX up to version 2.01 for session management, with high confidentiality impact and low integrity impact (Red Hat CVE, MetaCPAN Source).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation at this time. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.018% (0.000180), indicating a very low current probability of exploitation in the wild. The vulnerability is detectable via Nessus plugin 300157 (Tenable Nessus, Red Hat CVE).
Date header, which may leak the server's current epoch time.Date header. Enumerate likely PID values (typically 1–65535 on Linux, often clustered in a smaller range for web server processes).rand() behavior and the estimated epoch time and PID range, generate candidate MD5 hashes that replicate the session ID generation logic in Apache::SessionX::Generate::MD5.No official patch for Apache::SessionX beyond version 2.01 has been confirmed in the available data. Organizations should evaluate migrating to alternative Perl session management modules that use cryptographically secure random number generators (e.g., Apache::Session with a secure ID generator, or modules leveraging /dev/urandom). As interim measures, implement additional session validation controls such as IP address binding, user-agent verification, short session timeouts, and rate limiting on session-authenticated endpoints. Review all Perl applications using Apache::SessionX ≤ 2.01 and prioritize replacement of the session management layer (Red Hat CVE, MetaCPAN Source).
Red Hat has published a CVE advisory page tracking this vulnerability. The CPAN Security Group (CPANSec) was the original reporter and assigned the CVE. A Mastodon post from @thehackerwire noted the disclosure. Coverage has been limited to automated vulnerability tracking services (Vulners, CVEFeed, VulDB) and security advisory aggregators, with no significant broader media or researcher commentary identified at this time (Red Hat CVE, MetaCPAN CPANSA-DB).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."