{"answers":{"affected":"2 open source packages ship an affected version, including topgrade.","exploited":"There is no known exploitation of GHSA-f2wx-xjfw-xjv6 in the wild and no public exploit code.","fix":"Upgrade topgrade to 12.0.1 or later.","what":"GHSA-f2wx-xjfw-xjv6 is a vulnerability in topgrade, published on 17 Jul 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-f2wx-xjfw-xjv6 and fix it if it is affected.\n\nWhat it is: GHSA-f2wx-xjfw-xjv6 is a vulnerability in topgrade, published on 17 Jul 2023. 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 GHSA-f2wx-xjfw-xjv6 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- topgrade (crates.io): affected all versions; fixed in 12.0.1\n- topgrade (crates.io): affected all versions; fixed in 12.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/GHSA-f2wx-xjfw-xjv6/ (Markdown: https://insights.sbomify.com/GHSA-f2wx-xjfw-xjv6/index.md)","id":"GHSA-f2wx-xjfw-xjv6","markdown":"https://insights.sbomify.com/GHSA-f2wx-xjfw-xjv6/index.md","name":"GHSA-f2wx-xjfw-xjv6","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Rust file system library","requires_auth":"none","summary":"A race condition in the remove_dir_all function allows attackers to manipulate file system operations, potentially leading to privilege escalation or data modification.","user_interaction":"not_required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Summary\nhttps://github.com/advisories/GHSA-mc8h-8q98-g5hr\nhttps://github.com/XAMPPRocky/remove_dir_all/commit/7247a8b6ee59fc99bbb69ca6b3ca4bfd8c809ead\n\n`tempfile` v0.4.26 ships with affected `remove_dir_all` v0.5.3 and so blocks my deployment of v12 to openSUSE distribution because it imposes a clean `cargo audit`\n\nUpdating `tempfile` is warranted","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"topgrade Time-of-check Time-of-use (TOCTOU) Race Condition in remove_dir_all","id":"GHSA-f2wx-xjfw-xjv6","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"race_condition","year":"2023"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["12.0.1"],"introduced":["0"],"last_affected":[],"package":"topgrade","purl":null,"source":"GHSA-f2wx-xjfw-xjv6"},{"ecosystem":"crates.io","fixed":["12.0.1"],"introduced":["0"],"last_affected":[],"package":"topgrade","purl":"pkg:cargo/topgrade","source":"GHSA-f2wx-xjfw-xjv6"}],"products":null,"published":"2023-07-17","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A race condition in the remove_dir_all function allows attackers to manipulate file system operations, potentially leading to privilege escalation or data modification.","url":"https://insights.sbomify.com/GHSA-f2wx-xjfw-xjv6/"}