Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. sm2
  4. ›
  5. CVE-2026-22700

CVE-2026-22700: RustCrypto Has Insufficient Length Validation in decrypt() in SM2-PKE

January 13, 2026

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.

References

  • github.com/RustCrypto/elliptic-curves
  • github.com/RustCrypto/elliptic-curves/commit/e60e99167a9a2b187ebe80c994c5204b0fdaf4ab
  • github.com/RustCrypto/elliptic-curves/pull/1603
  • github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-j9xq-69pf-pcm8
  • github.com/advisories/GHSA-j9xq-69pf-pcm8
  • nvd.nist.gov/vuln/detail/CVE-2026-22700

Code Behaviors & Features

Detect and mitigate CVE-2026-22700 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.14.0-pre.0 up to 0.14.0-rc.4

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

cargo/sm2/CVE-2026-22700.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:07 +0000.