{"id":"CVE-2025-40931","published":"2026-03-05T01:41:09Z","modified":"2026-04-21T02:42:43Z","title":"Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id","vendor":"CHORNY","product":"Apache::Session::Generate::MD5","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00643,"percentile":0.51804,"provenance":"source"},"cwes":[{"id":"CWE-340","name":"Generation of Predictable Numbers or Identifiers"},{"id":"CWE-338","name":"Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)"}],"references":[{"url":"https://metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27","tags":[]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["technical-description"]},{"url":"https://github.com/chorny/Apache-Session/issues/4","tags":["issue-tracking"]},{"url":"https://rt.cpan.org/Ticket/Display.html?id=173631","tags":["issue-tracking"]},{"url":"https://www.openwall.com/lists/oss-security/2019/06/15/1","tags":["mailing-list"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930659","tags":["issue-tracking"]},{"url":"https://salsa.debian.org/perl-team/modules/packages/libapache-session-perl/-/commit/bdabd71c2f91b18526e31a9dc52b4c17b3d246b7#898a4b8b00022df1b8689910b67707f3e738d180","tags":["patch"]},{"url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/1633","tags":["issue-tracking"]},{"url":"https://metacpan.org/pod/Apache::Session::Generate::Random","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/05/3","tags":[]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":10.36},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"chorny","affectedVersions":[{"vendor":"CHORNY","product":"Apache::Session::Generate::MD5","versions":["<= 1.94"]}],"solutions":{"items":["Consider alternate solutions like https://metacpan.org/pod/Apache::Session::Generate::Random"],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Apply the patch from the Debian Perl Group that uses Crypt::URandom."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-115","name":"Authentication Bypass"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-03-05T16:38:07.301789Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-208297","exploited":false,"provenance":"source"},"lineage":{"children":[{"from":"CVE-2025-40931","to":"CVE-2026-8503","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"This issue is similar to CVE-2025-40931 for Apache::Session::Generate::MD5.","from":"CVE.org","in":"CVE-2026-8503"}]}]}}