{"id":"CVE-2026-5082","aliases":["CVE-2026-5082"],"related":[],"kind":"vulnerability","state":"published","title":"Amon2::Plugin::Web::CSRFDefender versions from 7.00 through 7.03 for Perl generate an insecure session id","summary":"Amon2::Plugin::Web::CSRFDefender versions from 7.00 through 7.03 for Perl generate an insecure session id.\n\nThe generate_session_id function will attempt to read bytes from the /dev/urandom device, but if that is unavailable then it generates bytes using SHA-1 hash seeded with the built-in rand() function, the PID, and the high resolution epoch time.  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\nAmon2::Plugin::Web::CSRFDefender versions before 7.00 were part of Amon2, which was vulnerable to insecure session ids due to CVE-2025-15604.\n\nNote that the author has deprecated this module.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Amon2::Plugin::Web::CSRFDefender versions from 7.00 through 7.03 for Perl generate an insecure session id.\n\nThe generate_session_id function will attempt to read bytes from the /dev/urandom device, but if that is unavailable then it generates bytes using SHA-1 hash seeded with the built-in rand() function, the PID, and the high resolution epoch time.  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\nAmon2::Plugin::Web::CSRFDefender versions before 7.00 were part of Amon2, which was vulnerable to insecure session ids due to CVE-2025-15604.\n\nNote that the author has deprecated this module.","source":"cvelist"},{"lang":"es","text":"Las versiones de Amon2::Plugin::Web::CSRFDefender de la 7.00 a la 7.03 para Perl generan un ID de sesión inseguro.\n\nLa función generate_session_id intentará leer bytes del dispositivo /dev/urandom, pero si este no está disponible, entonces genera bytes usando un hash SHA-1 inicializado con la función rand() incorporada, el PID y el tiempo de época de alta resolución. El PID provendrá de un pequeño conjunto de números, y el tiempo de época puede ser adivinado, si no se filtra del encabezado HTTP Date. La función rand incorporada no es adecuada para uso criptográfico.\n\nLas versiones de Amon2::Plugin::Web::CSRFDefender anteriores a la 7.00 formaban parte de Amon2, el cual era vulnerable a IDs de sesión inseguros debido a CVE-2025-15604.\n\nTenga en cuenta que el autor ha desaprobado este módulo.","source":"nvd"}],"published":"2026-04-08T05:48:43.633Z","modified":"2026-07-24T20:10:00.147Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-338","CWE-340"],"affected":[{"ranges":[{"type":"custom","introduced":"7.00","lastAffected":"7.03","status":"affected"}],"vendor":"TOKUHIROM","product":"Amon2::Plugin::Web::CSRFDefender","package":"Amon2-Plugin-Web-CSRFDefender","repo":"https://github.com/tokuhirom/Amon2-Plugin-Web-CSRFDefender","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"7.00","lastAffected":"7.03"}],"vendor":"tokuhirom","product":"amon2::plugin::web::csrfdefender","cpe":"cpe:2.3:a:tokuhirom:amon2\\:\\:plugin\\:\\:web\\:\\:csrfdefender:*:*:*:*:*:perl:*:*","source":"nvd"}],"references":[{"url":"https://metacpan.org/release/TOKUHIROM/Amon2-Plugin-Web-CSRFDefender-7.03/source/lib/Amon2/Plugin/Web/CSRFDefender/Random.pm","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://metacpan.org/release/TOKUHIROM/Amon2-Plugin-Web-CSRFDefender-7.04/changes","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-15604","tags":["related","third-party-advisory","vendor-advisory"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"CPANSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-08T16:09:08.752Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5082","url":"https://www.cve.org/CVERecord?id=CVE-2026-5082","licence":"CVE Terms of Use","modified":"2026-04-08T16:09:26.357Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5082","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5082","licence":"Public domain","modified":"2026-07-24T20:10:00.147Z"}],"updatedAt":"2026-11-25T22:59:18.218Z","epss":{"score":0.00431,"percentile":0.39172,"date":"2026-12-01T12:00:22.000Z"}}