CVE-2025-2814
published medium CVSS 3.1 · 4.0Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| LDS | — | Crypt-CBCCrypt::CBC · 1.21 through 3.05 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Crypt-CBCaarch64 | Advisory build | 3.70.0-1.1 | OPENSUSE-SU-2025:15495-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Crypt-CBCppc64le | Advisory build | 3.70.0-1.1 | OPENSUSE-SU-2025:15495-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Crypt-CBCs390x | Advisory build | 3.70.0-1.1 | OPENSUSE-SU-2025:15495-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | perl-Crypt-CBCx86_64 | Advisory build | 3.70.0-1.1 | OPENSUSE-SU-2025:15495-1 |
Description
Crypt::CBC versions between 1.21 and 3.05 for Perl may use the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. This issue affects operating systems where "/dev/urandom'" is unavailable. In that case, Crypt::CBC will fallback to use the insecure rand() function.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.0 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| LDS | Crypt::CBC | 1.21 through 3.05 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
4- CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
- CWE-329 CWE-329 Generation of Predictable IV with CBC Mode
- CWE-331 CWE-331 Insufficient Entropy
- CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
References
4Provider assertions
2CPANSec · cna
Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 6f9d8d7ef3d093931a0838adee20744a5537ff132887be5908308a5574f2f188
- Ingested
- 23 Sep 2026, 08:43:47 UTC
- Source record
- Official CVE record