CVE-2024-58263
Rust vulnerability analysis and mitigation

Overview

CVE-2024-58263 affects the cosmwasm-std crate versions before 2.0.2 for Rust. The vulnerability was discovered and disclosed on July 27, 2025. The issue impacts multiple versions of the cosmwasm-std package including versions 1.3.0 through 1.4.3, 1.5.0 through 1.5.3, and 2.0.0 through 2.0.1 (NVD).

Technical details

The vulnerability involves integer overflow issues that can cause incorrect contract calculations. Specifically, certain mathematical operations in cosmwasm-std use wrapping math instead of panicking on overflow for very large numbers. The affected functions include Uint{256,512}::pow, Int{256,512}::pow, and Int{256,512}::neg. Additionally, Uint{64,128}::pow and Int{64,128}::pow are affected when overflow-checks=true is not set (RustSec). The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) by NVD and 3.7 (Low) by MITRE (NVD).

Impact

When exploited, this vulnerability can lead to incorrect calculations in smart contracts that utilize these mathematical operations. The integer overflows can result in unexpected behavior and potentially impact the integrity of contract computations (RustSec).

Mitigation and workarounds

The vulnerability has been patched in cosmwasm-std version 2.0.2 and later. Users should upgrade to version 2.0.2 or newer to address this issue. For versions 1.x, patches are available in versions 1.4.4 and 1.5.4 (RustSec).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65807HIGH8.4
  • RustRust
  • sd
NoNoDec 10, 2025
CVE-2025-66627HIGH7.8
  • RustRust
  • wasmi
NoYesDec 09, 2025
CVE-2025-67487MEDIUM5.5
  • RustRust
  • static-web-server
NoYesDec 09, 2025
CVE-2025-66622LOW1.3
  • RustRust
  • matrix-sdk-base
NoYesDec 09, 2025
RUSTSEC-2025-0135N/AN/A
  • RustRust
  • matrix-sdk-base
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management