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.
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-pgx9-497m-6c4v sm-crypto Affected by Private Key Recovery in SM2-PKE
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Thu, 22 Jan 2026 02:45:00 +0000

Type Values Removed Values Added
Description 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.
Title sm-crypto Affected by Private Key Recovery in SM2-PKE
Weaknesses CWE-345
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-01-22T15:49:07.259Z

Reserved: 2026-01-19T14:49:06.314Z

Link: CVE-2026-23966

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-01-22T03:15:47.007

Modified: 2026-01-22T03:15:47.007

Link: CVE-2026-23966

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses