Skip to main content
CVE-2026-22698VulnerabilityPublished Updated

CVE-2026-22698: RustCrypto elliptic-curves · Insufficient Entropy

Affects RustCrypto elliptic-curvesSource CVE Database V5

0

Not known to be exploited · CVSS 8.7 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
RustCryptoelliptic-curvesAffected
  • =0.14.0-pre.0
  • =0.14.0-rc.0
Fixed in–
crates.iosm2pkg:cargo/sm2Other threatsAffected
  • =0.14.0-pre.0
  • =0.14.0-rc.0
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

Community reviews

Loading reviews…