{"cve":"CVE-2026-32322","nvd":{"published":"2026-03-13T19:54:42.610","modified":"2026-06-17T10:35:33.707","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3},"cwes":["CWE-697"],"references":["https://github.com/stellar/rs-soroban-sdk/security/advisories/GHSA-x2hw-px52-wp4m"],"products":["stellar:rs-soroban-sdk"],"source":"nvd","synced_at":"2026-10-19T22:25:53.701907451+00:00"},"epss":{"cve":"CVE-2026-32322","score":0.0029,"percentile":0.21578,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-x2hw-px52-wp4m","url":"https://osv.dev/vulnerability/GHSA-x2hw-px52-wp4m","summary":"rs-soroban-sdk: `Fr` scalar field equality comparison bypasses modular reduction","modified":"2026-03-16T17:16:39.585918Z","packages":[{"ecosystem":"crates.io","name":"soroban-sdk","purl":"pkg:cargo/soroban-sdk","ranges":[">=25.0.0 <25.3.0"],"fixed":["25.3.0"]},{"ecosystem":"crates.io","name":"soroban-sdk","purl":"pkg:cargo/soroban-sdk","ranges":[">=23.0.0 <23.5.3"],"fixed":["23.5.3"]},{"ecosystem":"crates.io","name":"soroban-sdk","purl":"pkg:cargo/soroban-sdk","ranges":["<22.0.11"],"fixed":["22.0.11"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}