Skip to main content
← All vulnerabilities
CVE-2023-34449GHSA-853P-5678-HV8F

ink! vulnerable to incorrect decoding of storage value when using `DelegateCall`

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.2.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • paritytech ink

    From 4.0.0 · fixed in 4.2.1

  • inkcrates.io

    From 4.0.0 · fixed in 4.2.1

  • ink_envcrates.io

    From 4.0.0 · fixed in 4.2.1

References 5

GitHub · paritytech/ink

docs.rs