CVE-2026-22699 json
RustCrypto SM2-PKE has Unchecked AffinePoint Decoding (unwrap) in decrypt()
published 2026-01-09 9 mo ago modified 2026-06-17 4 mo ago also GHSA-78p6-6878-8mj6 , EUVD-2026-1875
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 38%
- 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 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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 9 mo ago
Exploit prediction
0.44% chance of exploitation in the next 30 days, higher than 38% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6 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/1602
web, issue-tracking, patch
-
github.com
/RustCrypto/elliptic-curves/commit/085b7bee647029bd189e1375203418205006bcab
web, patch
-
github.com
/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6
exploit, web, vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-22699
advisory
-
github.com
/RustCrypto/elliptic-curves
package
Sources
- CVE List CVE-2026-22699
- GitHub Advisory GHSA-78p6-6878-8mj6
- NVD CVE-2026-22699
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.