🔍 CVE-2026-24889

5.3
CVSS Score
MEDIUM
2026-01-28
2026-01-29 16:31
✅ 완료

🇰🇷 한글 설명

soroban-sdk에서 발생하는 산술 오버플로 취약점으로 인해 사용자 제어 범위 또는 계산된 범위 경계를 Bytes::slice, Vec::slice, 또는 Prng::gen_range 메서드에 전달하는 계약서가 잘못된 데이터 범위에서 작동하거나 의도하지 않은 범위에서 임의의 숫자를 생성할 수 있습니다.

💡 쉬운 설명

soroban-sdk에서 산술 오버플로가 발생하여 계약서의 데이터가 손상될 수 있습니다. 이는 사용자 제어 범위 또는 계산된 범위 경계를 특정 메서드에 전달할 때 발생합니다. 이를 방지하기 위해 overflow-checks를 활성화하는 것이 좋습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

soroban-sdk 버전 25.0.1, 23.5.1, 25.0.2

⚔️ 공격 벡터

사용자 제어 범위 또는 계산된 범위 경계를 Bytes::slice, Vec::slice, 또는 Prng::gen_range 메서드에 전달

🛡️ 대응 방법

overflow-checks를 활성화하거나 버전을 25.0.1, 23.5.1, 25.0.2 이상으로 업데이트합니다.

🔧 검증 코드

python이 설치된 로컬 시스템에서 실행하여 soroban-sdk의 버전을 확인합니다. python을 실행하기 위해 관리자 권한이 필요하지 않습니다. python이 설치되어 있지 않다면 설치 후에 사용 가능합니다.

Shell / Script
python -c 'import pkg_resources; print("soroban-sdk" in [p.project_name for p in pkg_resources.working_set] and pkg_resources.get_distribution("soroban-sdk").version in ["25.0.1", "23.5.1", "25.0.2"])'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

💻 영향받는 소프트웨어

Git