Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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. "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." An 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. Keys used to sign with an affected version should be considered compromised and new keys should be generated.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-14570
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 14:09 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 5 Jul 2026, 01:30 UTC

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. "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." An 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. Keys used to sign with an affected version should be considered compromised and new keys should be generated.

osv:CVE-2026-14570
Complete source record
{
  "id": "83fe6419b084e10928c4d06125275c4eadca85a6cb3ef353e7a7f9ca976e1c65",
  "url": "https://osv.dev/vulnerability/CVE-2026-14570",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "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",
    "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. \"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.\" An 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. Keys used to sign with an affected version should be considered compromised and new keys should be generated.",
    "evidence": "osv:CVE-2026-14570",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-14570",
      "aliases": [
        "CVE-2026-14570"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/perl-crypt-openpgp/crypt-dsa",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "38e17c7bf063b6a499084fbe477efbf788df8ecc"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.22"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "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"
          }
        }
      ],
      "modified": "2026-10-28T02:30:35.943665116Z",
      "provider": "osv",
      "references": [
        "https://cpan.org/modules",
        "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://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14570.json",
        "https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.22/changes",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-14570",
        "https://github.com/perl-Crypt-OpenPGP/Crypt-DSA"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-330"
        ],
        "cna_assigner": "CPANSec",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/14xxx/CVE-2026-14570.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-14570",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 503459,
  "published_at": "2026-07-05T01:30:12.849+00:00"
}