# CVE-2026-5088: Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-04-15T07:03:13.742Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-338
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Apache2-API: up to 0.5.2
- jdeguest apache::api::password: before 0.5.3

## 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

- CVE List: [CVE-2026-5088](https://www.cve.org/CVERecord?id=CVE-2026-5088), CVE Terms of Use, modified 2026-05-01
- NVD: [CVE-2026-5088](https://nvd.nist.gov/vuln/detail/CVE-2026-5088), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-5088 · Whole record: https://cve.day/CVE-2026-5088.json · Rebuilt by cve.day 2026-11-25T22:59:18.819Z
