Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.1
Apache::Session::Generate::MD5 creates predictable session IDs
CVE-2025-40931
Summary
Apache::Session::Generate::MD5 for Perl generates session IDs that can be guessed by an attacker, potentially allowing unauthorized access to systems. This affects versions 1.94 and earlier. To fix, update to a newer version or use a more secure session ID generator.
Original title
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 ...
Original 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.
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.
nvd CVSS3.1
9.1
Vulnerability type
CWE-338
CWE-340
- https://github.com/chorny/Apache-Session/issues/4
- https://metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5....
- https://rt.cpan.org/Ticket/Display.html?id=173631
- https://security.metacpan.org/docs/guides/random-data-for-security.html
- http://www.openwall.com/lists/oss-security/2026/03/05/3
Published: 5 Mar 2026 · Updated: 13 Mar 2026 · First seen: 6 Mar 2026