CVE-2026-5082: CWE-340 Generation of Predictable Numbers or Identifiers in TOKUHIROM Amon2::Plugin::Web::CSRFDefender
CVE-2026-5082 affects Amon2::Plugin::Web::CSRFDefender versions 7. 00 through 7. 03 for Perl, where the module generates insecure session IDs. The vulnerability arises because if /dev/urandom is unavailable, the session ID generation falls back to a SHA-1 hash seeded with the built-in rand() function, process ID, and epoch time, which are predictable or guessable values. This weak randomness can lead to predictable session identifiers. The module has been deprecated by its author. No official patch or remediation is currently documented.
AI Analysis
Technical Summary
Amon2::Plugin::Web::CSRFDefender versions 7.00 through 7.03 generate session IDs insecurely when /dev/urandom is not accessible. The fallback method uses a SHA-1 hash seeded with the built-in rand() function, process ID (PID), and high-resolution epoch time. Since the PID is from a small range and the epoch time may be inferred (e.g., from HTTP Date headers), the session IDs can be predicted. The built-in rand() function is not cryptographically secure, making the session ID generation vulnerable to prediction. Earlier versions before 7.00 were also vulnerable due to a related issue (CVE-2025-15604). The module is deprecated, and no official fix or patch has been provided.
Potential Impact
The vulnerability allows attackers to predict session IDs generated by the affected module under certain conditions, potentially undermining session integrity. However, the CVSS score of 5.3 (medium severity) and vector indicate no confidentiality or integrity impact, only a potential availability impact. There are no known exploits in the wild. The module's deprecation suggests it may no longer be maintained or recommended for use.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Since the module is deprecated, users should consider migrating to alternative, actively maintained CSRF defense solutions that use secure random number generation. Avoid relying on this module for session ID generation, especially in environments where /dev/urandom might be unavailable. Monitor vendor advisories for any future updates or recommendations.
CVE-2026-5082: CWE-340 Generation of Predictable Numbers or Identifiers in TOKUHIROM Amon2::Plugin::Web::CSRFDefender
Description
CVE-2026-5082 affects Amon2::Plugin::Web::CSRFDefender versions 7. 00 through 7. 03 for Perl, where the module generates insecure session IDs. The vulnerability arises because if /dev/urandom is unavailable, the session ID generation falls back to a SHA-1 hash seeded with the built-in rand() function, process ID, and epoch time, which are predictable or guessable values. This weak randomness can lead to predictable session identifiers. The module has been deprecated by its author. No official patch or remediation is currently documented.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Amon2::Plugin::Web::CSRFDefender versions 7.00 through 7.03 generate session IDs insecurely when /dev/urandom is not accessible. The fallback method uses a SHA-1 hash seeded with the built-in rand() function, process ID (PID), and high-resolution epoch time. Since the PID is from a small range and the epoch time may be inferred (e.g., from HTTP Date headers), the session IDs can be predicted. The built-in rand() function is not cryptographically secure, making the session ID generation vulnerable to prediction. Earlier versions before 7.00 were also vulnerable due to a related issue (CVE-2025-15604). The module is deprecated, and no official fix or patch has been provided.
Potential Impact
The vulnerability allows attackers to predict session IDs generated by the affected module under certain conditions, potentially undermining session integrity. However, the CVSS score of 5.3 (medium severity) and vector indicate no confidentiality or integrity impact, only a potential availability impact. There are no known exploits in the wild. The module's deprecation suggests it may no longer be maintained or recommended for use.
Mitigation Recommendations
No official patch or remediation is currently available for this vulnerability. Since the module is deprecated, users should consider migrating to alternative, actively maintained CSRF defense solutions that use secure random number generation. Avoid relying on this module for session ID generation, especially in environments where /dev/urandom might be unavailable. Monitor vendor advisories for any future updates or recommendations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-03-28T19:12:35.387Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d5f0511cc7ad14da136bda
Added to database: 4/8/2026, 6:06:09 AM
Last enriched: 4/15/2026, 3:53:34 PM
Last updated: 5/23/2026, 11:00:30 PM
Views: 69
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.