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

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

Severity: info · 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). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## 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?** Informational severity, published 27 August 2024.

**Which products and versions are affected?** cosmwasm-vm (crates.io) SEMVER:introduced=0.0.0-0,fixed=1.2.8,introduced=1.3.0,fixed=1.3.4,introduced=1.4.0,fixed=1.4.2,introduced=1.5.0,fixed=1.5.1.

**Is there a fix for This vulnerability?** Yes. cosmwasm-vm (crates.io): upgrade to 1.5.1 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) 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.5.1 or later

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


## Affected products

- cosmwasm-vm (crates.io) SEMVER:introduced=0.0.0-0,fixed=1.2.8,introduced=1.3.0,fixed=1.3.4,introduced=1.4.0,fixed=1.4.2,introduced=1.5.0,fixed=1.5.1

## Related threats

- [wasmvm: Malicious smart contract can slow down block production](https://junglewise.ai/threats/wasmvm-malicious-smart-contract-can-slow-down-block-production-8d20164a)
- [CosmWasm VM Incorrect metering](https://junglewise.ai/threats/cosmwasm-vm-incorrect-metering-8b9d6f46)
- [Panic in wasmvm can slow down block production](https://junglewise.ai/threats/panic-in-wasmvm-can-slow-down-block-production-e59c5f59)
- [CWA-2023-004: Excessive number of function parameters in compiled Wasm](https://junglewise.ai/threats/cwa-2023-004-excessive-number-of-function-parameters-in-compiled-wasm-e7833357)
- [Gas mispricing in cosmwasm-vm](https://junglewise.ai/threats/gas-mispricing-in-cosmwasm-vm-5d6dc16f)
