# CVE-2026-26267: rs-soroban-sdk \#\[contractimpl\] macro calls inherent function instead of trait function when names collide

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.61% (percentile 43, 2026-11-26)
- **CWE:** CWE-670
- **Aliases:** GHSA-4chv-4c6w-w254
- **Published:** 2026-02-17T21:29:05.000Z
- **Modified:** 2026-06-17T10:26:00.800Z

## 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

## 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

- crates.io `soroban-sdk-macros`: affected \>= 25.0.0, \< 25.1.1; fixed 25.1.1, 23.5.2, 22.0.10 (osv)
- stellar rs-soroban-sdk: \>= 25.0.0, \< 25.1.1; \>= 23.0.0, \< 23.5.2; \< 22.0.10 (cvelist)

## Mitigation

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/stellar/rs-soroban-sdk/security/advisories/GHSA-4chv-4c6w-w254>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-26267>
- patch: <https://github.com/stellar/rs-soroban-sdk/pull/1729>
- patch: <https://github.com/stellar/rs-soroban-sdk/pull/1730>
- patch: <https://github.com/stellar/rs-soroban-sdk/pull/1731>
- patch: <https://github.com/stellar/rs-soroban-sdk/commit/e92a3933e5f92dc09da3c740cf6a360d55709a2b>
- other: <https://github.com/stellar/rs-soroban-sdk>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-26267>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4chv-4c6w-w254> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-26267> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-26267>
