LiveActive security incident?Get immediate response
CVE Record

CVE-2026-22698: RustCrypto SM2-PKE has 32-bit Biased Nonce Vulnerability

RustCrypto: Elliptic Curves is general purpose Elliptic Curve Cryptography (ECC) support, including types and traits for representing various elliptic curve forms, scalars, points, and public/secret keys composed thereof. In versions 0.14.0-pre.0 and 0.14.0-rc.0, a critical vulnerability exists in the SM2 Public Key Encryption (PKE) implementation where the ephemeral nonce k is generated with severely reduced entropy. A unit mismatch error causes the nonce generation function to request only 32 bits of randomness instead of the expected 256 bits. This reduces the security of the encryption from a 128-bit level to a trivial 16-bit level, allowing a practical attack to recover the nonce k and decrypt any ciphertext given only the public key and ciphertext. This issue has been patched via commit e4f7778.

HighCVSS 8.7Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2026-22698 weakens encryption in RustCrypto SM2-PKE pre-release packages. A coding mistake makes encryption use far too little randomness, so protected messages may be decryptable from the public key and ciphertext. This matters mainly if your software uses the affected SM2 Rust crate versions.

Executive priority

Prioritize quickly if your products use RustCrypto SM2-PKE. The flaw directly undermines confidentiality, but scope appears narrow to two pre-release crate versions. If not in use, document non-exposure and monitor vendor guidance.

Technical view

RustCrypto elliptic-curves SM2-PKE versions 0.14.0-pre.0 and 0.14.0-rc.0 generate an ephemeral nonce with 32 bits of randomness instead of 256 bits. The advisory describes this as reducing effective security to a practical level for ciphertext decryption. CWE-331 applies. The issue is reported patched in commit e4f7778.

Likely exposure

Exposure is limited to applications or services that depend on RustCrypto SM2-PKE through sm2 0.14.0-pre.0 or 0.14.0-rc.0. Stable versions are not listed as affected in the provided sources.

Exploitation context

The CVSS vector indicates network attackability, low complexity, no privileges, and no user interaction. The source bundle does not cite active exploitation, and KEV is false. Impact is confidentiality-focused: ciphertext confidentiality may fail where affected SM2-PKE encryption was used.

Researcher notes

Focus review on SM2-PKE encryption paths and dependency provenance. The core issue is entropy under-request during nonce generation. Sources name commit e4f7778 as the patch; avoid assuming a fixed crate release unless confirmed by RustCrypto or crates.io.

Mitigation direction

  • Inventory Rust projects for sm2 0.14.0-pre.0 or 0.14.0-rc.0 dependencies.
  • Move off affected pre-release or release-candidate versions per RustCrypto guidance.
  • If pinning source, ensure the fix from commit e4f7778 is included.
  • Re-encrypt sensitive data protected with affected versions where business impact warrants it.

Validation and detection

  • Review Cargo.lock and dependency manifests for affected sm2 versions.
  • Check transitive dependencies with your standard Rust dependency audit tooling.
  • Confirm builds use a version or source revision containing the patched nonce fix.
  • Identify data encrypted during the affected version deployment window.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-331: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-22698 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.7 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
7Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.7CVSS 4.0HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

8.7High
CVSS 4.0 vector shape for CVE-2026-22698Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
RustCryptoelliptic-curves= 0.14.0-pre.0, = 0.14.0-rc.0Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-331 · source CWE mapping

Insufficient Entropy

Insufficient Entropy represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.