Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-26267

HIGH 7.5EPSS 43%

rs-soroban-sdk #[contractimpl] macro calls inherent function instead of trait function when names collide

Also known as GHSA-4chv-4c6w-w254

Mitigation

  • Upgrade soroban-sdk-macros to one of 25.1.1, 23.5.2, 22.0.10 (or later in the same release line).

Who should check

  • Projects that depend on crates.io package soroban-sdk-macros (>= 25.0.0, < 25.1.1)
  • Anyone running stellar rs-soroban-sdk >= 25.0.0, < 25.1.1; >= 23.0.0, < 23.5.2; < 22.0.10

Vulnerability facts

Affected
soroban-sdk-macros >= 25.0.0, < 25.1.1
Fixed in
25.1.1, 23.5.2, 22.0.10
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
EPSS
0.61% chance of exploitation in 30 days (percentile 43, 2026-11-26)
CWE
CWE-670
Published
Modified

Description

soroban-sdk is a Rust SDK for Soroban contracts. Prior to versions 22.0.10, 23.5.2, and 25.1.1, the `#[contractimpl]` macro contains a bug in how it wires up function calls. `#[contractimpl]` generates code that uses `MyContract::value()` style calls even when it's processing the trait version. This means if an inherent function is also defined with the same name, the inherent function gets called instead of the trait function. This means the Wasm-exported entry point silently calls the wrong function when two conditions are met simultaneously: First, an `impl Trait for MyContract` block is defined with one or more functions, with `#[contractimpl]` applied. Second, an `impl MyContract` block is defined with one or more identically named functions, without `#[contractimpl]` applied. If the trait version contains important security checks, such as verifying the caller is authorized, that the inherent version does not, those checks are bypassed. Anyone interacting with the contract through its public interface will call the wrong function. The problem is patched in `soroban-sdk-macros` versions 22.0.10, 23.5.2, and 25.1.1. The fix changes the generated call from `<Type>::func()` to `<Type as Trait>::func()` when processing trait implementations, ensuring Rust resolves to the trait associated function regardless of whether an inherent function with the same name exists. Users should upgrade to `soroban-sdk-macros` 22.0.10, 23.5.2, or 25.1.1 and recompile their contracts. If upgrading is not immediately possible, contract developers can avoid the issue by ensuring that no inherent associated function on the contract type shares a name with any function in the trait implementation. Renaming or removing the conflicting inherent function eliminates the ambiguity and causes the macro-generated code to correctly resolve to the trait function.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io soroban-sdk-macros>= 25.0.0, < 25.1.125.1.1, 23.5.2, 22.0.10osv
stellar rs-soroban-sdk>= 25.0.0, < 25.1.1; >= 23.0.0, < 23.5.2; < 22.0.10—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-26267. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-26267.md
Affected: soroban-sdk-macros >= 25.0.0, < 25.1.1
Fixed in: 25.1.1, 23.5.2, 22.0.10

Steps:
1. Search this machine and project for soroban-sdk-macros (crates.io), stellar rs-soroban-sdk: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-26267 being exploited?

There is no confirmed exploitation: CVE-2026-26267 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-26267?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-26267?

soroban-sdk-macros >= 25.0.0, < 25.1.1.

Is there a fix for CVE-2026-26267?

Yes. Fixed in 25.1.1, 23.5.2, 22.0.10. Upgrade soroban-sdk-macros to one of 25.1.1, 23.5.2, 22.0.10 (or later in the same release line).

How do I check if I'm affected by CVE-2026-26267?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors