CVE-2026-32322

Source
https://cve.org/CVERecord?id=CVE-2026-32322
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-32322.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-32322
Aliases
Published
2026-03-12T21:39:38.022Z
Modified
2026-04-10T05:42:22.958635Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
soroban-sdk: `Fr` scalar field equality comparison bypasses modular reduction
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-697"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32322.json"
}
References

Affected packages

Git / github.com/stellar/rs-soroban-sdk

Affected ranges

Type
GIT
Repo
https://github.com/stellar/rs-soroban-sdk
Events
Database specific
{
    "versions": [
        {
            "introduced": "25.0.0"
        },
        {
            "fixed": "25.3.0"
        }
    ]
}
Type
GIT
Repo
https://github.com/stellar/rs-soroban-sdk
Events
Database specific
{
    "versions": [
        {
            "introduced": "23.0.0"
        },
        {
            "fixed": "23.5.3"
        }
    ]
}
Type
GIT
Repo
https://github.com/stellar/rs-soroban-sdk
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "22.0.11"
        }
    ]
}

Affected versions

v0.*
v0.0.3
v0.0.4
v0.0.6
v0.1.0
v0.2.0
v0.2.1
v0.3.0
v0.3.1
v0.3.2
v0.4.0
v0.4.1
v0.4.2
v0.4.3
v0.5.0
v0.6.0
v0.7.0
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.8.4
v0.9.0
v0.9.1
v0.9.2
v20.*
v20.0.0
v20.0.0-rc1
v20.0.0-rc2
v20.0.1
v20.0.2
v20.0.3
v20.1.0
v20.2.0
v20.3.0
v20.3.1
v20.3.2
v20.4.0
v20.5.0
v21.*
v21.0.1-preview.1
v21.0.1-preview.2
v21.0.1-preview.3
v21.1.0-rc.1
v21.1.1
v21.2.0
v21.3.0
v21.4.0
v21.5.0
v21.5.1
v21.5.2
v21.6.0
v21.7.0
v21.7.1
v22.*
v22.0.0
v22.0.0-rc.1
v22.0.0-rc.1.1
v22.0.0-rc.2
v22.0.0-rc.2.1
v22.0.0-rc.3
v22.0.0-rc.3.1
v22.0.0-rc.3.2
v22.0.1
v22.0.10
v22.0.2
v22.0.3
v22.0.4
v22.0.5
v22.0.6
v22.0.7
v22.0.8
v22.0.9
v23.*
v23.0.0
v23.0.1
v23.0.2
v23.0.3
v23.1.0
v23.1.1
v23.2.1
v23.3.0
v23.4.0
v23.4.1
v23.5.0
v23.5.1
v23.5.2
v25.*
v25.0.0
v25.0.1
v25.0.2
v25.1.0
v25.1.1
v25.2.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-32322.json"