{"id":"CVE-2025-40926","aliases":["CVE-2025-40926"],"related":[],"kind":"vulnerability","state":"published","title":"Plack::Middleware::Session::Simple versions before 0.05 for Perl generates session ids insecurely","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Las versiones de Plack::Middleware::Session::Simple hasta la 0.04 para Perl generan identificadores de sesión de forma insegura.\n\nEl generador predeterminado de identificadores de sesión devuelve un hash SHA-1 inicializado con la función rand incorporada, el tiempo epoch y el PID. El PID provendrá de un pequeño conjunto de números, y el tiempo epoch puede ser adivinado, si no se filtra del encabezado HTTP Date. La función rand incorporada no es adecuada para uso criptográfico.\n\nLos identificadores de sesión predecibles podrían permitir a un atacante obtener acceso a los sistemas.\n\nPlack::Middleware::Session::Simple está diseñado para ser compatible con Plack::Middleware::Session, que tuvo un problema de seguridad similar CVE-2025-40923.","source":"nvd"}],"published":"2026-03-05T01:24:34.151Z","modified":"2026-06-17T09:22:18.360Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-338","CWE-340"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"0.05","status":"affected"}],"vendor":"KAZEBURO","product":"Plack::Middleware::Session::Simple","package":"Plack-Middleware-Session-Simple","repo":"https://github.com/kazeburo/Plack-Middleware-Session-Simple","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.05"}],"vendor":"kazeburo","product":"plack::middleware::session::simple","cpe":"cpe:2.3:a:kazeburo:plack\\:\\:middleware\\:\\:session\\:\\:simple:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://metacpan.org/release/KAZEBURO/Plack-Middleware-Session-Simple-0.04/source/lib/Plack/Middleware/Session/Simple.pm#L43","tags":["issue-tracking","product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kazeburo/Plack-Middleware-Session-Simple/pull/4","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/kazeburo/Plack-Middleware-Session-Simple/commit/760bb358b8f53e52cf415888a4ac858fd99bb24e.patch","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-40923","tags":["related","third-party-advisory","vdb-entry","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["technical-description","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/KAZEBURO/Plack-Middleware-Session-Simple-0.05/changes","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-03-05T16:28:14.069Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40926","url":"https://www.cve.org/CVERecord?id=CVE-2025-40926","licence":"CVE Terms of Use","modified":"2026-04-21T02:42:17.296Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40926","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40926","licence":"Public domain","modified":"2026-06-17T09:22:18.360Z"}],"updatedAt":"2026-11-25T22:59:11.845Z","epss":{"score":0.00515,"percentile":0.45344,"date":"2026-12-01T12:00:22.000Z"}}