7.5high
Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.58% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- CPANSec
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache2-API | up to 0.5.2 | CVE List |
| jdeguest apache::api::password | before 0.5.3 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Las versiones de Apache::API::Password hasta la 0.5.2 para Perl pueden generar valores aleatorios inseguros para las sales. Los métodos _make_salt y _make_salt_bcrypt intentarán cargar Crypt::URandom y luego Bytes::Random::Secure para generar bytes aleatorios para la sal. Si esos módulos no están disponibles, simplemente devolverá 16 bytes generados con la función rand incorporada de Perl. La función rand no es adecuada para uso criptográfico. Estas sales se utilizan para el hash de contraseñas.
References
| https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes | release-notes | |
| https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.2/view/lib/Apache2/API/Password.pod | product, related | |
| https://security.metacpan.org/docs/guides/random-data-for-security.html | product, technical-description | |
| https://metacpan.org/pod/Crypt::URandom | product | |
| http://www.openwall.com/lists/oss-security/2026/04/15/4 | mailing-list, third-party-advisory | |
| http://www.openwall.com/lists/oss-security/2026/04/15/5 | mailing-list, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-5088 changed 2026-05-01 | CVE Terms of Use |
| NVD | CVE-2026-5088 changed 2026-10-26 | Public domain |