> CVE-2026-26267 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-02-19 20:25
MODIFIED
2026-02-19 20:25
CVSS_SCORE V3
7.5
EPSS (Prob. Exploit)
0.57%
Top 53.3%
DATA SOURCES:
NVD đź”— 2026-02-19 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-11-04 OSV đź”— 2026-02-24

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

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EXPLOITABILITY
3.9
IMPACT
3.6

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-670

> CWE DETAILED DESCRIPTIONS

CWE-670: Always-Incorrect Control Flow Implementation - The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior any time this path is navigated.

> GITHUB SECURITY ADVISORY

GHSA-4chv-4c6w-w254 HIGH

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

AFFECTED PACKAGES:
RUST / soroban-sdk-macros
<= 22.0.9
Fixed in: 22.0.10
RUST / soroban-sdk-macros
>= 23.0.0, <= 23.5.1
Fixed in: 23.5.2
RUST / soroban-sdk-macros
>= 25.0.0, <= 25.1.0
Fixed in: 25.1.1

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

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

AFFECTED PACKAGES:
Unknown / Unknown
85 versions affected
ALIASES:
GHSA-4chv-4c6w-w254

> HISTORIQUE DES MODIFICATIONS

Première apparition
19/02/2026 20:25
Source: NVD
📊 ENRICHISSEMENT 01/03/2026 06:46
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-670: Always-Incorrect Control Flow Implementation - The code contains a control flow path that does not reflect the algorithm that the path is intended to implement, leading to incorrect behavior ...
Total des modifications: 1 Dernière mise à jour: 8 months ago

> REFERENCES

https://github.com/stellar/rs-soroban-sdk/commit/e92a3933e5f92dc09da3c740cf6a360...
https://github.com/stellar/rs-soroban-sdk/pull/1729
https://github.com/stellar/rs-soroban-sdk/pull/1730
https://github.com/stellar/rs-soroban-sdk/pull/1731
https://github.com/stellar/rs-soroban-sdk/security/advisories/GHSA-4chv-4c6w-w25...
« BACK_TO_HOME