CVE-2026-32322
published medium CVSS 3.1 · 5.3soroban-sdk: `Fr` scalar field equality comparison bypasses modular reduction
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| stellar | — | rs-soroban-sdk>= 25.0.0, < 25.3.0 · >= 23.0.0, < 23.5.3 · < 22.0.11 | Affected | Not stated | GitHub_M |
Description
soroban-sdk is a Rust SDK for Soroban contracts. Prior to 22.0.11, 23.5.3, and 25.3.0, The Fr (scalar field) types for BN254 and BLS12-381 in soroban-sdk compared values using their raw U256 representation without first reducing modulo the field modulus r. This caused mathematically equal field elements to compare as not-equal when one or both values were unreduced (i.e., >= r). The vulnerability requires an attacker to supply crafted Fr values through contract inputs, and compare them directly without going through host-side arithmetic operations. Smart contracts that rely on Fr equality checks for security-critical logic could produce incorrect results. The impact depends on how the affected contract uses Fr equality comparisons, but can result in incorrect authorization decisions or validation bypasses in contracts that perform equality checks on user-supplied scalar values. This vulnerability is fixed in 22.0.11, 23.5.3, and 25.3.0.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| stellar | rs-soroban-sdk | >= 25.0.0, < 25.3.0 (affected)>= 23.0.0, < 23.5.3 (affected)< 22.0.11 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-697 CWE-697: Incorrect Comparison
References
1Provider assertions
2GitHub_M · cna
soroban-sdk: `Fr` scalar field equality comparison bypasses modular reduction
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d6e4e826d8835bbeb3807b975552909696ae6c67faae50edc17a3dfb9a6233ad
- Ingested
- 23 Sep 2026, 09:10:00 UTC
- Source record
- Official CVE record