Allocation of Resources Without Limits or Throttling Affecting github.com/cosmwasm/wasmd/x/wasm/types package, versions <0.52.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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 ID SNYK-GOLANG-GITHUBCOMCOSMWASMWASMDXWASMTYPES-7659967
  • published 9 Aug 2024
  • disclosed 8 Aug 2024
  • credit sushiwushi

Introduced: 8 Aug 2024

CVE NOT AVAILABLE CWE-770 Open this link in a new tab

How to fix?

Upgrade github.com/CosmWasm/wasmd/x/wasm/types to version 0.52.0 or higher.

Overview

github.com/CosmWasm/wasmd/x/wasm/types is a reverse proxy that translates gRPC into RESTful JSON APIs

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the ValidateBasic() function not checking the size of the incoming message. An attacker can cause denial of service by sending message contents with a large number of addresses, generating a large number of code IDs.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    Present
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    None
  • Integrity (VI)
    None
  • Availability (VA)
    Low
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None