Uncontrolled Resource Consumption ('Resource Exhaustion') Affecting github.com/cosmos/cosmos-sdk/x/crisis package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made 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 Uncontrolled Resource Consumption ('Resource Exhaustion') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMCOSMOSCOSMOSSDKXCRISIS-6128853
  • published15 Dec 2023
  • disclosed6 Jul 2023
  • creditahook

Introduced: 6 Jul 2023

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

How to fix?

There is no fixed version for github.com/cosmos/cosmos-sdk/x/crisis.

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') due to improper handling of the ConstantFee parameter when processing transactions in the x/crisis module. An attacker can avoid paying the required fees by crafting a transaction that triggers an invariant check in the module. This allows the validator node to be spammed and can lead to an increase of the CPU usage by up to 20%.

References

CVSS Scores

version 3.1