CVE-2024-57835 Details
Description
Amon2::Auth::Site::LINE uses the String::Random module to generate nonce values. String::Random defaults to Perl's built-in predictable random number generator, the rand() function, which is not cryptographically secure
A vulnerability exists in the Amon2::Auth::Site::LINE module, specifically in version 0.04, due to its use of the String::Random module for generating nonce values. String::Random defaults to Perl's built-in random number generator, the rand() function, which is predictable and not cryptographically secure. This lack of secure randomness can be exploited in scenarios where nonces are used for authentication or authorization purposes, potentially leading to replay attacks or other security issues.
Users can mitigate this vulnerability by specifying a secure random number generator when creating a new String::Random object. This can be done using the 'rand_gen' option, providing a reference to a subroutine that uses a cryptographically secure source of randomness, such as Crypt::URandom or Crypt::SysRandom.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://metacpan.org/release/SHLOMIF/String-Random-0.32/source/lib/String/Random.pm#L377 | CPANSec | Product |
| https://metacpan.org/release/TANIGUCHI/Amon2-Auth-Site-LINE-0.04/source/lib/Amon2/Auth/Site/LINE.pm#L235 | CPANSec | Product |
| https://metacpan.org/release/TANIGUCHI/Amon2-Auth-Site-LINE-0.04/source/lib/Amon2/Auth/Site/LINE.pm#L255 | CPANSec | Product |
| https://security.metacpan.org/docs/guides/random-data-for-security.html | CPANSec | Technical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | [email protected] |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| nipotan line integration for amon2 | < 0.04 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 8, 2025 | Initial Analysis | [email protected] |
| Apr 7, 2025 | CVE Modified | CISA-ADP |
| Apr 5, 2025 | New CVE Received | CPANSec |