# CWA-2023-004: Excessive number of function parameters in compiled Wasm

Source: https://junglewise.ai/threats/cwa-2023-004-excessive-number-of-function-parameters-in-compiled-wasm-e7833357  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-08-27  
License: CC BY 4.0 with a link back

Severity: low · CVSS 3.1 · Published 2024-08-27

CWA-2023-004: Excessive number of function parameters in compiled Wasm

Technologies: [cosmwasm-vm (crates.io)](https://junglewise.ai/threats/technologies/cosmwasm-vm), [github.com/CosmWasm/wasmvm (Go)](https://junglewise.ai/threats/technologies/github-com-cosmwasm-wasmvm). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io), [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is This vulnerability exploited in the wild?** No. Junglewise Threat Intelligence has no report of This vulnerability being exploited in the wild.

**How severe is This vulnerability?** Low severity, with a CVSS score of 3.1, published 27 August 2024.

**Which products and versions are affected?** cosmwasm-vm (crates.io) SEMVER:introduced=0,fixed=1.2.8; github.com/CosmWasm/wasmvm (Go) SEMVER:introduced=0,fixed=1.2.5.

**Is there a fix for This vulnerability?** Yes. cosmwasm-vm (crates.io): upgrade to 1.2.8 or later; github.com/CosmWasm/wasmvm (Go): upgrade to 1.2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected?** Check whether you run cosmwasm-vm (crates.io) or github.com/CosmWasm/wasmvm (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- cosmwasm-vm (crates.io): upgrade to 1.2.8 or later

  ```sh
  cargo update -p cosmwasm-vm
  ```

- github.com/CosmWasm/wasmvm (Go): upgrade to 1.2.5 or later

  ```sh
  go get github.com/CosmWasm/wasmvm@v1.2.5
  ```


## Affected products

- cosmwasm-vm (crates.io) SEMVER:introduced=0,fixed=1.2.8
- github.com/CosmWasm/wasmvm (Go) SEMVER:introduced=0,fixed=1.2.5

## Related threats

- [GO-2025-3448 - Malicious smart contract can crash the chain in github.com/CosmWasm/wasmvm](https://junglewise.ai/threats/go-2025-3448-malicious-smart-contract-can-crash-the-chain-in-github-com-35e4e2d5)
- [GO-2025-3449 - wasmvm: Malicious smart contract can slow down block production in github.com/CosmWasm/wasmvm](https://junglewise.ai/threats/go-2025-3449-wasmvm-malicious-smart-contract-can-slow-down-block-a686e7bf)
- [wasmvm: Malicious smart contract can slow down block production](https://junglewise.ai/threats/wasmvm-malicious-smart-contract-can-slow-down-block-production-8d20164a)
- [wasmvm: Malicious smart contract can crash the chain](https://junglewise.ai/threats/wasmvm-malicious-smart-contract-can-crash-the-chain-72fada42)
- [GO-2024-3101 - Excessive number of function parameters in compiled Wasm in github.com/CosmWasm/wasmvm](https://junglewise.ai/threats/go-2024-3101-excessive-number-of-function-parameters-in-compiled-wasm-0618bf32)
