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.
Metrics
Affected Vendors & Products
No advisories yet.
Solution
Consider alternate solutions like https://metacpan.org/pod/Apache::Session::Generate::Random
Workaround
No workaround given by the vendor.
Mon, 09 Mar 2026 14:45:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Chorny apache\
|
|
| CPEs | cpe:2.3:a:chorny:apache\:\:session\:\:generate\:\:md5:*:*:*:*:*:perl:*:* | |
| Vendors & Products |
Chorny apache\
|
Fri, 06 Mar 2026 15:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Chorny
Chorny apache::session::generate::md5 |
|
| Vendors & Products |
Chorny
Chorny apache::session::generate::md5 |
Fri, 06 Mar 2026 04:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
Thu, 05 Mar 2026 17:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
cvssV3_1
|
Thu, 05 Mar 2026 12:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| References |
|
Thu, 05 Mar 2026 02:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id | |
| Weaknesses | CWE-338 CWE-340 |
|
| References |
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: CPANSec
Published:
Updated: 2026-03-11T14:59:01.628Z
Reserved: 2025-04-16T09:05:34.363Z
Link: CVE-2025-40931
Updated: 2026-03-05T11:12:52.118Z
Status : Analyzed
Published: 2026-03-05T02:16:39.960
Modified: 2026-03-09T14:41:36.327
Link: CVE-2025-40931
No data.
OpenCVE Enrichment
Updated: 2026-03-06T15:17:59Z