CVE-2026-22698 in Rustcrypto Sm2 Elliptic Curve
RustCrypto: Elliptic Curves is general purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof. In versions 0.14.0-pre.0 and 0.14.0-rc.0, a critical vulnerability exists in the SM2 Public Ke...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Rustcrypto | Sm2 Elliptic Curve | 0.14.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
RustCrypto: Elliptic Curves is general purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof. In versions 0.14.0-pre.0 and 0.14.0-rc.0, a critical vulnerability exists in the SM2 Public Key Encryption (PKE) implementation where the ephemeral nonce k is generated with severely reduced entropy. A unit mismatch error causes the nonce generation function to request only 32 bits of randomness instead of the expected 256 bits. This reduces the security of the encryption from a 128-bit level to a trivial 16-bit level, allowing a practical attack to recover the nonce k and decrypt any ciphertext given only the public key and ciphertext. This issue has been patched via commit e4f7778.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-22698 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-277324-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2026-01-10 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-331: CWE-331
Related attack patterns (CAPEC)
CAPEC-59 Session Credential Falsification through Prediction via CWE-331
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A critical vulnerability exists in the SM2 Public Key Encryption (PKE) implementation of RustCrypto: Elliptic Curves in versions 0.14.0-pre.0 and 0.14.0-rc.0, where the ephemeral nonce k is generated with insufficient randomness, potentially allowing attackers to recover private keys.
The vulnerability arises from the predictable generation of the ephemeral nonce k, which is crucial for the security of the SM2 PKE. An attacker with access to multiple ciphertexts encrypted to the same public key could exploit this to recover the private key.
Questions
What is CVE-2026-22698?
A critical vulnerability exists in the SM2 Public Key Encryption (PKE) implementation of RustCrypto: Elliptic Curves in versions 0.14.0-pre.0 and 0.14.0-rc.0, where the ephemeral nonce k is generated with insufficient randomness, potentially allowing attackers to recover private keys.
What is the CVSS score for CVE-2026-22698?
CVE-2026-22698 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.4%.
Is CVE-2026-22698 actively exploited?
No confirmed active exploitation of CVE-2026-22698 as of 2026-09-25.
How do I remediate CVE-2026-22698?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2026-22698?
CVE-2026-22698 affects Rustcrypto Sm2 Elliptic Curve.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Rustcrypto","product":"Sm2 Elliptic Curve","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.