# CVE-2026-24783: soroban-fixed-point-math has Incorrect Rounding and Overflow Handling in Signed Fixed-Point Math with Negatives

> Incorrect rounding in signed fixed-point division allows attackers to manipulate financial calculations in Soroban smart contracts.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 27 Jan 2026
- **Updated:** 28 Jan 2026
- **Also known as:** GHSA-x5m4-43jf-hh65

## What is CVE-2026-24783?

CVE-2026-24783 is a high-severity vulnerability in script3 soroban-fixed-point-math, published on 27 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

Weakness: CWE-682 (Incorrect Calculation)

## Which versions are affected by CVE-2026-24783?

4 open source packages ship an affected version, including soroban-fixed-point-math. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `soroban-fixed-point-math` | crates.io | From 1.3.0 | 1.3.1 |
| `soroban-fixed-point-math` | crates.io | From 1.3.0 | 1.3.1 |
| `soroban-fixed-point-math` | crates.io | From 1.4.0 | 1.4.1 |
| `soroban-fixed-point-math` | crates.io | From 1.4.0 | 1.4.1 |

Products: Script3 Soroban-Fixed-Point-Math.

## How do I fix CVE-2026-24783?

Upgrade soroban-fixed-point-math to a fixed version for your release line: 1.3.1 or 1.4.1.

## Is CVE-2026-24783 being exploited?

There is no known exploitation of CVE-2026-24783 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-24783 and fix it if it is affected.

What it is: CVE-2026-24783 is a high-severity vulnerability in script3 soroban-fixed-point-math, published on 27 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-24783 in the wild and no public exploit code.

Affected packages and fixed versions:
- soroban-fixed-point-math (crates.io): affected from 1.3.0; fixed in 1.3.1
- soroban-fixed-point-math (crates.io): affected from 1.3.0; fixed in 1.3.1
- soroban-fixed-point-math (crates.io): affected from 1.4.0; fixed in 1.4.1
- soroban-fixed-point-math (crates.io): affected from 1.4.0; fixed in 1.4.1

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-24783/ (Markdown: https://insights.sbomify.com/CVE-2026-24783/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-24783
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-24783
- OSV: https://osv.dev/vulnerability/CVE-2026-24783

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-24783/
Summaries are generated and may contain mistakes; the official description above is the record.
