CVE-2025-40931

9.1 CRITICAL
Published: March 05, 2026 Modified: March 09, 2026
View on NVD

Description

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://github.com/chorny/Apache-Session/issues/4
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Issue Tracking
https://rt.cpan.org/Ticket/Display.html?id=173631
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Third Party Advisory
https://security.metacpan.org/docs/guides/random-data-for-security.html
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2026/03/05/3
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory

5 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.1 / 10.0
EPSS (Exploit Probability)
0.0%
13th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

chorny