CVE-2026-22698: RustCrypto Elliptic Curves - Weak Cryptography
- Cve: CVE-2026-22698
- Name: RustCrypto Elliptic Curves - Weak Cryptography
- 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.
- Impact: Attackers can recover ephemeral nonce and decrypt ciphertext, breaking encryption confidentiality.
- Remediation: Update to a version including commit e4f7778 or later.
- Vulnerability type: weak_cryptography
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00274
- Epss percentile: 0.20055
- Assignee: [email protected]
- Published at: 2026-01-10T06:15:52Z
- Age in days: 318
- Modified at: 2026-06-17T10:20:15Z
- Patch available: yes
- Public exploits total: 1
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-22698
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-331 | Insufficient Entropy |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-w3g8-fp6j-wvqw | nvd | 2026-01-10 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| rustcrypto:sm2_elliptic_curve | = 0.14.0 pre0, = 0.14.0 rc0 | no | nvd | /v1/products/rustcrypto/sm2_elliptic_curve |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rustcrypto/elliptic-curves | commit, fix, package, pull, security_advisory | yes | /v1/repositories/rustcrypto/elliptic-curves |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-01-10
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts