Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. ink
  4. ›
  5. CVE-2023-34449

CVE-2023-34449: ink! vulnerable to incorrect decoding of storage value when using `DelegateCall`

June 14, 2023 (updated June 16, 2023)

The return value when using delegate call mechanics, either through CallBuilder::delegate or ink_env::invoke_contract_delegate, is being decoded incorrectly.

References

  • docs.rs/ink_env/4.2.0/ink_env/call/struct.CallBuilder.html
  • docs.rs/ink_env/4.2.0/ink_env/fn.invoke_contract_delegate.html
  • github.com/advisories/GHSA-853p-5678-hv8f
  • github.com/paritytech/ink
  • github.com/paritytech/ink/commit/f1407ee9f87e5f64d467a22d26ee88f61db7f3db
  • github.com/paritytech/ink/pull/1450
  • github.com/paritytech/ink/security/advisories/GHSA-853p-5678-hv8f
  • nvd.nist.gov/vuln/detail/CVE-2023-34449

Code Behaviors & Features

Detect and mitigate CVE-2023-34449 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 before 4.2.1

Fixed versions

  • 4.2.1

Solution

Upgrade to version 4.2.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-253: Incorrect Check of Function Return Value
  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

cargo/ink/CVE-2023-34449.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.