Arbitrary Code Injection Affecting github.com/cosmos/evm/precompiles/werc20 package, versions <0.2.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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 Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCOSMOSEVMPRECOMPILESWERC20-10268259
  • published30 May 2025
  • disclosed14 May 2025
  • creditUnknown

Introduced: 14 May 2025

New CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade github.com/cosmos/evm/precompiles/werc20 to version 0.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection through the improper handling of gas limits in precompile executions. An attacker can manipulate the state of the blockchain by causing certain functions to execute with insufficient gas, leading to incomplete state reverts and potential inconsistencies.

Note:

This is only exploitable if the blockchain uses the affected precompile contracts and configurations.

References

CVSS Base Scores

version 4.0
version 3.1