# CVE-2026-5082: Amon2::Plugin::Web::CSRFDefender versions from 7.00 through 7.03 for Perl generate an insecure session id

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2026-04-08T05:48:43.633Z
- Modified: 2026-07-24T20:10:00.147Z
- Weaknesses: CWE-338, CWE-340
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: CPANSec

## Description

Amon2::Plugin::Web::CSRFDefender versions from 7.00 through 7.03 for Perl generate an insecure session id.

The 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.

Amon2::Plugin::Web::CSRFDefender versions before 7.00 were part of Amon2, which was vulnerable to insecure session ids due to CVE-2025-15604.

Note that the author has deprecated this module.

(As written by CVE List.)

## Affected

- Amon2-Plugin-Web-CSRFDefender: from 7.00 up to 7.03
- tokuhirom amon2::plugin::web::csrfdefender: from 7.00 up to 7.03

## References

- <https://metacpan.org/release/TOKUHIROM/Amon2-Plugin-Web-CSRFDefender-7.03/source/lib/Amon2/Plugin/Web/CSRFDefender/Random.pm> (product)
- <https://metacpan.org/release/TOKUHIROM/Amon2-Plugin-Web-CSRFDefender-7.04/changes> (release-notes)
- <https://www.cve.org/CVERecord?id=CVE-2025-15604> (related, third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2026-5082](https://www.cve.org/CVERecord?id=CVE-2026-5082), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2026-5082](https://nvd.nist.gov/vuln/detail/CVE-2026-5082), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-5082 · Whole record: https://cve.day/CVE-2026-5082.json · Rebuilt by cve.day 2026-11-25T22:59:18.218Z
