Skip to main content

Crypt::DSA EUVDEUVD-2026-37016

| CVE-2026-12205 CRITICAL
Reusing a Nonce, Key Pair in Encryption (CWE-323)
9.1
CVSS 3.1 · Vendor
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify application using Crypt::DSA for signing
  2. Delivery
    Collect two or more DSA signatures from the same key
  3. Exploit
    Confirm identical r values confirming nonce reuse
  4. Execution
    Apply algebraic nonce-recovery formula to derive private key
  5. Persist
    Forge arbitrary signatures with recovered key
  6. Impact
    Impersonate signing identity or undermine PKI trust

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Nonce/key pair uniqueness
Exploitation Conditions

Exploitation requires that a Crypt::DSA Key object be used to call sign() at least twice within the same process lifetime without being reconstructed between calls - this is the condition that triggers nonce reuse and produces two signatures with identical r values. The attacker must also be able to observe both resulting signatures (i.e., the application must expose DSA signatures externally). Exploitation is limited by the following factors: if the Key object is re-instantiated (loaded from disk or regenerated) before each signing operation, the nonce is fresh and the vulnerability is not triggered; applications that perform only a single sign() per Key object lifetime are not exploitable. Authentication requirements cannot be confirmed from available data (no CVSS PR metric is provided in the source). No special network position is required beyond the ability to receive application-generated signatures. Keys used exclusively for verification (not signing) are unaffected.

Impact

No NVD-assigned CVSS vector is available, so risk signals are limited to the advisory text, CWE classification, and independent metric assessment. The mathematical severity is unambiguous: successful exploitation yields complete private-key recovery, which is a maximum-impact cryptographic failure. That said, real-world exploitability is bounded by a meaningful prerequisite: the attacker must be able to observe at least two distinct DSA signatures produced by the same Key object in the same process lifetime, and the signing application must expose those signatures to outside parties. If the Crypt::DSA Key object is reconstructed between signing operations (e.g., loaded fresh from disk each time), the nonce is re-randomized and the vulnerability is not triggered. No CISA KEV listing exists, no public proof-of-concept code has been identified, and no EPSS data was provided. Despite the absence of active exploitation signals, any deployment where a Key object is reused across multiple sign() calls in an affected version should treat the affected private key as fully compromised - the attack is deterministic and requires only algebra, not brute force. The fact that Crypt::DSA was already deprecated in version 1.20 suggests a small and shrinking installed base, which limits aggregate exposure but makes remaining users a higher-risk population (unlikely to be following security updates).

Exploit ScenarioDerived

An attacker monitors the DSA-signed outputs of a Perl application that uses Crypt::DSA - for example, signed API responses, signed software packages, or authentication tokens. After collecting any two signatures produced by the same key (identifiable by matching r values in the signature pairs), the attacker applies the standard two-signature nonce-recovery formula to algebraically derive the private key in milliseconds. With the recovered key, the attacker can forge signatures for arbitrary messages, impersonate the signing identity, and undermine any trust anchored to that key. No public proof-of-concept code has been identified at time of analysis, but the math is well-documented in cryptographic literature and requires no special tooling.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

Private-key recovery is possible in Crypt::DSA for Perl (all versions before 1.21) because the module caches the per-signature DSA nonce (k) inside the Key object and never clears it, causing every call to sign() after the first to reuse the identical nonce and produce signatures with matching r values. Any attacker who can observe two or more DSA signatures produced by the same Key object can apply well-known algebraic techniques to recover the private key entirely, after which they can forge arbitrary signatures. No public exploit code has been identified at time of analysis and CISA KEV listing is absent, but the cryptographic impact is catastrophic: all keys used to sign more than once under an affected version must be treated as fully compromised.

RemediationAI

Vendor-released patch: Crypt-DSA 1.21, available on CPAN and documented in the changelog at https://metacpan.org/release/TIMLEGGE/Crypt-DSA-1.21/changes. Upgrade immediately via cpanm Crypt::DSA or the equivalent CPAN client. Because the module was already marked deprecated in version 1.20, the advisory strongly recommends migrating away from Crypt::DSA entirely to an actively maintained cryptographic library (such as Crypt::OpenSSL::DSA or a higher-level abstraction). Critically, any private key that was used to produce more than one signature via a Crypt::DSA Key object under an affected version must be treated as compromised: revoke those keys, generate fresh key material, and re-sign any artifacts (packages, certificates, tokens) that used the compromised keys. There is no runtime workaround that safely preserves the broken sign() path - the only correct compensating control prior to patching is to avoid invoking sign() more than once per Key object per process, which requires application-level code changes and carries implementation risk; patching to 1.21 is strongly preferred.

Affected VersionsENISA

Crypt::DSA 0 <1.21

Affected Packages

euvd crypt_dsa fix: 1.21

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

DSA (Digital Signature Algorithm, FIPS 186) mandates that each signature operation use a fresh, secret, uniformly random nonce k. The signature pair (r, s) is computed as r = (g^k mod p) mod q and s = k^{-1}(H(m) + x*r) mod q. If two signatures share the same k (evidenced by identical r values), an adversary holding both (r, s1, m1) and (r, s2, m2) can trivially solve the resulting two-equation system to recover the private key x: x = (s1 - s2)^{-1} * (s1*H(m2) - s2*H(m1)) mod q. The root cause in Crypt::DSA is CWE-323 (Reusing a Nonce, Key Pair in Encryption): the Crypt::DSA::sign() method stores nonce material in the Key object on first invocation and never clears or regenerates it, so every subsequent invocation on the same object silently reuses the cached value. The affected distribution is Crypt-DSA on CPAN (MetaCPAN: https://metacpan.org/dist/Crypt-DSA), and the flaw is visible in the 1.20 source at Crypt/DSA.pm line 47.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CNA) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

Network-observable signatures enable unauthenticated key recovery; AC:H because attacker must collect multiple signatures and perform cryptanalytic computation; full C/I impact from private key exposure and signature forgery.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Red Hat 7.1 HIGH

Primary rating from Vendor (CNA).

CVSS VectorVendor

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

1
Patch available
Jun 16, 2026 - 02:15 EUVD

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

Crypt::DSA for Perl versions before 1.21 contain a critical flaw in cryptographic nonce handling that enables attackers to recover private signing keys when the same key object signs multiple messages. Organizations using this library for API authentication, code signing, or digital signatures face complete compromise of their signing infrastructure and the ability to forge signatures. Immediate assessment and remediation required.

Business Impact: Severe
Compensating Controls

Upgrade to Crypt::DSA version 1.21 or later (not affected by this vulnerability). If upgrade is not immediately possible, cease using affected installations for signature operations. As interim protection: rotate all keys known to have signed multiple messages, implement signature verification logging to detect forged signatures, and conduct cryptographic key inventory and audit.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy