{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-40931","id":"CVE-2025-40931","title":"Apache::Session::Generate::MD5 versions through 1.94 for Perl create insecure session id","description":"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 ","descriptionLong":"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.","published":"2026-03-05T01:41:09.588Z","updated":"2026-06-17T09:22:19.070Z","reserved":"2025-04-16T09:05:34.363Z","status":"Modified","rejected":false,"assigner":"CPANSec","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"}],"rating":"critical","products":["CHORNY Apache::Session::Generate::MD5"],"affectedProducts":[{"vendor":"CHORNY","product":"Apache::Session::Generate::MD5","defaultStatus":"unaffected","versions":[{"lessThanOrEqual":"1.94","status":"affected","version":"0","versionType":"custom"}],"platforms":[]}],"packages":[],"cwes":["CWE-340","CWE-338"],"aliases":[],"references":[{"url":"https://metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27","tags":["Product","web"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["technical-description","Mailing List","Third Party Advisory","advisory"]},{"url":"https://github.com/chorny/Apache-Session/issues/4","tags":["issue-tracking","Issue Tracking","report"]},{"url":"https://rt.cpan.org/Ticket/Display.html?id=173631","tags":["issue-tracking","Third Party Advisory","advisory"]},{"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":["Mailing List","Third Party Advisory","advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00643,"epssPercentile":0.51666,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-40931","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40931","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-40931","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-40931","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}