CVEvulnerability
CVE-2025-2814
4.0 MEDIUM
Official page ↗
- Status
- Deferred
- Published
- 2025-04-13
- Last modified
- 2026-06-17
- Assigner
- 9b29abf9-4ab0-4765-b253-1875cd9b441e
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 4.0 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- Weaknesses
- CWE-329, CWE-331, CWE-338
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
References
- https://github.com/lstein/Lib-Crypt-CBC/commit/37111f7cd894bcec46156ba7f40a49c126ebf535.patch github.com
- https://metacpan.org/dist/Crypt-CBC/source/lib/Crypt/CBC.pm#L777 metacpan.org
- https://perldoc.perl.org/functions/rand perldoc.perl.org
- https://security.metacpan.org/docs/guides/random-data-for-security.html security.metacpan.org