CVE-2026-22698: RustCrypto elliptic-curves · Insufficient Entropy
Affects RustCrypto elliptic-curvesSource CVE Database V5
Not known to be exploited · CVSS 8.7 High.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 19% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RustCryptoelliptic-curves | Affected
| Fixed in– |
crates.iosm2pkg:cargo/sm2Other threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately identify and inventory all systems and applications using RustCrypto elliptic-curves versions 0.14.0-pre.0 or 0.14.0-rc.0, focusing on those employing SM2 encryption. The primary mitigation is to upgrade to the latest patched version of the RustCrypto elliptic-curves library where the nonce generation bug is fixed (commit e4f7778 or later). If upgrading is not immediately feasible, organizations should consider disabling or replacing SM2 encryption with alternative, secure cryptographic algorithms until patched versions can be deployed. Conduct thorough code and dependency audits to detect indirect usage of vulnerable versions via third-party libraries. Implement network monitoring to detect unusual cryptographic traffic patterns that may indicate exploitation attempts. Additionally, enforce strict cryptographic policy management to prevent deployment of vulnerable library versions in production. Finally, ensure that cryptographic keys and encrypted data potentially exposed by this vulnerability are rotated or re-encrypted after patching to mitigate risks from past exposures.
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.
References
- github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-w3g8-fp6j-wvqw (opens in a new tab)
- github.com/RustCrypto/elliptic-curves/pull/1600 (opens in a new tab)
- github.com/RustCrypto/elliptic-curves/commit/4781762f23ff22ab34763410f648128055c93731 (opens in a new tab)
- github.com/RustCrypto/elliptic-curves/commit/e4f77788130d065d760e57fb109370827110a525 (opens in a new tab)
- crates.io/crates/sm2/0.14.0-pre.0 (opens in a new tab)
- crates.io/crates/sm2/0.14.0-rc.0 (opens in a new tab)