CVE-2025-1828: Crypt::Random - Weak Random Number Generator
- Cve: CVE-2025-1828
- Name: Crypt::Random - Weak Random Number Generator
- 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.
- Impact: Attackers can predict cryptographic outputs, potentially compromising security of cryptographic operations.
- Remediation: Update to a version that uses a cryptographically secure provider or configure the provider explicitly.
- Vulnerability type: weak_cryptography
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00407
- Epss percentile: 0.35758
- Assignee: 9b29abf9-4ab0-4765-b253-1875cd9b441e
- Published at: 2025-03-11T00:15:11Z
- Age in days: 623
- Modified at: 2026-06-17T08:39:50Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-1828
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-331 | Insufficient Entropy |
| CWE-338 | Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| timlegge:crypt::random | >= 1.05, <= 1.55 | no | nvd | /v1/products/timlegge/crypt::random |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| perl-Crypt-OpenPGP/Crypt-Random | commit, fix, pull | yes | /v1/repositories/perl-Crypt-OpenPGP/Crypt-Random |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts