{
  "id": "CVE-2026-22700",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-22700",
  "published_at": "2026-01-10T05:17:25.583Z",
  "title": "RustCrypto Has Insufficient Length Validation in decrypt() in SM2-PKE",
  "vendor": "RustCrypto",
  "product": "elliptic-curves",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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 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.",
  "cwe": "CWE-20",
  "cpes": [
    "cpe:2.3:a:rustcrypto:sm2_elliptic_curve:0.14.0:pre0:*:*:*:rust:*:*",
    "cpe:2.3:a:rustcrypto:sm2_elliptic_curve:0.14.0:rc0:*:*:*:rust:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "RustCrypto",
        "product": "elliptic-curves",
        "ranges": [
          "= 0.14.0-pre.0",
          "= 0.14.0-rc.0"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "sm2",
        "ranges": [
          "\u003e= 0.14.0-pre.0, \u003c= 0.14.0-rc.4"
        ],
        "fixed_in": null,
        "ecosystem": "crates.io",
        "advisory": "GHSA-j9xq-69pf-pcm8"
      }
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-j9xq-69pf-pcm8"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/RustCrypto/elliptic-curves/pull/1603"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/RustCrypto/elliptic-curves/commit/e60e99167a9a2b187ebe80c994c5204b0fdaf4ab"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
