MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-26267GHSA-4chv-4c6w-w254

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

Not on CISA KEVCVSS 7.5 (v3.1)
  • Overview

Summary

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.

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CVE List Source: CVE Program (cve.org)
  • GitHub Advisory DB Source: GitHub Advisory Database (CC BY 4.0)