What’s Vulnerable › Vulnerabilities
CVE-2026-32322: soroban-sdk: `Fr` scalar field equality comparison bypasses modular reduction
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-03-13 · updated 2026-06-17
- Weakness: CWE-697
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.
Affected products
- stellar rs-soroban-sdk: before 22.0.11; from 23.0.0 before 23.5.3; from 25.0.0 before 25.3.0 — fixed in 22.0.11, 23.5.3, 25.3.0
How to fix
Upgrade to a fixed version: stellar rs-soroban-sdk 22.0.11, 23.5.3, 25.3.0. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-32322 or the next vulnerability affects your stack