{"id":"CVE-2026-22699","published":"2026-01-10T05:17:22Z","modified":"2026-01-12T14:59:18Z","title":"RustCrypto SM2-PKE has Unchecked AffinePoint Decoding (unwrap) in decrypt()","vendor":"RustCrypto","product":"elliptic-curves","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00436,"percentile":0.38792,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RustCrypto/elliptic-curves/pull/1602","tags":["x_refsource_MISC"]},{"url":"https://github.com/RustCrypto/elliptic-curves/commit/085b7bee647029bd189e1375203418205006bcab","tags":["x_refsource_MISC"]}],"priority":{"score":13.0,"factors":[{"name":"EPSS percentile","points":7.76},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"rustcrypto","affectedVersions":[{"vendor":"RustCrypto","product":"elliptic-curves","versions":["= 0.14.0-pre.0","= 0.14.0-rc.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-01-12T14:59:15.477126Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"sm2","vulnerableRanges":[">=0.14.0-pre.0, <=0.14.0-rc.4"],"patched":[],"from":["GHSA-78p6-6878-8mj6"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-1875","exploited":false,"provenance":"source"}}