CVE Catalog

CVE-2026-5088

High
Published: Translated: NVD NIST

Summary

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 attempt to load appropriate modules to generate random bytes, but if those are unavailable, they use the rand function, which is unsuitable for cryptographic use.

Risk Assessment

Using inadequate salt values can weaken password security, increasing the risk of password cracking by attackers.

Recommendation

It is recommended to upgrade to a newer version of Apache::API::Password that improves salt generation or to manually ensure the availability of appropriate cryptographic modules.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS