Integer Coercion Error Affecting org.hyperledger.besu:evm package, versions [,21.10.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (58th 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-JAVA-ORGHYPERLEDGERBESU-2317041
  • published14 Dec 2021
  • disclosed14 Dec 2021
  • creditUnknown

Introduced: 14 Dec 2021

CVE-2021-41272  (opens in a new tab)
CWE-192  (opens in a new tab)

How to fix?

Upgrade org.hyperledger.besu:evm to version 21.10.2 or higher.

Overview

Affected versions of this package are vulnerable to Integer Coercion Error due to incorrect implementation of the SHL, SHR, and SAR operations. Smart contracts that ask for shifts between approximately 2 billion and 4 billion bits (nonsensical but valid values for the operation) will fail to execute and hence fail to validate.

CVSS Base Scores

version 3.1