{"api_version":"1","generated_at":"2026-04-15T21:30:48+00:00","cve":"CVE-2026-5088","urls":{"html":"https://cve.report/CVE-2026-5088","api":"https://cve.report/api/cve/CVE-2026-5088.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-5088","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-5088"},"summary":{"title":"Apache::API::Password versions through v0.5.2 for Perl can generate insecure random values for salts","description":"Apache::API::Password versions through v0.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.","state":"PUBLISHED","assigner":"CPANSec","published_at":"2026-04-15 08:16:16","updated_at":"2026-04-15 18:17:24"},"problem_types":["CWE-338","CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator"],"metrics":[],"references":[{"url":"https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.2/view/lib/Apache2/API/Password.pod","name":"https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.2/view/lib/Apache2/API/Password.pod","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html","name":"https://security.metacpan.org/docs/guides/random-data-for-security.html","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://metacpan.org/pod/Crypt::URandom","name":"https://metacpan.org/pod/Crypt::URandom","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes","name":"https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes","refsource":"9b29abf9-4ab0-4765-b253-1875cd9b441e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2026/04/15/4","name":"http://www.openwall.com/lists/oss-security/2026/04/15/4","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"http://www.openwall.com/lists/oss-security/2026/04/15/5","name":"http://www.openwall.com/lists/oss-security/2026/04/15/5","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-5088","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5088","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"JDEGUEST","product":"Apache::API::Password","version":"affected v0.5.2 custom","platforms":[]}],"timeline":[],"solutions":[{"source":"CNA","title":"","value":"Upgrade to version v0.5.3 or later, and install Crypt::URandom.","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","value":"Install Crypt::URandom.","time":"","lang":"en"}],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2026-04-15T17:24:20.860Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"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"}],"title":"CVE Program Container"}],"cna":{"affected":[{"collectionURL":"https://cpan.org/modules","defaultStatus":"unaffected","packageName":"Apache2-API","product":"Apache::API::Password","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","vendor":"JDEGUEST","versions":[{"lessThanOrEqual":"v0.5.2","status":"affected","version":"0","versionType":"custom"}]}],"descriptions":[{"lang":"en","value":"Apache::API::Password versions through v0.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."}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-04-15T07:03:13.742Z","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","shortName":"CPANSec"},"references":[{"tags":["release-notes"],"url":"https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.3/changes"},{"tags":["related"],"url":"https://metacpan.org/release/JDEGUEST/Apache2-API-v0.5.2/view/lib/Apache2/API/Password.pod"},{"tags":["technical-description"],"url":"https://security.metacpan.org/docs/guides/random-data-for-security.html"},{"url":"https://metacpan.org/pod/Crypt::URandom"}],"solutions":[{"lang":"en","value":"Upgrade to version v0.5.3 or later, and install Crypt::URandom."}],"source":{"discovery":"UNKNOWN"},"title":"Apache::API::Password versions through v0.5.2 for Perl can generate insecure random values for salts","workarounds":[{"lang":"en","value":"Install Crypt::URandom."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}}},"cveMetadata":{"assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","assignerShortName":"CPANSec","cveId":"CVE-2026-5088","datePublished":"2026-04-15T07:03:13.742Z","dateReserved":"2026-03-28T19:31:47.729Z","dateUpdated":"2026-04-15T17:24:20.860Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-04-15 08:16:16","lastModifiedDate":"2026-04-15 18:17:24","problem_types":["CWE-338","CWE-338 CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator"],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"5088","Ordinal":"1","Title":"Apache::API::Password versions through v0.5.2 for Perl can gener","CVE":"CVE-2026-5088","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"5088","Ordinal":"1","NoteData":"Apache::API::Password versions through v0.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.","Type":"Description","Title":"Apache::API::Password versions through v0.5.2 for Perl can gener"}]}}}