{"id":"CVE-2026-5088","state":"PUBLISHED","title":"Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts","description":"Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts.\n\nThe _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.\n\nThe rand function is unsuitable for cryptographic use.\n\nThese salts are used for password hashing.","publishedAt":"2026-04-15T07:03:13.742Z","updatedAt":"2026-05-01T16:03:43.825Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CISA-ADP"},"assigner":"CPANSec","products":["JDEGUEST Apache::API::Password"],"affected":[{"vendor":"JDEGUEST","product":"Apache::API::Password","packageName":"Apache2-API","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.5.2","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Apache2/API.pm"],"programRoutines":[{"name":"Apache2::API::Password::_make_salt"},{"name":"Apache2::API::Password::_make_salt_bcrypt"}],"repo":"https://gitlab.com/jackdeguest/Apache2-API"}],"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","http://www.openwall.com/lists/oss-security/2026/04/15/4","http://www.openwall.com/lists/oss-security/2026/04/15/5"],"weaknesses":["CWE-338"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/5xxx/CVE-2026-5088.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-5088","state":"PUBLISHED","datePublished":"2026-04-15T07:03:13.742Z","dateUpdated":"2026-05-01T16:03:43.825Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-03-28T19:31:47.729Z"},"containers":{"cna":{"title":"Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts","descriptions":[{"lang":"en","value":"Apache::API::Password versions through 0.5.2 for Perl can generate insecure random values for salts.\n\nThe _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.\n\nThe rand function is unsuitable for cryptographic use.\n\nThese salts are used for password hashing."}],"affected":[{"vendor":"JDEGUEST","product":"Apache::API::Password","packageName":"Apache2-API","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.5.2","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Apache2/API.pm"],"programRoutines":[{"name":"Apache2::API::Password::_make_salt"},{"name":"Apache2::API::Password::_make_salt_bcrypt"}],"repo":"https://gitlab.com/jackdeguest/Apache2-API"}],"references":[{"url":"https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes","tags":["release-notes"]},{"url":"https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.2/view/lib/Apache2/API/Password.pod","tags":["related"]},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","tags":["technical-description"]},{"url":"https://metacpan.org/pod/Crypt::URandom"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-05-01T16:03:43.825Z"},"solutions":[{"lang":"en","value":"Upgrade to version v0.5.3 or later, and install Crypt::URandom."}],"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"Install Crypt::URandom."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/04/15/4"},{"url":"http://www.openwall.com/lists/oss-security/2026/04/15/5"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-04-15T17:24:20.860Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.5,"attackVector":"NETWORK","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-04-16T11:59:31.300289Z","id":"CVE-2026-5088","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-16T12:05:32.095Z"}}]}}}