{"answers":{"affected":"2 open source packages ship an affected version, including uucore.","exploited":"There is no known exploitation of GHSA-fqf6-gxhh-2xhw in the wild and no public exploit code.","fix":"Upgrade uucore to 0.6.0 or later.","what":"GHSA-fqf6-gxhh-2xhw is a vulnerability in uucore, published on 7 Jul 2026."},"fix_prompt":"Check this codebase for GHSA-fqf6-gxhh-2xhw and fix it if it is affected.\n\nWhat it is: GHSA-fqf6-gxhh-2xhw is a vulnerability in uucore, published on 7 Jul 2026. \nExploitation: There is no known exploitation of GHSA-fqf6-gxhh-2xhw in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- uucore (crates.io): affected all versions; fixed in 0.6.0\n- uucore (crates.io): affected all versions; fixed in 0.6.0\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-fqf6-gxhh-2xhw/ (Markdown: https://insights.sbomify.com/GHSA-fqf6-gxhh-2xhw/index.md)","id":"GHSA-fqf6-gxhh-2xhw","markdown":"https://insights.sbomify.com/GHSA-fqf6-gxhh-2xhw/index.md","name":"GHSA-fqf6-gxhh-2xhw","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust coreutils library","requires_auth":"none","summary":"Using --suffix without --backup in uutils coreutils fails to create backups, causing silent data loss during file overwrites.","user_interaction":"not_required","vuln_class":"business_logic"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"`determine_backup_mode` in `src/uucore/src/lib/features/backup_control.rs` only checks `--backup`/`-b` and returns `BackupMode::None` when only `--suffix` is given. GNU enables backup mode when `--suffix` is used alone (defaulting to existing/numbered, or `$VERSION_CONTROL`). Affects `cp`, `install`, `mv`, `ln` which share this code.\n\n```\n# uutils: no backup created\n$ coreutils cp --suffix=.bak src dest      # dest.bak NOT created\n# GNU: dest.bak created\n$ cp --suffix=.bak src dest\n```\n\n**Impact:** users/scripts relying on `--suffix` to back up a file before overwrite get silent data loss; breaks GNU compatibility across four utilities. Recommendation: enable backup mode when `--suffix` is present.\n\n_Note: this is primarily a GNU-compatibility/data-safety divergence rather than a classic exploitable vulnerability — review whether it warrants a CVE._\n\n**Remediation:** Acknowledged by Canonical; fixed in PR #9741 (`uucore: use --suffix to enable backup mode`), commit `939ab037a`, merged 2025-12-21. `determine_backup_mode` now has a `--suffix`-alone branch that resolves the mode from `$VERSION_CONTROL` (defaulting to `existing`). Released in **uucore 0.6.0** and later (vulnerable: `\u003c 0.6.0`). Regression tests added in the same file: `test_backup_mode_suffix_without_backup_option` and `test_backup_mode_suffix_without_backup_option_with_env_var`.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.7. Credit: Zellic._","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":"uutils coreutils: cp/install/mv/ln --suffix alone does not enable backup mode (silent data loss vs GNU)","id":"GHSA-fqf6-gxhh-2xhw","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"business_logic","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"uucore","purl":null,"source":"GHSA-fqf6-gxhh-2xhw"},{"ecosystem":"crates.io","fixed":["0.6.0"],"introduced":["0"],"last_affected":[],"package":"uucore","purl":"pkg:cargo/uucore","source":"GHSA-fqf6-gxhh-2xhw"}],"products":null,"published":"2026-07-07","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":"Using --suffix without --backup in uutils coreutils fails to create backups, causing silent data loss during file overwrites.","url":"https://insights.sbomify.com/GHSA-fqf6-gxhh-2xhw/"}