CVE-2026-22699 Details
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.
A denial-of-service vulnerability has been identified in the SM2 Public Key Encryption (PKE) decryption process of the RustCrypto Elliptic Curves library, specifically in versions 0.14.0-pre.0 and 0.14.0-rc.0. The issue arises when an invalid elliptic curve point (C1) is decoded and the resulting value is unwrapped without proper validation. Although the coordinates may be syntactically correct, they can fail to lie on the SM2 curve, leading to a panic when the code attempts to unwrap the result. This vulnerability can be exploited by crafting a ciphertext that includes an invalid C1 point, causing the decryption process to crash.
Users can update to the patched version of the library, which is available in the official GitHub repository. The patch replaces the `unwrap()` call with proper error handling, ensuring that invalid points are managed gracefully without causing a panic.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/RustCrypto/elliptic-curves/commit/085b7bee647029bd189e1375203418205006bcab | [email protected] | Patch |
| https://github.com/RustCrypto/elliptic-curves/pull/1602 | [email protected] | Issue TrackingPatch |
| https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| rustcrypto sm2 elliptic curve | 0.14.0 pre0 0.14.0 rc0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 22, 2026 | Initial Analysis | [email protected] |
| Jan 12, 2026 | CVE Modified | CISA-ADP |
| Jan 10, 2026 | New CVE Received | [email protected] |