{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-24783","id":"CVE-2026-24783","title":"soroban-fixed-point-math has Incorrect Rounding and Overflow Handling in Signed Fixed-Point Math with Negatives","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 ro","descriptionLong":"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.","published":"2026-01-27T22:04:18.006Z","updated":"2026-10-28T02:31:02.705107347Z","reserved":"2026-01-26T21:06:47.869Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["script3 soroban-fixed-point-math"],"affectedProducts":[{"vendor":"script3","product":"soroban-fixed-point-math","defaultStatus":null,"versions":[{"version":"= 1.4.0","status":"affected"},{"version":"= 1.3.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"soroban-fixed-point-math","purl":"pkg:cargo/soroban-fixed-point-math","ranges":[">=1.4.0 <1.4.1",">=1.3.0 <1.3.1"],"fixed":["1.4.1","1.3.1"],"advisory":"GHSA-x5m4-43jf-hh65"}],"cwes":["CWE-682"],"aliases":["GHSA-x5m4-43jf-hh65"],"references":[{"url":"https://github.com/script3/soroban-fixed-point-math/security/advisories/GHSA-x5m4-43jf-hh65","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/script3/soroban-fixed-point-math/commit/c9233f7094198a49ed66a4d75786a8a3755c936a","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/script3/soroban-fixed-point-math/releases/tag/v1.3.1","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/script3/soroban-fixed-point-math/releases/tag/v1.4.1","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/24xxx/CVE-2026-24783.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24783","tags":["advisory"]},{"url":"https://github.com/script3/soroban-fixed-point-math","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00405,"epssPercentile":0.35466,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-24783","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-24783","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-24783","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-x5m4-43jf-hh65","ok":true,"note":"GHSA-x5m4-43jf-hh65"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-24783","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}