{"id":"CVE-2025-40926","published":"2026-03-05T01:24:34Z","modified":"2026-04-21T02:42:17Z","title":"Plack::Middleware::Session::Simple versions before 0.05 for Perl generates session ids insecurely","vendor":"KAZEBURO","product":"Plack::Middleware::Session::Simple","tier":"tail","description":{"text":"Plack::Middleware::Session::Simple versions before 0.05 for Perl generates session ids insecurely.\n\nThe default session id generator returns a SHA-1 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.\n\nPredictable session ids could allow an attacker to gain access to systems.\n\nPlack::Middleware::Session::Simple is intended to be compatible with Plack::Middleware::Session, which had a similar security issue CVE-2025-40923.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00503,"percentile":0.4396,"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/KAZEBURO/Plack-Middleware-Session-Simple-0.04/source/lib/Plack/Middleware/Session/Simple.pm#L43","tags":[]},{"url":"https://github.com/kazeburo/Plack-Middleware-Session-Simple/pull/4","tags":["issue-tracking"]},{"url":"https://github.com/kazeburo/Plack-Middleware-Session-Simple/commit/760bb358b8f53e52cf415888a4ac858fd99bb24e.patch","tags":["patch"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40923","tags":["vendor-advisory","related","vdb-entry"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["technical-description"]},{"url":"https://metacpan.org/release/KAZEBURO/Plack-Middleware-Session-Simple-0.05/changes","tags":["release-notes"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":8.79},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"kazeburo","affectedVersions":[{"vendor":"KAZEBURO","product":"Plack::Middleware::Session::Simple","versions":["< 0.05"]}],"solutions":{"items":["Users are advised to upgrade to version 0.05 or later."],"from":"CVE.org CNA","provenance":"source"},"workarounds":{"items":["Users are advised to change the sid_generator attribute of Plack::Middleware::Session::Simple to a function that returns a securely generated session id based on a secure source of entropy from the system. Users may consider using Plack::Middleware::Session version 0.35 or later."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-03-05T16:28:14.069463Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-208296","exploited":false,"provenance":"source"}}