{"id":"CVE-2023-34449","published":"2023-06-14T20:10:54Z","modified":"2024-12-30T14:57:52Z","title":"ink! vulnerable to incorrect decoding of storage value when using `DelegateCall`","vendor":"paritytech","product":"ink","tier":"tail","description":{"text":"ink! is an embedded domain specific language to write smart contracts in Rust for blockchains built on the Substrate framework. Starting in version 4.0.0 and prior to version 4.2.1, the return value when using delegate call mechanics, either through `CallBuilder::delegate` or `ink_env::invoke_contract_delegate`, is decoded incorrectly. This bug was related to the mechanics around decoding a call's return buffer, which was changed as part of pull request 1450. Since this feature was only released in ink! 4.0.0, no previous versions are affected. Users who have an ink! 4.x series contract should upgrade to 4.2.1 to receive a patch.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00967,"percentile":0.62639,"provenance":"source"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"},{"id":"CWE-253","name":"Incorrect Check of Function Return Value"}],"references":[{"url":"https://github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/paritytech/ink/pull/1450","tags":["x_refsource_MISC"]},{"url":"https://github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db","tags":["x_refsource_MISC"]},{"url":"https://docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html#method.delegate","tags":["x_refsource_MISC"]},{"url":"https://docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html","tags":["x_refsource_MISC"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":12.53},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"paritytech","affectedVersions":[{"vendor":"paritytech","product":"ink","versions":[">= 4.0.0, < 4.2.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-12-30T14:57:44.585992Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"ink","vulnerableRanges":[">=4.0.0, <4.2.1"],"patched":["4.2.1"],"from":["GHSA-853p-5678-hv8f"],"provenance":"source"},{"ecosystem":"crates.io","package":"ink_env","vulnerableRanges":[">=4.0.0, <4.2.1"],"patched":["4.2.1"],"from":["GHSA-853p-5678-hv8f"],"provenance":"source"}],"summary":{"text":"The flaw is an incorrect decoding of the return value from delegate calls in ink!, a Rust embedded domain specific language for writing smart contracts on Substrate-based blockchains, affecting versions 4.0.0 up to but not including 4.2.1, when a call is made via CallBuilder::delegate or ink_env::invoke_contract_delegate. An attacker with network access can trigger the faulty decoding without authentication or user interaction, leading to low-integrity impact on contract data, and the issue is fixed by upgrading to ink! 4.2.1.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:04Z"},"euvd":{"id":"EUVD-2023-1743","exploited":false,"provenance":"source"}}