{"id":"CVE-2025-40924","published":"2025-07-17T13:33:43Z","modified":"2025-07-17T19:53:31Z","title":"Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely","vendor":"HAARG","product":"Catalyst::Plugin::Session","tier":"tail","description":{"text":"Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely.\n\nThe session id is generated from a (usually SHA-1) hash of a simple counter, the epoch time, the built-in rand function, the PID and the current Catalyst context. This information is of low entropy. 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.\n\nPredicable session ids could allow an attacker to gain access to systems.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00299,"percentile":0.22997,"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/release/HAARG/Catalyst-Plugin-Session-0.43/source/lib/Catalyst/Plugin/Session.pm#L632","tags":[]},{"url":"https://github.com/perl-catalyst/Catalyst-Plugin-Session/pull/5","tags":["issue-tracking"]},{"url":"https://github.com/perl-catalyst/Catalyst-Plugin-Session/commit/c0e2b4ab1e42ebce1008286db8c571b6ee98c22c.patch","tags":["patch"]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":4.6},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"haarg","affectedVersions":[{"vendor":"HAARG","product":"Catalyst::Plugin::Session","versions":[">= 0.01, < 0.44"]}],"solutions":{"items":["Users are advised to upgrade to Catalyst-Plugin-Session version 0.44 or later."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-17T19:51:00.779304Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-21775","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-haarg-catalyst-plugin-session-cve-2018-25052","parents":[{"from":"CVE-2018-25052","to":"CVE-2025-40924","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/Catalyst/Plugin/Session.pm"],"commits":["https://github.com/perl-catalyst/Catalyst-Plugin-Session/commit/88d1b599e1163761c9bd53bec53ba078f13e09d4","https://github.com/perl-catalyst/Catalyst-Plugin-Session/commit/c0e2b4ab1e42ebce1008286db8c571b6ee98c22c"],"basis":"rarely changed file"}]}]}}