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

CVE-2026-22699: SM2-PKE has Unchecked AffinePoint Decoding (unwrap) in decrypt()

January 9, 2026 (updated January 11, 2026)

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.

References

  • github.com/RustCrypto/elliptic-curves
  • github.com/RustCrypto/elliptic-curves/commit/085b7bee647029bd189e1375203418205006bcab
  • github.com/RustCrypto/elliptic-curves/pull/1602
  • github.com/RustCrypto/elliptic-curves/security/advisories/GHSA-78p6-6878-8mj6
  • github.com/advisories/GHSA-78p6-6878-8mj6
  • nvd.nist.gov/vuln/detail/CVE-2026-22699

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

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-22699.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 04 Feb 2026 00:36:19 +0000.