{
  "id": "CVE-2026-24783",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-24783",
  "published_at": "2026-01-27T22:04:18.006Z",
  "title": "soroban-fixed-point-math has Incorrect Rounding and Overflow Handling in Signed Fixed-Point Math with Negatives",
  "vendor": "script3",
  "product": "soroban-fixed-point-math",
  "cvss": {
    "score": 7.5,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-682",
  "cpes": [
    "cpe:2.3:a:script3:soroban-fixed-point-math:1.3.0:*:*:*:*:rust:*:*",
    "cpe:2.3:a:script3:soroban-fixed-point-math:1.4.0:*:*:*:*:rust:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "script3",
        "product": "soroban-fixed-point-math",
        "ranges": [
          "= 1.4.0",
          "= 1.3.0"
        ],
        "fixed_in": null
      },
      {
        "vendor": "",
        "product": "soroban-fixed-point-math",
        "ranges": [
          "\u003e= 1.4.0, \u003c 1.4.1"
        ],
        "fixed_in": [
          "1.4.1"
        ],
        "ecosystem": "crates.io",
        "advisory": "GHSA-x5m4-43jf-hh65"
      },
      {
        "vendor": "",
        "product": "soroban-fixed-point-math",
        "ranges": [
          "\u003e= 1.3.0, \u003c 1.3.1"
        ],
        "fixed_in": [
          "1.3.1"
        ],
        "ecosystem": "crates.io",
        "advisory": "GHSA-x5m4-43jf-hh65"
      }
    ],
    "upgrade": [
      "Upgrade soroban-fixed-point-math to 1.4.1 or later.",
      "Upgrade soroban-fixed-point-math to 1.3.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/script3/soroban-fixed-point-math/security/advisories/GHSA-x5m4-43jf-hh65"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/script3/soroban-fixed-point-math/commit/c9233f7094198a49ed66a4d75786a8a3755c936a"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/script3/soroban-fixed-point-math/releases/tag/v1.3.1"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/script3/soroban-fixed-point-math/releases/tag/v1.4.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
