Every CVE Search/ Get API key

CVE-2024-58263

CosmWasm affected by arithmetic overflows

3.7 LowFix available

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

0.50%Up 0.5 points since Jul 28, 2025
90%50%10%1%

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 LowCVSS: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 LowCVSS: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}::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
Record
GHSA-8724-5xmm-w5xq
CVSS 3.1
3.7 LowCVSS: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 LowCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
CVSS 3.1
5.3 MediumCVSS: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}::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
Record
GHSA-8724-5xmm-w5xq
CVSS 3.1
3.7 LowCVSS: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}::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
Record
RUSTSEC-2024-0338
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
cosmwasm-std
crates.io
1.3.0 up to 1.4.4
1.4.4
cosmwasm-std
crates.io
1.5.0 up to 1.5.4
1.5.4
cosmwasm-std
crates.io
2.0.0 up to 2.0.2
2.0.2
cosmwasm-std
crates.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

History
RecordedChangedSources
first indexedCVE 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

MoveEnter Open