logo

CVE-2024-58263 cosmwasm-std

Package

Manager: cargo
Name: cosmwasm-std
Vulnerable Version: >=1.3.0 <1.4.4 || >=1.5.0 <1.5.4 || >=2.0.0 <2.0.2

Severity

Level: Low

CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.0005 pctl0.15155

Details

CosmWasm affected by arithmetic overflows Some mathematical operations in `cosmwasm-std` use wrapping math instead of panicking on overflow for very big numbers. This can lead to wrong calculations in contracts that use these operations. Affected functions: - `Uint{256,512}::pow` / `Int{256,512}::pow` - `Int{256,512}::neg` Affected if `overflow-checks = true` is not set: - `Uint{64,128}::pow` / `Int{64,128}::pow` - `Int{64,128}::neg`

Metadata

Created: 2024-04-24T17:37:59Z
Modified: 2025-07-28T15:52:31Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-8724-5xmm-w5xq/GHSA-8724-5xmm-w5xq.json
CWE IDs: ["CWE-190"]
Alternative ID: GHSA-8724-5xmm-w5xq
Finding: F111
Auto approve: 1