{"id":"CVE-2025-40924","aliases":["DEBIAN-CVE-2025-40924","EUVD-2025-21775","GHSA-32wx-j5gv-pmfp","UBUNTU-CVE-2025-40924"],"status":"published","title":"Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely","description":"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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-09","score":0.00299,"percentile":0.22796,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-338","CWE-340"],"published":"2025-07-17T13:33:43Z","modified":"2026-10-28T02:30:23Z","fixes":[{"ecosystem":"Debian:14","package":"libcatalyst-plugin-session-perl","fixed_in":["0.44-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.43-1","0.44-1"]},{"source":"osv","ecosystem":"Debian:13","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.43-1","0.44-1"]},{"source":"osv","ecosystem":"Debian:14","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.44-1"}]}],"versions":["0.43-1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.40-1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.40-1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.41-1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.41-1"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.43-1"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.43-1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.44-1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"libcatalyst-plugin-session-perl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.43-1","0.44-1"]}],"products":[{"vendor":"haarg","product":"catalyst::plugin::session"}],"references":[{"url":"https://metacpan.org/release/HAARG/Catalyst-Plugin-Session-0.43/source/lib/Catalyst/Plugin/Session.pm#L632","tags":["web","report"]},{"url":"https://github.com/perl-catalyst/Catalyst-Plugin-Session/pull/5","tags":["issue-tracking","report"]},{"url":"https://github.com/perl-catalyst/Catalyst-Plugin-Session/commit/c0e2b4ab1e42ebce1008286db8c571b6ee98c22c.patch","tags":["patch","fix","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40924","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-32wx-j5gv-pmfp"},{"url":"https://cpan.org/modules","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40924.json","tags":["advisory"]},{"url":"https://github.com/perl-catalyst/Catalyst-Plugin-Session","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-40924","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-40924","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40924","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-40924","title":"Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely","description":"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.","status":"published","published":"2025-07-17T13:33:43.739Z","modified":"2025-07-17T19:53:31.346Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"adp"}],"cwes":["CWE-340","CWE-338"],"updated_at":"2026-11-02T14:32:34.773122Z"}],"euvd":[{"id":"EUVD-2025-21775","description":"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.","status":"published","published":"2025-07-17T13:33:43Z","modified":"2025-07-17T19:53:31Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T20:32:07.433642Z"}],"ghsa":[{"id":"GHSA-32wx-j5gv-pmfp","title":"Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely.\n\nThe...","description":"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.","status":"published","published":"2025-07-17T15:32:15Z","modified":"2025-07-17T21:32:11Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-338"],"updated_at":"2026-11-02T15:03:03.424111Z"}],"nvd":[{"id":"CVE-2025-40924","description":"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.","status":"published","published":"2025-07-17T14:15:31.227Z","modified":"2026-06-17T09:22:18.09Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-338","CWE-340"],"updated_at":"2026-11-02T14:11:18.782156Z"}],"osv":[{"id":"CVE-2025-40924","title":"Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely","description":"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.","status":"published","published":"2025-07-17T13:33:43.739Z","modified":"2026-10-28T02:30:23.749196123Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-338","CWE-340"],"updated_at":"2026-11-02T15:44:49.394967Z"},{"id":"DEBIAN-CVE-2025-40924","description":"Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely.  The 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.  Predicable session ids could allow an attacker to gain access to systems.","status":"published","published":"2025-07-17T14:15:31.227Z","modified":"2026-09-01T20:05:52.223688664Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:46.998514Z"},{"id":"UBUNTU-CVE-2025-40924","description":"Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely. The 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. Predicable session ids could allow an attacker to gain access to systems.","status":"published","published":"2025-07-17T14:15:00Z","modified":"2026-10-17T12:56:51.00806557Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T16:55:46.53147Z"}]}}
