Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-24889— soroban-sdk has overflow in Bytes::slice, Vec::slice, GenRange::gen_range for u64

Quick assessment

Affected
stellar rs-soroban-sdk
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

rs-soroban-sdk是Stellar开源的一个Rust开发者工具包。 rs-soroban-sdk 25.0.1及之前版本、23.5.1及之前版本和25.0.2及之前版本存在输入验证错误漏洞,该漏洞源于Bytes::slice、Vec::slice和Prng::gen_range方法存在算术溢出,可能导致在错误的数据范围内操作或生成非预期范围的随机数,从而破坏合约状态。

CVSS 5.3 · Medium EPSS 0.39% · P31

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-24889

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
soroban-sdk has overflow in Bytes::slice, Vec::slice, GenRange::gen_range for u64
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
整数溢出或超界折返
Source: CVE Program / CVE List V5
Vulnerability Title
rs-soroban-sdk 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
rs-soroban-sdk是Stellar开源的一个Rust开发者工具包。 rs-soroban-sdk 25.0.1及之前版本、23.5.1及之前版本和25.0.2及之前版本存在输入验证错误漏洞,该漏洞源于Bytes::slice、Vec::slice和Prng::gen_range方法存在算术溢出,可能导致在错误的数据范围内操作或生成非预期范围的随机数,从而破坏合约状态。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
stellar rs-soroban-sdk < 22.0.9 -

II. Public POCs for CVE-2026-24889

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-24889

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-24889 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-24889

No comments yet


Leave a comment