CVE-2026-23966 PUBLISHED

sm-crypto Affected by Private Key Recovery in SM2-PKE

Assigner: GitHub_M
Reserved: 19.01.2026 Published: 22.01.2026 Updated: 22.01.2026

sm-crypto provides JavaScript implementations of the Chinese cryptographic algorithms SM2, SM3, and SM4. A private key recovery vulnerability exists in the SM2 decryption logic of sm-crypto prior to version 0.3.14. By interacting with the SM2 decryption interface multiple times, an attacker can fully recover the private key within approximately several hundred interactions. Version 0.3.14 patches the issue.

Metrics

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

Product Status

Vendor JuneAndGreen
Product sm-crypto
Versions
  • Version < 0.3.14 is affected

References

Problem Types

  • CWE-345: Insufficient Verification of Data Authenticity CWE