Security mailing lists by PureSourceCode

CVE-2026-32322

MEDIUM 5.3CVSS 3.1

rs-soroban-sdk: `Fr` scalar field equality comparison bypasses modular reduction

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.

Published
13 Mar 2026
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-697
Also known as
GHSA-x2hw-px52-wp4m
Sources
NVDJSONOSV GHSA-x2hw-px52-wp4mJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD stellar rs-soroban-sdk
cpe:2.3:a:stellar:rs-soroban-sdk:*:*:*:*:*:rust:*:*
< 22.0.11 22.0.11
NVD stellar rs-soroban-sdk
cpe:2.3:a:stellar:rs-soroban-sdk:*:*:*:*:*:rust:*:*
>= 23.0.0, < 23.5.3 23.5.3
NVD stellar rs-soroban-sdk
cpe:2.3:a:stellar:rs-soroban-sdk:*:*:*:*:*:rust:*:*
>= 25.0.0, < 25.3.0 25.3.0
OSV crates.io soroban-sdk >= 25.0.0, < 25.3.0 25.3.0
OSV crates.io soroban-sdk >= 23.0.0, < 23.5.3 23.5.3
OSV crates.io soroban-sdk < 22.0.11 22.0.11

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 13 Mar 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 13 Mar 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.