{"id":"CVE-2026-22700","published":"2026-01-10T05:17:25Z","modified":"2026-01-12T14:46:46Z","title":"RustCrypto Has Insufficient Length Validation in decrypt() in SM2-PKE","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 public-key encryption (PKE) implementation: the decrypt() path performs unchecked slice::split_at operations on input buffers derived from untrusted ciphertext. An attacker can submit short/undersized ciphertext or carefully-crafted DER-encoded structures to trigger bounds-check panics (Rust unwinding) which crash the calling thread or process. This issue has been patched via commit e60e991.","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.00312,"percentile":0.24702,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-j9xq-69pf-pcm8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RustCrypto/elliptic-curves/pull/1603","tags":["x_refsource_MISC"]},{"url":"https://github.com/RustCrypto/elliptic-curves/commit/e60e99167a9a2b187ebe80c994c5204b0fdaf4ab","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":4.94},{"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:46:42.360189Z","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-j9xq-69pf-pcm8"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-1874","exploited":false,"provenance":"source"}}