# CVE-2026-22700: RustCrypto Has Insufficient Length Validation in decrypt() in SM2-PKE

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-10T05:17:25.583Z
- Modified: 2026-06-17T10:20:15.560Z
- Also known as: GHSA-j9xq-69pf-pcm8
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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 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.

(As written by CVE List.)

## Affected

- RustCrypto elliptic-curves: = 0.14.0-pre.0; = 0.14.0-rc.0
- sm2 (crates.io): from 0.14.0-pre.0 up to 0.14.0-rc.4
- rustcrypto sm2_elliptic_curve: 0.14.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-j9xq-69pf-pcm8> (exploit, vendor-advisory, web)
- <https://github.com/RustCrypto/elliptic-curves/pull/1603> (patch, web)
- <https://github.com/RustCrypto/elliptic-curves/commit/e60e99167a9a2b187ebe80c994c5204b0fdaf4ab> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22700> (advisory)
- <https://github.com/RustCrypto/elliptic-curves> (package)

## Sources

- CVE List: [CVE-2026-22700](https://www.cve.org/CVERecord?id=CVE-2026-22700), CVE Terms of Use, modified 2026-01-12
- GitHub Advisory Database: [GHSA-j9xq-69pf-pcm8](https://github.com/advisories/GHSA-j9xq-69pf-pcm8), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2026-22700](https://nvd.nist.gov/vuln/detail/CVE-2026-22700), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22700 · Whole record: https://cve.day/CVE-2026-22700.json · Rebuilt by cve.day 2026-11-25T22:59:12.718Z
