{"resultsPerPage":1,"startIndex":0,"totalResults":1,"format":"NVD_CVE","version":"2.0","timestamp":"2026-04-22T22:03:06.065","vulnerabilities":[{"cve":{"id":"CVE-2026-26267","sourceIdentifier":"security-advisories@github.com","published":"2026-02-19T20:25:43.530","lastModified":"2026-02-20T19:49:23.010","vulnStatus":"Analyzed","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"soroban-sdk es un SDK de Rust para contratos Soroban. Antes de las versiones 22.0.10, 23.5.2 y 25.1.1, la macro `#[contractimpl]` contiene un error en cómo conecta las llamadas a funciones. `#[contractimpl]` genera código que utiliza llamadas al estilo `MyContract::value()` incluso cuando está procesando la versión del trait. Esto significa que si una función inherente también se define con el mismo nombre, se llama a la función inherente en lugar de la función del trait. Esto significa que el punto de entrada exportado por Wasm llama silenciosamente a la función incorrecta cuando se cumplen dos condiciones simultáneamente: Primero, se define un bloque `impl Trait for MyContract` con una o más funciones, con `#[contractimpl]` aplicado. Segundo, se define un bloque `impl MyContract` con una o más funciones con nombres idénticos, sin `#[contractimpl]` aplicado. Si la versión del trait contiene comprobaciones de seguridad importantes, como verificar que el llamador está autorizado, que la versión inherente no tiene, esas comprobaciones se eluden. Cualquiera que interactúe con el contrato a través de su interfaz pública llamará a la función incorrecta. El problema está parcheado en las versiones de `soroban-sdk-macros` 22.0.10, 23.5.2 y 25.1.1. La corrección cambia la llamada generada de `::func()` a `::func()` al procesar implementaciones de traits, asegurando que Rust resuelva a la función asociada del trait independientemente de si existe una función inherente con el mismo nombre. Los usuarios deben actualizar a `soroban-sdk-macros` 22.0.10, 23.5.2 o 25.1.1 y recompilar sus contratos. Si la actualización no es posible de inmediato, los desarrolladores de contratos pueden evitar el problema asegurándose de que ninguna función asociada inherente en el tipo de contrato comparta un nombre con ninguna función en la implementación del trait. Renombrar o eliminar la función inherente en conflicto elimina la ambigüedad y hace que el código generado por la macro se resuelva correctamente a la función del trait."}],"metrics":{"cvssMetricV31":[{"source":"security-advisories@github.com","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","baseScore":7.5,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":3.6}]},"weaknesses":[{"source":"security-advisories@github.com","type":"Primary","description":[{"lang":"en","value":"CWE-670"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:stellar:rs-soroban-sdk:*:*:*:*:*:rust:*:*","versionEndExcluding":"22.0.10","matchCriteriaId":"05CB12AE-79C0-4E3E-A5DA-B7B4ADF1D6AF"},{"vulnerable":true,"criteria":"cpe:2.3:a:stellar:rs-soroban-sdk:*:*:*:*:*:rust:*:*","versionStartIncluding":"23.0.0","versionEndExcluding":"23.5.2","matchCriteriaId":"7C4E14BA-C772-46BA-BC92-02A07FB8B574"},{"vulnerable":true,"criteria":"cpe:2.3:a:stellar:rs-soroban-sdk:*:*:*:*:*:rust:*:*","versionStartIncluding":"25.0.0","versionEndExcluding":"25.1.1","matchCriteriaId":"AC7DFEC6-FCA8-4319-AB18-85B0E972DD1C"}]}]}],"references":[{"url":"https://github.com/stellar/rs-soroban-sdk/commit/e92a3933e5f92dc09da3c740cf6a360d55709a2b","source":"security-advisories@github.com","tags":["Patch"]},{"url":"https://github.com/stellar/rs-soroban-sdk/pull/1729","source":"security-advisories@github.com","tags":["Issue Tracking","Patch"]},{"url":"https://github.com/stellar/rs-soroban-sdk/pull/1730","source":"security-advisories@github.com","tags":["Issue Tracking","Patch"]},{"url":"https://github.com/stellar/rs-soroban-sdk/pull/1731","source":"security-advisories@github.com","tags":["Issue Tracking","Patch"]},{"url":"https://github.com/stellar/rs-soroban-sdk/security/advisories/GHSA-4chv-4c6w-w254","source":"security-advisories@github.com","tags":["Exploit","Patch","Vendor Advisory"]}]}}]}