Home / stellar / rs-soroban-sdk / CVE-2026-24889
CVE-2026-24889: is it exploited, and which versions of stellar rs-soroban-sdk are affected and fixed?
CVE-2026-24889 is an integer overflow vulnerability in stellar rs-soroban-sdk. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: soroban-sdk from 25.0.0 before 25.0.2, soroban-sdk from 23.0.0 before 23.5.1 and soroban-sdk before 22.0.9 (GitHub advisory GHSA-96xm-fv9w-pf3f). Fixed in 25.0.2, 23.5.1 and 22.0.9 (GitHub advisory GHSA-96xm-fv9w-pf3f). Severity: Medium (5.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:08 UTC and NVD November 19, 2026, 07:13 UTC.
What is CVE-2026-24889?
soroban-sdk has overflow in Bytes::slice, Vec::slice, GenRange::gen_range for u64
soroban-sdk is a Rust SDK for Soroban contracts. Arithmetic overflow can be triggered in the `Bytes::slice`, `Vec::slice`, and `Prng::gen_range` (for `u64`) methods in the `soroban-sdk` in versions up to and including `25.0.1`, `23.5.1`, and `25.0.2`. Contracts that pass user-controlled or computed range bounds to `Bytes::slice`, `Vec::slice`, or `Prng::gen_range` may silently operate on incorrect data ranges or generate random numbers from an unintended range, potentially resulting in corrupted contract state. Note that the best practice when using the `soroban-sdk` and building Soroban contracts is to always enable `overflow-checks = true`. The `stellar contract init` tool that prepares the boiler plate for a Soroban contract, as well as all examples and docs, encourage the use of configuring `overflow-checks = true` on `release` profiles so that these arithmetic operations fail rather than silently wrap. Contracts are only impacted if they use `overflow-checks = false` either explicitly or implicitly. It is anticipated the majority of contracts could not be impacted because the best practice encouraged by tooling is to enable `overflow-checks`. The fix available in `25.0.1`, `23.5.1`, and `25.0.2` replaces bare arithmetic with `checked_add` / `checked_sub`, ensuring overflow traps regardless of the `overflow-checks` profile setting. As a workaround, contract workspaces can be configured with a profile available in the GitHub Securtity Advisory to enable overflow checks on the arithmetic operations. This is the best practice when developing Soroban contracts, and the default if using the contract boilerplate generated using `stellar contract init`. Alternatively, contracts can validate range bounds before passing them to `slice` or `gen_range` to ensure the conversions cannot overflow.
From the CVE record by GitHub_M, last updated January 29, 2026, 18:00 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| stellar | rs-soroban-sdk | < 22.0.9 >= 23.0.0, < 23.5.1 >= 25.0.0, < 25.0.2 |
As the CVE record by GitHub_M states it, last updated January 29, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | soroban-sdk | >= 25.0.0, < 25.0.2 | 25.0.2 | GHSA-96xm-fv9w-pf3f |
| crates.io | soroban-sdk | >= 23.0.0, < 23.5.1 | 23.5.1 | GHSA-96xm-fv9w-pf3f |
| crates.io | soroban-sdk | < 22.0.9 | 22.0.9 | GHSA-96xm-fv9w-pf3f |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 29, 2026. Summary: soroban-sdk has overflow in Bytes::slice, Vec::slice, GenRange::gen_range for u64.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| stellar | rs-soroban-sdk | before 22.0.9 | application |
| stellar | rs-soroban-sdk | from 23.0.0 before 23.5.1 | application |
| stellar | rs-soroban-sdk | from 25.0.0 before 25.0.2 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 10:23 UTC.
How severe is CVE-2026-24889?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-24889 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, January 29, 2026)
- EPSS
- 0.38% probability of exploitation activity in the next 30 days, percentile 34.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- https://github.com/stellar/rs-soroban-sdk/security/advisories/GHSA-96xm-fv9w-pf3f x_refsource_CONFIRM
- https://github.com/stellar/rs-soroban-sdk/pull/1703 x_refsource_MISC
- https://github.com/stellar/rs-soroban-sdk/commit/3890521426d71bb4d892b21f5a283a1e836cfa38 x_refsource_MISC
- https://github.com/stellar/rs-soroban-sdk/commit/59fcef437260ed4da42d1efb357137a5c166c02e x_refsource_MISC
- https://github.com/stellar/rs-soroban-sdk/commit/c2757c6d774dbb28b34a0b77ffe282e59f0f8462 x_refsource_MISC
- https://github.com/stellar/rs-soroban-sdk/releases/tag/v22.0.9 x_refsource_MISC
- https://github.com/stellar/rs-soroban-sdk/releases/tag/v23.5.1 x_refsource_MISC
- https://github.com/stellar/rs-soroban-sdk/releases/tag/v25.0.2 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- January 27, 2026
- Published
- January 28, 2026, 22:01 UTC
- CVE record updated
- January 29, 2026, 18:00 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 10:23 UTC
- Last checked
- CVE list November 19, 2026, 07:08 UTC; NVD November 19, 2026, 07:13 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect rs-soroban-sdk?
- Mar 12, 2026CVE-2026-32322 stellar rs-soroban-sdk: incorrect comparison
- Feb 19, 2026CVE-2026-26267 stellar rs-soroban-sdk: always-incorrect control flow
Questions about CVE-2026-24889
Is CVE-2026-24889 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.38% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of stellar rs-soroban-sdk are affected by CVE-2026-24889?
soroban-sdk from 25.0.0 before 25.0.2, soroban-sdk from 23.0.0 before 23.5.1 and soroban-sdk before 22.0.9, per the GitHub advisory GHSA-96xm-fv9w-pf3f. The tables above give every range the sources list.
Which version fixes CVE-2026-24889?
25.0.2, 23.5.1 and 22.0.9, per the GitHub advisory GHSA-96xm-fv9w-pf3f. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-24889?
Medium (5.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-24889?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.