Vulnerability · Published Mar 28, 2025 · Assigned by CPANSec

CVE-2025-1860Data::Entropy for Perl uses insecure rand() function for cryptographic functions

High 7.7

In plain English

A high-severity security flaw in Data::Entropy from ZEFRAM. 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 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.7High
Exploit odds (30 days)0.2%top 91.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Data::Entropy for Perl 0.007 and earlier use the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libdata-entropy-perl0.007-4+deb12u1DEBIAN-CVE-2025-1860
Debian:13libdata-entropy-perl0.008-1DEBIAN-CVE-2025-1860
Debian:14libdata-entropy-perl0.008-1DEBIAN-CVE-2025-1860
Ubuntu:22.04:LTSlibdata-entropy-perlno fix listedUBUNTU-CVE-2025-1860
Ubuntu:24.04:LTSlibdata-entropy-perlno fix listedUBUNTU-CVE-2025-1860
Ubuntu:25.10libdata-entropy-perlno fix listedUBUNTU-CVE-2025-1860
Ubuntu:26.04:LTSlibdata-entropy-perlno fix listedUBUNTU-CVE-2025-1860
Ubuntu:26.10libdata-entropy-perlno fix listedUBUNTU-CVE-2025-1860

Affected products (as reported)

VendorProductVersions
ZEFRAM Data::Entropy 0 – before 0.008

Weakness: CWE-338, CWE-331 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

References