CVE-2025-40931
CVE-2025-40931 — Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id
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. Note that the libapache-session-perl package in some Debian-based Linux distributions may be patched to use Crypt::URandom.
Published Updated Sources: cvelistV5, CPANSec
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
9.1
CRITICAL
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.1 | CVSS 3.1 | CRITICAL | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-340
- CWE-338
References
10 on the record
- metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27
reference
- security.metacpan.org/docs/guides/random-data-for-security.html
technical-description
- github.com/chorny/Apache-Session/issues/4
issue-tracking
- rt.cpan.org/Ticket/Display.html?id=173631
issue-tracking
- www.openwall.com/lists/oss-security/2019/06/15/1
mailing-list
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=930659
issue-tracking
- salsa.debian.org/perl-team/modules/packages/libapache-session-perl/-/commit/bdabd71c2f91b18526e31a9dc52b4c17b3d246b7#898a4b8b00022df1b8689910b67707f3e738d180
patch
- gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/1633
issue-tracking
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-61500 Rejetto HFS < 3.2.1 Session Forgery via Predictable Signing KeyCVSS 9.8 · CISA KEV
- CVE-2026-118527 Ivanti Connect Secure Generation of Predictable Numbers or Identifiers VulnerabilityCVSS 4.3 · CISA KEV
- CVE-2025-15660 A use of cryptographically weak pseudo-random number generator (PRNG) in the redis of Synology MailPlus Server before 4.0.0-21657 and…CVSS 9.6
- CVE-2026-53953 GetSimple CMS: Predictable Password Reset Password Allows Administrator Account TakeoverCVSS 9.1
- CVE-2026-11374 Account Takeover via Predictable SSO Ticket GenerationCVSS 9.0
Elsewhere on this site
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.