Apache
CVE-2025-40931
CRITICAL
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic PRNG selection
|
| Impact | CVSS 9.1. |
| Exploit ScenarioDerived | Predict session IDs. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 12, 2026
Insecure session ID generation in Apache::Session::Generate::MD5 through 1.94 for Perl.
Earlier versions of this analysis (1)
Weak MD5 session IDs in Apache::Session.
RemediationAI
Update.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-338.
Know when Chorny gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from NVD.
CVSS VectorNVD
DescriptionCVE.org
Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id.
Apache::Session::Generate::MD5 generates session ids insecurely. The default session id generator returns a MD5 hash seeded with the built-in rand() function, the epoch time, and the PID. The PID will come from a small set of numbers, and the epoch time may be guessed, if it is not leaked from the HTTP Date header. The built-in rand function is unsuitable for cryptographic usage. Predicable session ids could allow an attacker to gain access to systems.
Executive ViewAI
A critical vulnerability (CVSS 9.1) affecting Apache has been disclosed with no patch currently available, creating immediate risk for any organization running vulnerable versions. Attackers can exploit this flaw to gain unauthorized system access, potentially compromising sensitive data, applications, and infrastructure across your environment.
Deploy WAF rules to detect/block exploitation attempts; implement strict network segmentation limiting Apache access to trusted sources only; disable non-essential Apache modules and features; apply input validation and rate limiting; increase monitoring and alerting for suspicious connection patterns; consider running Apache in containerized/sandboxed environments; restrict administrative access; evaluate temporary service restrictions or failover to unaffected systems until patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Related Vulnerabilities in Perl Session ID Generation Insecurity
View all 2Predictable session ID generation in Apache::Session::Generate::ModUniqueId 1.54-1.94 allows remote unauthenticated atta
Apache::Session versions through 1.94 for Perl re-creates deleted sessions. Rated critical severity (CVSS 9.1), this vul
NVD
CVE.org
EPSS
GitHub
Exploit-DB