GHSA-fqf6-gxhh-2xhw: uutils coreutils Cp/install/mv/ln --suffix Alone Does Not Vulnerability
HIGHGHSA-fqf6-gxhh-2xhw is a HIGH cp/install/mv/ln --suffix alone does not vulnerability (CWE-440: Expected Behavior Violation) affecting uutils coreutils libraries in the crates.io ecosystem. The issue involves cp/install/mv/ln --suffix alone does not enable backup mode (silent data loss vs gnu). Remediation is available by upgrading affected packages to version 0.6.0.
GHSA-fqf6-gxhh-2xhw at a Glance
How to Fix GHSA-fqf6-gxhh-2xhw
To remediate this vulnerability, upgrade all affected uutils coreutils dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade uucore to 0.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for uucore
How to Check if You Are Affected
To determine whether your application is affected by GHSA-fqf6-gxhh-2xhw, inspect your project dependencies for uutils coreutils:
inspect dependencies for uucore
Analyze the terminal output to locate any version of uutils coreutils in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-440: Expected Behavior Violation, where a feature, api, or function does not perform according to its specification. In uutils coreutils, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-fqf6-gxhh-2xhw Affected uutils coreutils Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
uucore
|
crates.io |
< 0.6.0
|
0.6.0
|
References
Frequently Asked Questions
What is GHSA-fqf6-gxhh-2xhw?
Which uutils coreutils versions are affected?
What version fixes GHSA-fqf6-gxhh-2xhw?
Is uucore affected?
What CWE is associated with GHSA-fqf6-gxhh-2xhw?
How can I check crates.io dependencies for GHSA-fqf6-gxhh-2xhw?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fqf6-gxhh-2xhw",
"modified" : "2026-07-07T19:36:17Z",
"published" : "2026-07-07T19:36:17Z",
"aliases" : [ ],
"summary" : "uutils coreutils: cp/install/mv/ln --suffix alone does not enable backup mode (silent data loss vs GNU)",
"details" : "`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: `< 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._",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "uucore"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/security/advisories/GHSA-fqf6-gxhh-2xhw"
}, {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/pull/9741"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/uutils/coreutils"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-440", "CWE-693" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-07T19:36:17Z",
"nvd_published_at" : null
}
}