Incorrect Check of Function Return Value Affecting ink_env 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.13% (50th 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-INKENV-5710372
  • 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_env to version 4.2.1 or higher.

Overview

ink_env is a Low-level interface for interacting with the smart contract Wasm executor.

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