PT-2026-2248 · Unknown · Rust-Crypto
Xlabaiteam
·
Published
2026-01-09
·
Updated
2026-03-12
·
CVE-2026-22698
CVSS v4.0
8.7
High
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
RustCrypto versions 0.14.0-pre.0 through 0.14.0-rc.0
Description
The Elliptic Curves library within RustCrypto, a general-purpose Elliptic Curve Cryptography (ECC) implementation, contains a flaw in its SM2 Public Key Encryption (PKE) implementation. The issue stems from reduced entropy during ephemeral nonce (k) generation, caused by a unit mismatch error requesting only 32 bits of randomness instead of the expected 256 bits. This significantly weakens the encryption, reducing its security from 128 bits to 16 bits, potentially allowing an attacker to recover the nonce and decrypt ciphertext given the public key and ciphertext.
Recommendations
Versions prior to 0.14.0-pre.0 and after 0.14.0-rc.0 should be used.
Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Rust-Crypto