cosmwasm-std
Affected
- introduced
1.3.0, fixed1.4.4(semver)
Fixed versions
1.4.4
Fix
- Fixed version
1.4.4cargo update -p cosmwasm-std --precise 1.4.4
Advisory
Also known as: CVE-2024-58263, RUSTSEC-2024-0338
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}::negAffected if overflow-checks = true is not set:
Uint{64,128}::pow / Int{64,128}::powInt{64,128}::negLow Basis: The source's own band: LOW
1.3.0, fixed 1.4.4 (semver)1.4.4
1.4.4cargo update -p cosmwasm-std --precise 1.4.41.5.0, fixed 1.5.4 (semver)1.5.4
1.5.4cargo update -p cosmwasm-std --precise 1.5.42.0.0, fixed 2.0.2 (semver)2.0.2
2.0.2cargo update -p cosmwasm-std --precise 2.0.2Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0