CVE Explorer
CVE-2026-5082
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
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
1 source assertion{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Amon2-Plugin-Web-CSRFDefender","product":"Amon2::Plugin::Web::CSRFDefender","programFiles":["lib/Amon2/Plugin/Web/CSRFDefender/Random.pm"],"programRoutines":[{"name":"Amon2::Plugin::Web::CSRFDefender::Random::generate_session_id"}],"repo":"https://github.com/tokuhirom/Amon2-Plugin-Web-CSRFDefender","vendor":"TOKUHIROM","versions":[{"lessThanOrEqual":"7.03","status":"affected","version":"7.00","versionType":"custom"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/adp/0/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-340","description":"CWE-340 Generation of Predictable Numbers or Identifiers","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/cna/problemTypes/1/descriptions/0
Source references
3 source assertions{"url":"https://metacpan.org/release/TOKUHIROM/Amon2-Plugin-Web-CSRFDefender-7.03/source/lib/Amon2/Plugin/Web/CSRFDefender/Random.pm"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/cna/references/0
{"tags":["release-notes"],"url":"https://metacpan.org/release/TOKUHIROM/Amon2-Plugin-Web-CSRFDefender-7.04/changes"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/cna/references/1
{"tags":["related","vendor-advisory"],"url":"https://www.cve.org/CVERecord?id=CVE-2025-15604"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:c1c8cd032369461710229c47caab1b1b75e8ae14e3cff7052dcab45cbc44ec46 · sha256:813a67b3f48ea9eb… · /containers/cna/references/2
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.