{"id":"CVE-2026-14570","state":"PUBLISHED","title":"Crypt::DSA versions before 1.22 for Perl draw the DSA signing nonce and private key from a biased random generator, leading to private-key recovery","description":"Crypt::DSA versions before 1.22 for Perl draw the DSA signing nonce and private key from a biased random generator, leading to private-key recovery.\n\n\"Crypt::DSA::Util::makerandom forces the high bit of every value it returns to obtain an exactly N-bit integer for prime search. The signing nonce and the private key are drawn from makerandom. Because the high bit is always set, the result is not uniform: its top bit is fixed, producing insecure values.\"\n\nAn attacker who collects a modest number of signatures under an affected key, together with the public key, can recover the private key with a lattice attack.\n\nKeys used to sign with an affected version should be considered compromised and new keys should be generated.","publishedAt":"2026-07-05T01:30:12.849Z","updatedAt":"2026-07-06T13:42:11.715Z","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":["TIMLEGGE Crypt::DSA"],"affected":[{"vendor":"TIMLEGGE","product":"Crypt::DSA","packageName":"Crypt-DSA","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.22","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Crypt/DSA/Util.pm","lib/Crypt/DSA.pm","lib/Crypt/DSA/KeyChain.pm"],"programRoutines":[{"name":"Crypt::DSA::Util::makerandom"},{"name":"Crypt::DSA::sign"},{"name":"Crypt::DSA::KeyChain::generate_keys"}],"repo":"https://github.com/perl-Crypt-OpenPGP/Crypt-DSA"}],"references":["https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.21/source/lib/Crypt/DSA/Util.pm#L56","https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.22/diff/TIMLEGGE/Crypt-DSA-1.21#lib/Crypt/DSA/Util.pm","https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.22/changes","http://www.openwall.com/lists/oss-security/2026/07/05/1"],"weaknesses":["CWE-330"],"ingestedAt":"2026-10-29T20:11:00.674Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/14xxx/CVE-2026-14570.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-14570","state":"PUBLISHED","datePublished":"2026-07-05T01:30:12.849Z","dateUpdated":"2026-07-06T13:42:11.715Z","assignerShortName":"CPANSec","assignerOrgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateReserved":"2026-07-03T10:37:19.787Z"},"containers":{"cna":{"title":"Crypt::DSA versions before 1.22 for Perl draw the DSA signing nonce and private key from a biased random generator, leading to private-key recovery","descriptions":[{"lang":"en","value":"Crypt::DSA versions before 1.22 for Perl draw the DSA signing nonce and private key from a biased random generator, leading to private-key recovery.\n\n\"Crypt::DSA::Util::makerandom forces the high bit of every value it returns to obtain an exactly N-bit integer for prime search. The signing nonce and the private key are drawn from makerandom. Because the high bit is always set, the result is not uniform: its top bit is fixed, producing insecure values.\"\n\nAn attacker who collects a modest number of signatures under an affected key, together with the public key, can recover the private key with a lattice attack.\n\nKeys used to sign with an affected version should be considered compromised and new keys should be generated."}],"affected":[{"vendor":"TIMLEGGE","product":"Crypt::DSA","packageName":"Crypt-DSA","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.22","versionType":"custom"}],"collectionURL":"https://cpan.org/modules","programFiles":["lib/Crypt/DSA/Util.pm","lib/Crypt/DSA.pm","lib/Crypt/DSA/KeyChain.pm"],"programRoutines":[{"name":"Crypt::DSA::Util::makerandom"},{"name":"Crypt::DSA::sign"},{"name":"Crypt::DSA::KeyChain::generate_keys"}],"repo":"https://github.com/perl-Crypt-OpenPGP/Crypt-DSA"}],"references":[{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.21/source/lib/Crypt/DSA/Util.pm#L56"},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.22/diff/TIMLEGGE/Crypt-DSA-1.21#lib/Crypt/DSA/Util.pm"},{"url":"https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.22/changes","tags":["release-notes"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-330","description":"CWE-330 Use of Insufficiently Random Values","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"CPANSec","orgId":"9b29abf9-4ab0-4765-b253-1875cd9b441e","dateUpdated":"2026-07-05T01:30:12.849Z"},"solutions":[{"lang":"en","value":"Upgrade to version 1.22 or later, which draws the nonce and private key uniformly via rejection sampling (Crypt::DSA::Util::randombelow) with no forced high bit.\n\nRevoke and regenerate any keys used to sign with an affected version.\n\nCrypt::DSA was deprecated in version 1.20. You should migrate to another solution."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"cpansec-cna-tool 0.1"}},"adp":[{"title":"CVE Program Container","references":[{"url":"http://www.openwall.com/lists/oss-security/2026/07/05/1"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2026-07-05T05:19:58.316Z"}},{"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-07-06T13:41:52.097549Z","id":"CVE-2026-14570","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-07-06T13:42:11.715Z"}}]}}}