Home

Description

Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts. The _make_salt and _make_salt_bcrypt methods will attept to load Crypt::URandom and then Bytes::Random::Secure to generate random bytes for the salt. If those modules are unavailable, it will simply return 16 bytes generated with Perl's built-in rand function. The rand function is unsuitable for cryptographic use. These salts are used for password hashing.

PUBLISHED Reserved 2026-03-28 | Published 2026-04-15 | Updated 2026-05-01 | Assigner CPANSec

Problem types

CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator

Product status

Default status
unaffected

Any version
affected

References

www.openwall.com/lists/oss-security/2026/04/15/4

www.openwall.com/lists/oss-security/2026/04/15/5

metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes release-notes

metacpan.org/...API-v0.5.2/view/lib/Apache2/API/Password.pod related

security.metacpan.org/...uides/random-data-for-security.html technical-description

metacpan.org/pod/Crypt::URandom

cve.org (CVE-2026-5088)

nvd.nist.gov (CVE-2026-5088)

Download JSON