CVE-2025-1828
published high CVSS 3.1 · 8.8Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| perl | — | Crypt-RandomCrypt::Random · 1.05 to < 1.56 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| perl | Crypt::Random | 1.05 to < 1.56 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
2- CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
- CWE-331 CWE-331 Insufficient Entropy
References
3Provider assertions
2CPANSec · cna
Perl's Crypt::Random module after 1.05 and before 1.56 may use rand() function for cryptographic functions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2b9c4fa7be8cfdc29c7e9b1cf12dca3f1d026dc8cc9988b2f2f6e521a7b0f347
- Ingested
- 23 Sep 2026, 08:38:52 UTC
- Source record
- Official CVE record