CVE-2024-58263
CosmWasm affected by arithmetic overflows
The cosmwasm-std crate before 2.0.2 for Rust allows integer overflows that cause incorrect contract calculations.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
3.7
The cosmwasm-std crate before 2.0.2 for Rust allows integer overflows that cause incorrect contract calculations.
- Record
CVE-2024-58263- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
EUVDEUVD-2024-54822
3.7
The cosmwasm-std crate before 2.0.2 for Rust allows integer overflows that cause incorrect contract calculations.
- Record
EUVD-2024-54822- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8724-5xmm-w5xq
3.7
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}::powInt{256,512}::neg
Affected if overflow-checks = true is not set:
Uint{64,128}::pow/Int{64,128}::powInt{64,128}::neg
- Record
GHSA-8724-5xmm-w5xq- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
NVD
3.7
The cosmwasm-std crate before 2.0.2 for Rust allows integer overflows that cause incorrect contract calculations.
- Record
CVE-2024-58263- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVGHSA-8724-5xmm-w5xq
3.7
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}::powInt{256,512}::neg
Affected if overflow-checks = true is not set:
Uint{64,128}::pow/Int{64,128}::powInt{64,128}::neg
- Record
GHSA-8724-5xmm-w5xq- CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVRUSTSEC-2024-0338 No score
Arithmetic overflows in cosmwasm-std
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}::powInt{256,512}::neg
Affected if overflow-checks = true is not set:
Uint{64,128}::pow/Int{64,128}::powInt{64,128}::neg
- Record
RUSTSEC-2024-0338- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cosmwasm-stdcrates.io |
1.3.0 up to 1.4.4 | 1.4.4 |
cosmwasm-stdcrates.io |
1.5.0 up to 1.5.4 | 1.5.4 |
cosmwasm-stdcrates.io |
2.0.0 up to 2.0.2 | 2.0.2 |
cosmwasm-stdcrates.io |
1.3.0 up to 1.4.4, 1.5.0 up to 1.5.4, 2.0.0 up to 2.0.2 | 1.4.41.5.42.0.2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-58263 is a low vulnerability (CVSS 3.7) in Cosmwasm Cosmwasm-std, published April 24, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.50%, the 42nd percentile. Fixed in cosmwasm-std 1.4.4.
References
rustsec.org/advisories/RUSTSEC-2024-0338.html
github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-002.md
crates.io/crates/cosmwasm-std
github.com/CosmWasm/cosmwasm/commit/607e7fc710fb9441096e8edbaa12879b552c8f65
github.com/CosmWasm/cosmwasm/commit/a6a639e09adc355b5f889a09141649005cb08a46
github.com/CosmWasm/cosmwasm/commit/eff79bcbe73b61178817aacf0a6449437adad6a9
nvd.nist.gov/vuln/detail/CVE-2024-58263
github.com/advisories/GHSA-8724-5xmm-w5xq
github.com/CosmWasm/cosmwasm