# CVE-2024-57835: Amon2::Auth::Site::LINE versions through 0.04 for Perl uses insecure rand() function for cryptographic functions

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/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.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2025-04-05T16:11:11.314Z
- Modified: 2026-06-17T08:14:05.457Z
- Weaknesses: CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## 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

(As written by CVE List.)

## Affected

- Amon2-Auth-Site-LINE: up to 0.04
- nipotan line_integration_for_amon2: before 0.04

## References

- <https://metacpan.org/release/SHLOMIF/String-Random-0.32/source/lib/String/Random.pm#L377> (product, related)
- <https://metacpan.org/release/TANIGUCHI/Amon2-Auth-Site-LINE-0.04/source/lib/Amon2/Auth/Site/LINE.pm#L235> (product, related)
- <https://metacpan.org/release/TANIGUCHI/Amon2-Auth-Site-LINE-0.04/source/lib/Amon2/Auth/Site/LINE.pm#L255> (product, related)
- <https://security.metacpan.org/docs/guides/random-data-for-security.html> (related, technical-description)

## Sources

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

---

Page: https://cve.day/CVE-2024-57835 · Whole record: https://cve.day/CVE-2024-57835.json · Rebuilt by cve.day 2026-11-25T22:58:52.480Z
