{"answers":{"affected":"7 open source packages ship an affected version, including cosmwasm-std. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-58263 in the wild and no public exploit code.","fix":"Upgrade cosmwasm-std to a fixed version for your release line: 1.4.4, 1.5.4 or 2.0.2.","what":"CVE-2024-58263 is a low-severity vulnerability in cosmwasm-std, published on 27 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-58263 and fix it if it is affected.\n\nWhat it is: CVE-2024-58263 is a low-severity vulnerability in cosmwasm-std, published on 27 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-58263 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cosmwasm-std (crates.io): affected from 1.3.0; fixed in 1.4.4, 1.5.4, 2.0.2\n- cosmwasm-std (crates.io): affected from 1.3.0; fixed in 1.4.4\n- cosmwasm-std (crates.io): affected from 1.3.0; fixed in 1.4.4\n- cosmwasm-std (crates.io): affected from 1.5.0; fixed in 1.5.4\n- cosmwasm-std (crates.io): affected from 1.5.0; fixed in 1.5.4\n- cosmwasm-std (crates.io): affected from 2.0.0; fixed in 2.0.2\n- cosmwasm-std (crates.io): affected from 2.0.0; fixed in 2.0.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-58263/ (Markdown: https://insights.sbomify.com/CVE-2024-58263/index.md)","id":"CVE-2024-58263","markdown":"https://insights.sbomify.com/CVE-2024-58263/index.md","name":"CVE-2024-58263","record":{"aliases":["GHSA-8724-5xmm-w5xq","RUSTSEC-2024-0338"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust smart contract library","requires_auth":"none","summary":"Integer overflows in the cosmwasm-std Rust library can lead to incorrect smart contract calculations, potentially compromising data integrity.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"cosmwasm-std","vendor":"cosmwasm"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"The cosmwasm-std crate before 2.0.2 for Rust allows integer overflows that cause incorrect contract calculations.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CosmWasm affected by arithmetic overflows","id":"CVE-2024-58263","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"integer_overflow","year":"2024"},"n_packages":7,"n_references":3,"next":{"headline":"serde-json-wasm stack overflow during recursive JSON parsing","id":"CVE-2024-58264"},"packages":[{"ecosystem":"crates.io","fixed":["1.4.4","1.5.4","2.0.2"],"introduced":["1.3.0","1.5.0","2.0.0"],"last_affected":[],"package":"cosmwasm-std","purl":"pkg:cargo/cosmwasm-std","source":"RUSTSEC-2024-0338"},{"ecosystem":"crates.io","fixed":["1.4.4"],"introduced":["1.3.0"],"last_affected":[],"package":"cosmwasm-std","purl":null,"source":"GHSA-8724-5xmm-w5xq"},{"ecosystem":"crates.io","fixed":["1.4.4"],"introduced":["1.3.0"],"last_affected":[],"package":"cosmwasm-std","purl":"pkg:cargo/cosmwasm-std","source":"GHSA-8724-5xmm-w5xq"},{"ecosystem":"crates.io","fixed":["1.5.4"],"introduced":["1.5.0"],"last_affected":[],"package":"cosmwasm-std","purl":null,"source":"GHSA-8724-5xmm-w5xq"},{"ecosystem":"crates.io","fixed":["1.5.4"],"introduced":["1.5.0"],"last_affected":[],"package":"cosmwasm-std","purl":"pkg:cargo/cosmwasm-std","source":"GHSA-8724-5xmm-w5xq"},{"ecosystem":"crates.io","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"cosmwasm-std","purl":null,"source":"GHSA-8724-5xmm-w5xq"},{"ecosystem":"crates.io","fixed":["2.0.2"],"introduced":["2.0.0"],"last_affected":[],"package":"cosmwasm-std","purl":"pkg:cargo/cosmwasm-std","source":"GHSA-8724-5xmm-w5xq"}],"prev":{"headline":"curve25519-dalek has timing variability in `curve25519-dalek`'s `Scalar29::sub`/`Scalar52::sub`","id":"CVE-2024-58262"},"products":["cosmwasm-std"],"published":"2025-07-27","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-07-28","vendors":["CosmWasm"]},"summary":"Integer overflows in the cosmwasm-std Rust library can lead to incorrect smart contract calculations, potentially compromising data integrity.","url":"https://insights.sbomify.com/CVE-2024-58263/"}