{"id":"CVE-2026-14570","summary":"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","details":"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.","modified":"2026-07-08T08:04:54.810381086Z","published":"2026-07-05T01:30:12.849Z","database_specific":{"cwe_ids":["CWE-330"],"cna_assigner":"CPANSec","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14570.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/07/05/1"},{"type":"WEB","url":"https://cpan.org/modules"},{"type":"WEB","url":"https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.21/source/lib/Crypt/DSA/Util.pm#L56"},{"type":"WEB","url":"https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.22/diff/TIMLEGGE/Crypt-DSA-1.21#lib/Crypt/DSA/Util.pm"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14570.json"},{"type":"ADVISORY","url":"https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.22/changes"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-14570"},{"type":"PACKAGE","url":"https://github.com/perl-Crypt-OpenPGP/Crypt-DSA"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/perl-crypt-openpgp/crypt-dsa","events":[{"introduced":"0"},{"fixed":"38e17c7bf063b6a499084fbe477efbf788df8ecc"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"1.22"}],"source":"AFFECTED_FIELD"}}],"versions":["1.21","1.20","1.19","1.18","1.17"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-14570.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}