Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS04NzI0LTV4bW0tdzV4cc4AA7R_
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
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS04NzI0LTV4bW0tdzV4cc4AA7R_
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 13 days ago
Updated: 13 days ago
CVSS Score: 3.7
CVSS vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Identifiers: GHSA-8724-5xmm-w5xq
References:
- https://github.com/CosmWasm/cosmwasm/commit/607e7fc710fb9441096e8edbaa12879b552c8f65
- https://github.com/CosmWasm/cosmwasm/commit/a6a639e09adc355b5f889a09141649005cb08a46
- https://github.com/CosmWasm/cosmwasm/commit/eff79bcbe73b61178817aacf0a6449437adad6a9
- https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-002.md
- https://rustsec.org/advisories/RUSTSEC-2024-0338.html
- https://github.com/advisories/GHSA-8724-5xmm-w5xq
Blast Radius: 11.2
Affected Packages
cargo:cosmwasm-std
Dependent packages: 516Dependent repositories: 1,065
Downloads: 1,330,105 total
Affected Version Ranges: >= 2.0.0, < 2.0.2, >= 1.5.0, < 1.5.4, >= 1.3.0, < 1.4.4
Fixed in: 2.0.2, 1.5.4, 1.4.4
All affected versions: 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.4.0, 1.4.1, 1.4.2, 1.4.3, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 2.0.0, 2.0.1
All unaffected versions: 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0, 0.12.1, 0.12.2, 0.13.0, 0.13.1, 0.13.2, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.16.0, 0.16.1, 0.16.2, 0.16.3, 0.16.4, 0.16.5, 0.16.6, 0.16.7, 1.0.0, 1.0.1, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.1.10, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.4.4, 1.5.4, 2.0.2