# CVE-2026-22699: RustCrypto SM2-PKE has Unchecked AffinePoint Decoding (unwrap) in decrypt()

- 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.44%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-09T22:35:35.000Z
- Modified: 2026-06-17T10:20:15.450Z
- Also known as: GHSA-78p6-6878-8mj6
- 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 PKE decryption path where an invalid elliptic-curve point (C1) is decoded and the resulting value is unwrapped without checking. Specifically, AffinePoint::from_encoded_point(&encoded_c1) may return a None/CtOption::None when the supplied coordinates are syntactically valid but do not lie on the SM2 curve. The calling code previously used .unwrap(), causing a panic when presented with such input. This issue has been patched via commit 085b7be.

(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-78p6-6878-8mj6> (exploit, vendor-advisory, web)
- <https://github.com/RustCrypto/elliptic-curves/pull/1602> (issue-tracking, patch, web)
- <https://github.com/RustCrypto/elliptic-curves/commit/085b7bee647029bd189e1375203418205006bcab> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22699> (advisory)
- <https://github.com/RustCrypto/elliptic-curves> (package)

## Sources

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

---

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