CVE-2024-58263 Details
Description
The cosmwasm-std crate before 2.0.2 for Rust allows integer overflows that cause incorrect contract calculations.
A vulnerability allowing integer overflows has been identified in the cosmwasm-std crate for Rust, affecting versions 2.0.0 prior to 2.0.2, 1.5.0 prior to 1.5.4, and 1.3.0 prior to 1.4.4. The issue arises because some mathematical operations in the library use wrapping arithmetic instead of properly handling overflow by panicking, which can lead to incorrect calculations in smart contracts that rely on these operations. The vulnerable functions include the power and unary negation operations for certain integer types, particularly when specific overflow-checking settings are not enabled.
Users can update to cosmwasm-std versions 1.4.4, 1.5.4, or 2.0.2 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://crates.io/crates/cosmwasm-std | [email protected] | Product |
| https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-002.md | [email protected] | ExploitPatchThird Party Advisory |
| https://rustsec.org/advisories/RUSTSEC-2024-0338.html | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| cosmwasm cosmwasm-std | >= 1.3.0, < 1.4.4 >= 1.5.0, < 1.5.4 >= 2.0.0, < 2.0.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 7, 2025 | Initial Analysis | [email protected] |
| Jul 27, 2025 | CVE Modified | [email protected] |
| Jul 27, 2025 | New CVE Received | [email protected] |