CVE-2026-5088Apache::API::Password versions through 0.5.2 for Perl can generate insecure random…
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- JDEGUEST Apache::API::Password: affected: up to 0.5.2
Solution: Upgrade to version v0.5.3 or later, and install Crypt::URandom.
Workaround: Install Crypt::URandom.
Vendor advisories:
- https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes (release-notes)
References
- https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes
- https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.2/view/lib/Apache2/API/Password.pod
- https://security.metacpan.org/docs/guides/random-data-for-security.html
- https://metacpan.org/pod/Crypt::URandom
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.