Vulnerability · Published Apr 12, 2025 · Assigned by CPANSec
CVE-2025-2814Crypt::CBC versions between 1.21 and 3.05 for Perl may use insecure rand() function for cryptographic functions
Medium 4.0
In plain English
A medium-severity security flaw in Crypt::CBC from LDS. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libcrypt-cbc-perl | no fix listed | DEBIAN-CVE-2025-2814 |
| Debian:13 | libcrypt-cbc-perl | no fix listed | DEBIAN-CVE-2025-2814 |
| Debian:14 | libcrypt-cbc-perl | 3.07-1 | DEBIAN-CVE-2025-2814 |
| Ubuntu:22.04:LTS | libcrypt-cbc-perl | no fix listed | UBUNTU-CVE-2025-2814 |
| Ubuntu:24.04:LTS | libcrypt-cbc-perl | no fix listed | UBUNTU-CVE-2025-2814 |
| Ubuntu:25.10 | libcrypt-cbc-perl | no fix listed | UBUNTU-CVE-2025-2814 |
| Ubuntu:26.04:LTS | libcrypt-cbc-perl | no fix listed | UBUNTU-CVE-2025-2814 |
| Ubuntu:26.10 | libcrypt-cbc-perl | no fix listed | UBUNTU-CVE-2025-2814 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| LDS | Crypt::CBC | 1.21 – through 3.05 |
Weakness: CWE-338, CWE-329, CWE-331 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L