Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-73567— sm-crypto: Predictable SM2 key generation in Node.js: default RNG uses Math.random + wall clock

Quick assessment

Affected
JuneAndGreen sm-crypto
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

sm-crypto 提供了对中国密码算法 SM2、SM3 和 SM4 的 JavaScript 实现。在版本 0.5.0 之前,在 Node.js 环境中调用不带参数的 方法时,会使用 中提供的模块级 实例。该实例由依赖库 提供,由于即使 存在, 仍然不可用,因此该 实例会使用 和 来为 ARC4 流密码生成种子值。攻击者若能观测到进程的 输出,并能估算出密钥生成的时间,就可以重建种子值,进而恢复生成的 SM2 私钥,并预测用于生成签名的临时标量值,从而伪造签名。该问题已在 0.5.0 版本中修复。

CVSS 9.1 · Critical EPSS 0.44% · P37

Affected Version Matrix 1

VendorProduct Version RangeStatus
JuneAndGreen sm-crypto < 0.5.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-73567

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
sm-crypto: Predictable SM2 key generation in Node.js: default RNG uses Math.random + wall clock
Source: CVE Program / CVE List V5
Vulnerability Description
sm-crypto provides JavaScript implementations of the Chinese cryptographic algorithms SM2, SM3, and SM4. Prior to 0.5.0, the default no-argument sm2.generateKeyPairHex() path in Node.js uses the module-wide SecureRandom instance in src/sm2/utils.js, supplied by jsbn@1.1.0, which seeds an ARC4 stream from Math.random() and new Date().getTime() because window.crypto.getRandomValues is unavailable even though globalThis.crypto exists. An attacker who can observe the process's Math.random() outputs and estimate the key-generation time can reconstruct the seed, recover generated SM2 private keys, and predict signing ephemeral scalars used to forge signatures. This issue is fixed in version 0.5.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
使用具有密码学弱点缺陷的PRNG
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
JuneAndGreen sm-crypto < 0.5.0 -

II. Public POCs for CVE-2026-73567

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 9743 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-73567

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-73567 (1)

Vendor Advisories for CVE-2026-73567 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-73567

No comments yet


Leave a comment