# CVE-2026-32322: soroban-sdk: `Fr` scalar field equality comparison bypasses modular reduction

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 24% of CVEs (2026-11-30)
- Published: 2026-03-12T21:39:38.022Z
- Modified: 2026-06-17T10:35:33.707Z
- Also known as: GHSA-x2hw-px52-wp4m
- Weaknesses: CWE-697
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- stellar rs-soroban-sdk: >= 25.0.0, < 25.3.0; >= 23.0.0, < 23.5.3; < 22.0.11; before 22.0.11; from 23.0.0 before 23.5.3; from 25.0.0 before 25.3.0
- soroban-sdk (crates.io): from 25.0.0 before 25.3.0; from 23.0.0 before 23.5.3; before 22.0.11

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/stellar/rs-soroban-sdk/security/advisories/GHSA-x2hw-px52-wp4m> (mitigation, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32322> (advisory)
- <https://github.com/stellar/rs-soroban-sdk/pull/1750> (web)
- <https://github.com/stellar/rs-soroban-sdk/commit/082424b30bf22ea7fb8c79f16ccd135e0ae9f3db> (web)
- <https://github.com/stellar/rs-soroban-sdk> (package)
- <https://github.com/stellar/rs-soroban-sdk/releases/tag/v22.0.11> (web)
- <https://github.com/stellar/rs-soroban-sdk/releases/tag/v23.5.3> (web)
- <https://github.com/stellar/rs-soroban-sdk/releases/tag/v25.3.0> (web)

## Sources

- CVE List: [CVE-2026-32322](https://www.cve.org/CVERecord?id=CVE-2026-32322), CVE Terms of Use, modified 2026-03-13
- GitHub Advisory Database: [GHSA-x2hw-px52-wp4m](https://github.com/advisories/GHSA-x2hw-px52-wp4m), CC-BY-4.0, modified 2026-03-16
- NVD: [CVE-2026-32322](https://nvd.nist.gov/vuln/detail/CVE-2026-32322), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-32322 · Whole record: https://cve.day/CVE-2026-32322.json · Rebuilt by cve.day 2026-11-25T22:59:15.893Z
