CVE-2026-23965CWE-347

sm-crypto Affected by Signature Forgery in SM2-DSA

High · published January 22, 2026

CVSS v3.1
7.5
EPSS
0%
Percentile
11.3
In the wild
Unconfirmed
What it is

⚡ A signature forgery vulnerability is lurking in sm-crypto, allowing attackers to forge valid signatures for any public key! This is a big deal, especially if you're using versions before 0.4.0. 🔥 Think of it like a restaurant where anyone can forge a reservation for a fancy table under a different name. As long as they know the right formatting, they can sit down and enjoy a meal that should be reserved for someone else! If exploited, an attacker could manipulate the cryptographic signatures and impersonate other users or services, potentially leading to unauthorized access or even data breaches. This could undermine trust in the system, making it absolutely devastating for any application relying on these cryptographic guarantees!

Put simply

Think of it like a restaurant where anyone can forge a reservation for a fancy table under a different name. As long as they know the right formatting, they can sit down and enjoy a meal that should be reserved for someone else! The vulnerability exists in the SM2 signature verification logic, which mistakenly allows for the creation of valid signatures by attackers. This happens under default configurations, enabling them to craft signatures for arbitrary public keys, effectively bypassing security measures.

What to do

If exploited, an attacker could manipulate the cryptographic signatures and impersonate other users or services, potentially leading to unauthorized access or even data breaches. This could undermine trust in the system, making it absolutely devastating for any application relying on these cryptographic guarantees! To mitigate this risk, upgrade sm-crypto to version 0.4.0 or later immediately. Ensure to review your application's reliance on this library and test for any potential impacts of the update. Don't forget to implement proper input validation to reinforce security further! You’ve got this! Follow these steps and you’ll be back to secure in no time! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00215 · 11.3th percentile
Weakness
CWE-347 · Improper Verification of Cryptographic Signature
Published
2026-01-22T02:05Z
EPSS history
Timeline
  • 22 JAN 02:05Z
    sm-crypto Affected by Signature Forgery in SM2-DSA
    cvelistv5