GHSA-88g7-87jg-w4q9
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify application using Crypt::DSA for signing
-
DeliveryCollect two or more DSA signatures from the same key
-
ExploitConfirm identical r values confirming nonce reuse
-
ExecutionApply algebraic nonce-recovery formula to derive private key
-
PersistForge arbitrary signatures with recovered key
-
ImpactImpersonate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
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.
Primary rating from Vendor (CNA).
CVSS VectorVendor
Lifecycle Timeline
1Description PRE-NVD
Executive ViewAI
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
EUVD-2026-37016
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB