{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-40931","published":"2026-03-05T02:16:39.960000Z","last_modified":"2026-06-17T09:22:19.070000Z","status":"Modified","cvss":{"version":"3.1","score":9.1,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","primary":false},"auth":false,"cwes":["CWE-338","CWE-340"],"cpes":[{"criteria":"cpe:2.3:a:chorny:apache\\:\\:session\\:\\:generate\\:\\:md5:*:*:*:*:*:perl:*:*","part":"a","vendor":"chorny","product":"apache::session::generate::md5","version_end_including":"1.94"}],"cpes_truncated":false,"vendors":["chorny"],"products":["chorny/apache-session-generate-md5"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"total"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":70,"links":{"html_es":"/es/cve/CVE-2025-40931/","html_en":"/en/cve/CVE-2025-40931/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-40931","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-40931"},"untrusted":{"vendor_name":"Chorny","product_name":"Apache::session::generate::md5","desc_en":"Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id.\n\nApache::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.\n\nNote that the libapache-session-perl package in some Debian-based Linux distributions may be patched to use Crypt::URandom.","affected":[{"untrusted_vendor":"CHORNY","untrusted_product":"Apache::Session::Generate::MD5","versions":[]}],"references":[{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930659","tags":[]},{"url":"https://github.com/chorny/Apache-Session/issues/4","tags":["Issue Tracking"]},{"url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/1633","tags":[]},{"url":"https://metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27","tags":["Product"]},{"url":"https://metacpan.org/pod/Apache::Session::Generate::Random","tags":[]},{"url":"https://rt.cpan.org/Ticket/Display.html?id=173631","tags":["Third Party Advisory"]},{"url":"https://salsa.debian.org/perl-team/modules/packages/libapache-session-perl/-/commit/bdabd71c2f91b18526e31a9dc52b4c17b3d246b7#898a4b8b00022df1b8689910b67707f3e738d180","tags":[]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://www.openwall.com/lists/oss-security/2019/06/15/1","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/05/3","tags":["Mailing List","Third Party Advisory"]}]}}