CVE-2025-40931
Apache::Session::Generate::MD5 versions through 1.94 for Perl …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27
- security.metacpan.org/docs/guides/random-data-for-security.html
- www.openwall.com/lists/oss-security/2026/03/05/3
- github.com/chorny/Apache-Session/issues/4
- rt.cpan.org/Ticket/Display.html?id=173631
- bugs.debian.org/cgi-bin/bugreport.cgi?bug=930659
- gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/1633
- metacpan.org/pod/Apache::Session::Generate::Random
- nvd.nist.gov/vuln/detail/CVE-2025-40931
- cve.org/CVERecord?id=CVE-2025-40931
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.