{"answers":{"affected":"5 open source packages ship an affected version, including serde-json-wasm. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-58264 in the wild and no public exploit code.","fix":"Upgrade serde-json-wasm to a fixed version for your release line: 0.5.2 or 1.0.1.","what":"CVE-2024-58264 is a low-severity denial of service vulnerability in CosmWasm serde-json-wasm, published on 27 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-58264 and fix it if it is affected.\n\nWhat it is: CVE-2024-58264 is a low-severity denial of service vulnerability in CosmWasm serde-json-wasm, published on 27 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-58264 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- serde-json-wasm (crates.io): affected all versions; fixed in 0.5.2\n- serde-json-wasm (crates.io): affected all versions; fixed in 0.5.2\n- serde-json-wasm (crates.io): affected from 0.0.0-0; fixed in 0.5.2, 1.0.1\n- serde-json-wasm (crates.io): affected from 1.0.0; fixed in 1.0.1\n- serde-json-wasm (crates.io): affected from 1.0.0; fixed in 1.0.1\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-58264/ (Markdown: https://insights.sbomify.com/CVE-2024-58264/index.md)","id":"CVE-2024-58264","markdown":"https://insights.sbomify.com/CVE-2024-58264/index.md","name":"CVE-2024-58264","record":{"aliases":["GHSA-rr69-rxr6-8qwf","RUSTSEC-2024-0012"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Rust JSON library","requires_auth":"none","summary":"Attackers can cause stack exhaustion and denial of service by sending deeply nested JSON data to applications using the serde-json-wasm crate.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"serde-json-wasm","vendor":"cosmwasm"}],"cvss":{"score":3.2,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-674","name":"Uncontrolled Recursion"}],"description":"The serde-json-wasm crate before 1.0.1 for Rust allows stack consumption via deeply nested JSON data.","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":"serde-json-wasm stack overflow during recursive JSON parsing","id":"CVE-2024-58264","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":5,"n_references":3,"next":{"headline":"Unauthenticated Nonce Increment in snow","id":"CVE-2024-58265"},"packages":[{"ecosystem":"crates.io","fixed":["0.5.2"],"introduced":["0"],"last_affected":[],"package":"serde-json-wasm","purl":null,"source":"GHSA-rr69-rxr6-8qwf"},{"ecosystem":"crates.io","fixed":["0.5.2"],"introduced":["0"],"last_affected":[],"package":"serde-json-wasm","purl":"pkg:cargo/serde-json-wasm","source":"GHSA-rr69-rxr6-8qwf"},{"ecosystem":"crates.io","fixed":["0.5.2","1.0.1"],"introduced":["0.0.0-0","1.0.0"],"last_affected":[],"package":"serde-json-wasm","purl":"pkg:cargo/serde-json-wasm","source":"RUSTSEC-2024-0012"},{"ecosystem":"crates.io","fixed":["1.0.1"],"introduced":["1.0.0"],"last_affected":[],"package":"serde-json-wasm","purl":null,"source":"GHSA-rr69-rxr6-8qwf"},{"ecosystem":"crates.io","fixed":["1.0.1"],"introduced":["1.0.0"],"last_affected":[],"package":"serde-json-wasm","purl":"pkg:cargo/serde-json-wasm","source":"GHSA-rr69-rxr6-8qwf"}],"prev":{"headline":"CosmWasm affected by arithmetic overflows","id":"CVE-2024-58263"},"products":["serde-json-wasm"],"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":"Attackers can cause stack exhaustion and denial of service by sending deeply nested JSON data to applications using the serde-json-wasm crate.","url":"https://insights.sbomify.com/CVE-2024-58264/"}