RustCrypto Has Insufficient Length Validation in decrypt() in SM2-PKE
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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 denial-of-service vulnerability exists in the SM2 public-key encryption (PKE) implementation: the decrypt() path performs unchecked slice::split_at operations on input buffers derived from untrusted ciphertext. An attacker can submit short/undersized ciphertext or carefully-crafted DER-encoded structures to trigger bounds-check panics (Rust unwinding) which crash the calling thread or process. This issue has been patched via commit e60e991.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| RustCrypto | elliptic-curves | = 0.14.0-pre.0; = 0.14.0-rc.0 | — | No fix listed | CNA |
| — | sm2 (crates.io) | 0.14.0-pre.0 – 0.14.0-rc.4 | — | No fix listed | GHSA-j9xq-69pf-pcm8 |
- elliptic-curves VendorRustCrypto Affected = 0.14.0-pre.0; = 0.14.0-rc.0 Fixed in — No fix listed CNA
- sm2 (crates.io) Vendor— Affected 0.14.0-pre.0 – 0.14.0-rc.4 Fixed in — No fix listed GHSA-j9xq-69pf-pcm8
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:rustcrypto:sm2_elliptic_curve:0.14.0:pre0:*:*:*:rust:*:* | 0.14.0 pre0 | Vulnerable | RustCrypto |
| cpe:2.3:a:rustcrypto:sm2_elliptic_curve:0.14.0:rc0:*:*:*:rust:*:* | 0.14.0 rc0 | Vulnerable | RustCrypto |
- cpe:2.3:a:rustcrypto:sm2_elliptic_curve:0.14.0:pre0:*:*:*:rust:*:* Versions 0.14.0 pre0 Vulnerable ·RustCrypto
- cpe:2.3:a:rustcrypto:sm2_elliptic_curve:0.14.0:rc0:*:*:*:rust:*:* Versions 0.14.0 rc0 Vulnerable ·RustCrypto
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-22700
- 2026-10-03 Alias added: GHSA-j9xq-69pf-pcm8
References
Patch 2
More RustCrypto Sm2 Elliptic Curve vulnerabilities
- TI-2026-18226 RustCrypto SM2-PKE has Unchecked AffinePoint Decoding (unwrap) in decrypt() CVSS 3.1HIGH 7.5
- TI-2026-18225 RustCrypto SM2-PKE has 32-bit Biased Nonce Vulnerability CVSS 4.0HIGH 8.7
Sources
- CVE-2026-22700 · CVE Program
- CVE-2026-22700 · NVD
- FIRST EPSS
- GHSA-j9xq-69pf-pcm8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences