{"cve":{"cve_id":"CVE-2025-40931","is_kev":false,"kev_date_added":null,"kev_vendor_project":null,"kev_product":null,"kev_vulnerability_name":null,"kev_short_description":null,"kev_required_action":null,"kev_due_date":null,"kev_known_ransomware":null,"kev_notes":null,"kev_cwes":null,"epss_score":0.00583,"epss_percentile":0.43303,"epss_as_of":"2026-06-23","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 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_at":"2026-03-05T01:41:09.588000Z","last_modified_at":null,"cvss_v3_score":9.1,"cvss_v3_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","cvss_v3_severity":"CRITICAL","cvss_v4_score":null,"cvss_v4_vector":null,"cvss_v4_severity":null,"ssvc_decision":null,"ssvc_exploitation":null,"ssvc_automatable":null,"ssvc_technical_impact":null,"cwes":["CWE-340","CWE-338"],"nvd_references":["https://metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27","https://security.metacpan.org/docs/guides/random-data-for-security.html","https://github.com/chorny/Apache-Session/issues/4","https://rt.cpan.org/Ticket/Display.html?id=173631","https://www.openwall.com/lists/oss-security/2019/06/15/1","https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930659","https://salsa.debian.org/perl-team/modules/packages/libapache-session-perl/-/commit/bdabd71c2f91b18526e31a9dc52b4c17b3d246b7#898a4b8b00022df1b8689910b67707f3e738d180","https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/1633","https://metacpan.org/pod/Apache::Session::Generate::Random"],"vuln_status":null,"trending_score":null,"is_trending":false,"has_trended":false,"trended_number_one":false,"trending_peak_score":null,"trending_peak_rank":null,"started_trending_at":null,"trended_number_one_at":null,"summary_generated":null,"summary_generated_at":null,"summary_model":null,"created_at":"2026-06-24T00:09:39.878444Z","updated_at":"2026-06-28T23:26:54.703049Z"},"effective_severity":"CRITICAL","badges":[],"impact_analysis":[],"cvss_v3_decoded":{"version":"3.1","metrics":[{"metric":"AV","name":"Attack Vector","value":"N","value_label":"Network"},{"metric":"AC","name":"Attack Complexity","value":"L","value_label":"Low"},{"metric":"PR","name":"Privileges Required","value":"N","value_label":"None"},{"metric":"UI","name":"User Interaction","value":"N","value_label":"None"},{"metric":"S","name":"Scope","value":"U","value_label":"Unchanged"},{"metric":"C","name":"Confidentiality","value":"H","value_label":"High"},{"metric":"I","name":"Integrity","value":"H","value_label":"High"},{"metric":"A","name":"Availability","value":"N","value_label":"None"}]},"cvss_v4_decoded":{"version":null,"metrics":[]},"affected":[{"vendor_slug":"chorny","vendor_name":"CHORNY","product_slug":"apache-session-generate-md5","product_name":"Apache::Session::Generate::MD5","version_start":"0","version_start_inclusive":true,"version_end":"1.94","version_end_inclusive":true,"cpe23_uri":"cve5:chorny:apache-session-generate-md5:0:1.94"}],"exploit_refs":[],"news":[],"references":[{"url":"https://metacpan.org/dist/Apache-Session/source/lib/Apache/Session/Generate/MD5.pm#L27","source_type":"MISC","tags":[]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","source_type":"MISC","tags":[]},{"url":"https://github.com/chorny/Apache-Session/issues/4","source_type":"MISC","tags":[]},{"url":"https://rt.cpan.org/Ticket/Display.html?id=173631","source_type":"MISC","tags":[]},{"url":"https://www.openwall.com/lists/oss-security/2019/06/15/1","source_type":"MAILING_LIST","tags":["mailing-list"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930659","source_type":"VENDOR_ADVISORY","tags":["advisory"]},{"url":"https://salsa.debian.org/perl-team/modules/packages/libapache-session-perl/-/commit/bdabd71c2f91b18526e31a9dc52b4c17b3d246b7#898a4b8b00022df1b8689910b67707f3e738d180","source_type":"VENDOR_ADVISORY","tags":["advisory","patch"]},{"url":"https://gitlab.ow2.org/lemonldap-ng/lemonldap-ng/-/work_items/1633","source_type":"MISC","tags":[]},{"url":"https://metacpan.org/pod/Apache::Session::Generate::Random","source_type":"MISC","tags":[]}],"timeline":[{"type":"published","at":"2026-03-05T01:41:09.588000Z","label":"CVE published","source":null},{"type":"cvss_changed","at":"2026-06-28T17:46:14.405180Z","label":"CVSS score revised","source":"cvelistv5"},{"type":"cvss_changed","at":"2026-06-28T17:46:14.405180Z","label":"CVSS score revised","source":"cvelistv5"},{"type":"cvss_changed","at":"2026-06-28T17:46:14.405180Z","label":"CVSS score revised","source":"cvelistv5"}]}