CVE-2026-22698: rustcrypto elliptic-curves Insufficient Entropy
Vulnerability summary
CVE-2026-22698 is a high (CVSS 8.7) Insufficient Entropy vulnerability in rustcrypto elliptic-curves. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 18.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 10-01-2026PublishedVulnerability first disclosed.
- 12-01-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · Crates.ioEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
19%
Versus all other CVEs
30-day change
+0.01 pp
From 0.27% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundElliptic Curves
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Rustcrypto2 products
- elliptic-curves= 0.14.0-pre.0 | = 0.14.0-rc.0
- sm2_elliptic_curve0.14.0:pre0 | 0.14.0:rc0
Crates.Io1 product
- sm2≥ 0.14.0-pre.0, ≤ 0.14.0-rc.4
2 vendors · 3 products
References
8 links- github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-w3g8-fp6j-wvqwX Refsource CONFIRMWEBExploitMitigationVendor Advisory
- github.com/RustCrypto/elliptic-curves/commit/4781762f23ff22ab34763410f648128055c93731X Refsource MISCWEBPatch
- github.com/RustCrypto/elliptic-curves/commit/e4f77788130d065d760e57fb109370827110a525X Refsource MISCWEBPatch