CVE-2026-22700 json
RustCrypto Has Insufficient Length Validation in decrypt() in SM2-PKE
published 2026-01-10 9 mo ago modified 2026-06-17 4 mo ago also GHSA-j9xq-69pf-pcm8 , EUVD-2026-1874
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 24%
- public exploits
- 0
- none known
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 9 mo ago
Exploit prediction
0.31% chance of exploitation in the next 30 days, higher than 24% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-j9xq-69pf-pcm8 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | sm2 | >=0.14.0-pre.0, <=0.14.0-rc.4 |
no fix listed |
Affected products
- RustCrypto elliptic-curves
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/RustCrypto/elliptic-curves/pull/1603
web, patch
-
github.com
/RustCrypto/elliptic-curves/commit/e60e99167a9a2b187ebe80c994c5204b0fdaf4ab
web, patch
-
github.com
/RustCrypto/elliptic-curves/security/advisories/GHSA-j9xq-69pf-pcm8
exploit, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-22700
advisory
-
github.com
/RustCrypto/elliptic-curves
package
Sources
- CVE List CVE-2026-22700
- GitHub Advisory GHSA-j9xq-69pf-pcm8
- NVD CVE-2026-22700
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.