{"id":"CVE-2026-5082","published":"2026-04-08T05:48:43Z","modified":"2026-04-08T16:09:26Z","title":"Amon2::Plugin::Web::CSRFDefender versions from 7.00 through 7.03 for Perl generate an insecure session id","vendor":"TOKUHIROM","product":"Amon2::Plugin::Web::CSRFDefender","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00421,"percentile":0.37332,"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/TOKUHIROM/Amon2-Plugin-Web-CSRFDefender-7.03/source/lib/Amon2/Plugin/Web/CSRFDefender/Random.pm","tags":[]},{"url":"https://metacpan.org/release/TOKUHIROM/Amon2-Plugin-Web-CSRFDefender-7.04/changes","tags":["release-notes"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-15604","tags":["related","vendor-advisory"]}],"priority":{"score":11.2,"factors":[{"name":"EPSS percentile","points":7.47},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"tokuhirom","affectedVersions":[{"vendor":"TOKUHIROM","product":"Amon2::Plugin::Web::CSRFDefender","versions":[">= 7.00, <= 7.03"]}],"solutions":{"items":["Upgrade to Amon2::Plugin::Web::CSRFDefender version 7.04 or later."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-62","name":"Cross Site Request Forgery"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-08T16:09:08.752556Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-20060","exploited":false,"provenance":"source"}}