# CVE-2025-1828: Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2025-03-10T23:51:33.279Z
- Modified: 2026-06-17T08:39:50.943Z
- Weaknesses: CWE-331, CWE-338
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: CPANSec

## Description

Crypt::Random Perl package 1.05 through 1.55 may use rand() function, which is not cryptographically strong, for cryptographic functions.

If the Provider is not specified and /dev/urandom or an Entropy Gathering Daemon (egd) service is not available Crypt::Random will default to use the insecure Crypt::Random::rand provider.

In particular, Windows versions of perl will encounter this issue by default.

(As written by CVE List.)

## Affected

- Crypt-Random: from 1.05 before 1.56
- timlegge crypt::random: from 1.05 up to 1.55

## References

- <https://perldoc.perl.org/functions/rand> (patch)
- <https://github.com/perl-Crypt-OpenPGP/Crypt-Random/pull/1> (issue-tracking, patch)
- <https://github.com/perl-Crypt-OpenPGP/Crypt-Random/commit/1f8b29e9e89d8d083fd025152e76ec918136cc05> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-1828 · Whole record: https://cve.day/CVE-2025-1828.json · Rebuilt by cve.day 2026-11-25T22:58:55.094Z
