soroban-fixed-point-math has Incorrect Rounding and Overflow Handling in Signed Fixed-Point Math with Negatives
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
soroban-fixed-point-math is a fixed-point math library for Soroban smart contacts. In versions 1.3.0 and 1.4.0, the `mulDiv(x, y, z)` function incorrectly handled cases where both the intermediate product $x * y$ and the divisor $z$ were negative. The logic assumed that if the intermediate product was negative, the final result must also be negative, neglecting the sign of $z$. This resulted in rounding being applied in the wrong direction for cases where both $x * y$ and $z$ were negative. The functions most at risk are `fixed_div_floor` and `fixed_div_ceil`, as they often use non-constant numbers as the divisor $z$ in `mulDiv`. This error is present in all signed `FixedPoint` and `SorobanFixedPoint` implementations, including `i64`, `i128`, and `I256`. Versions 1.3.1 and 1.4.1 contain a patch. No known workarounds for this issue are available.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| script3 | soroban-fixed-point-math | = 1.4.0; = 1.3.0 | — | No fix listed | CNA |
| — | soroban-fixed-point-math (crates.io) | 1.4.0 to before 1.4.1 | 1.4.1 | Patch available | GHSA-x5m4-43jf-hh65 |
| — | soroban-fixed-point-math (crates.io) | 1.3.0 to before 1.3.1 | 1.3.1 | Patch available | GHSA-x5m4-43jf-hh65 |
- soroban-fixed-point-math Vendorscript3 Affected = 1.4.0; = 1.3.0 Fixed in — No fix listed CNA
- soroban-fixed-point-math (crates.io) Vendor— Affected 1.4.0 to before 1.4.1 Fixed in 1.4.1 Patch available GHSA-x5m4-43jf-hh65
- soroban-fixed-point-math (crates.io) Vendor— Affected 1.3.0 to before 1.3.1 Fixed in 1.3.1 Patch available GHSA-x5m4-43jf-hh65
Remediation
- Fix · GHSA-x5m4-43jf-hh65 soroban-fixed-point-math (crates.io) Fixed in 1.4.1 Advisory →
- Fix · GHSA-x5m4-43jf-hh65 soroban-fixed-point-math (crates.io) Fixed in 1.3.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-24783
- 2026-10-03 Alias added: GHSA-x5m4-43jf-hh65
References
Patch 1
Advisory 2
Sources
- CVE-2026-24783 · CVE Program
- CVE-2026-24783 · NVD
- FIRST EPSS
- GHSA-x5m4-43jf-hh65 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences