Skip to main content
← All vulnerabilities
CVE-2026-23966GHSA-PGX9-497M-6C4V

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • JuneAndGreen sm-crypto

    fixed in 0.3.14

  • sm-cryptonpm

    fixed in 0.3.14

References 2

GitHub · JuneAndGreen/sm-crypto