Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUSTSEC-2024-0338: Arithmetic overflows in cosmwasm-std #60

Open
github-actions bot opened this issue May 1, 2024 · 0 comments
Open

RUSTSEC-2024-0338: Arithmetic overflows in cosmwasm-std #60

github-actions bot opened this issue May 1, 2024 · 0 comments

Comments

@github-actions
Copy link

github-actions bot commented May 1, 2024

Arithmetic overflows in cosmwasm-std

Details
Package cosmwasm-std
Version 1.5.2
URL https://github.com/CosmWasm/advisories/blob/main/CWAs/CWA-2024-002.md
Date 2024-04-24
Patched versions >=1.4.4, <1.5.0,>=1.5.4, <2.0.0,>=2.0.2
Unaffected versions <1.3.0

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

See advisory page for additional details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants