Incorrect Check of Function Return Value Affecting ink package, versions >=4.0.0 <4.2.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (61st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-INK-5710373
  • published15 Jun 2023
  • disclosed14 Jun 2023
  • creditFacundo Lerena

Introduced: 14 Jun 2023

CVE-2023-34449  (opens in a new tab)
CWE-253  (opens in a new tab)

How to fix?

Upgrade ink to version 4.2.1 or higher.

Overview

ink is an eDSL to write smart contracts in Rust for blockchains built on the Substrate framework. ink! contracts are compiled to WebAssembly.

Affected versions of this package are vulnerable to Incorrect Check of Function Return Value. The return value when using delegate call mechanics, either through CallBuilder::delegate or ink_env::invoke_contract_delegate, is being decoded incorrectly.

CVSS Scores

version 3.1