CVE-2026-22699 RustCrypto SM2-PKE has Unchecked AffinePoint Decoding (unwrap) in decrypt()
An attacker can cause a denial of service in RustCrypto SM2 decryption by providing invalid elliptic curve points that trigger an unchecked panic.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-22699?
CVE-2026-22699 is a high-severity denial of service vulnerability in RustCrypto elliptic-curves, published on 10 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-20
Which versions are affected by CVE-2026-22699?
2 open source packages ship an affected version, including sm2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
sm2 crates.io | From 0.14.0-pre.0 to 0.14.0-rc.4 | None |
sm2 crates.io | From 0.14.0-pre.0 to 0.14.0-rc.4 | None |
Products include Rustcrypto Sm2 Elliptic Curve.
How do I fix CVE-2026-22699?
No fix has been published for CVE-2026-22699 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-22699 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22699 exists.
Other vulnerabilities in RustCrypto elliptic-curves
Sources
Also known as GHSA-78p6-6878-8mj6.