{"id":"CVE-2026-16235","state":"PUBLISHED","title":"Crypt::Password versions through 0.28 for Perl generate insecure random values for salts","description":"Crypt::Password versions through 0.28 for Perl generate insecure random values for salts.\n\nThese versions use the built-in rand function, which is predictable and unsuitable for cryptography.","publishedAt":"2026-07-20T07:02:11.216Z","updatedAt":"2026-07-20T18:38:12.633Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"CPANSec","products":["DRSTEVE Crypt::Password"],"affected":[{"vendor":"DRSTEVE","product":"Crypt::Password","packageName":"Crypt-Password","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.28","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Crypt/Password.pm"],"programRoutines":[{"name":"Crypt::Password::_invent_salt"}]}],"references":["https://metacpan.org/release/DRSTEVE/Crypt-Password-0.28/source/lib/Crypt/Password.pm#L306-309","http://www.openwall.com/lists/oss-security/2026/07/20/3"],"weaknesses":["CWE-338"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/16xxx/CVE-2026-16235.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-16235","state":"PUBLISHED","datePublished":"2026-07-20T07:02:11.216Z","dateUpdated":"2026-07-20T18:38:12.633Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-07-19T15:48:13.976Z"},"containers":{"cna":{"title":"Crypt::Password versions through 0.28 for Perl generate insecure random values for salts","descriptions":[{"lang":"en","value":"Crypt::Password versions through 0.28 for Perl generate insecure random values for salts.\n\nThese versions use the built-in rand function, which is predictable and unsuitable for cryptography."}],"affected":[{"vendor":"DRSTEVE","product":"Crypt::Password","packageName":"Crypt-Password","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.28","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Crypt/Password.pm"],"programRoutines":[{"name":"Crypt::Password::_invent_salt"}]}],"references":[{"url":"https://metacpan.org/release/DRSTEVE/Crypt-Password-0.28/source/lib/Crypt/Password.pm#L306-309"}],"problemTypes":[{"descriptions":[{"cweId":"CWE-338","description":"CWE-338 Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-07-20T07:02:11.216Z"},"source":{"discovery":"UNKNOWN"},"workarounds":[{"lang":"en","value":"Users can generate a salt manually using a module such as Crypt::URandom::Token, and pass the salt directly to the password and crypt_password methods.\n\nThis module has not been updated since 2012.\n\nUsers should migrate to an alternative solution."}],"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.8,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2026-07-20T13:08:26.739469Z","id":"CVE-2026-16235","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-20T13:08:50.487Z"}},{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/07/20/3"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-20T18:38:12.633Z"}}]}}}