diff --git a/crates/uucore/RUSTSEC-0000-0000.md b/crates/uucore/RUSTSEC-0000-0000.md new file mode 100644 index 0000000000..68ad9776b7 --- /dev/null +++ b/crates/uucore/RUSTSEC-0000-0000.md @@ -0,0 +1,30 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "uucore" +date = "2026-04-22" +url = "https://github.com/uutils/coreutils/pull/10035" +cvss = "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N" +keywords = ["return-value"] +aliases = ["CVE-2026-35340"] + +[affected] + +[affected.functions] +"uucore::perms::ChownExecutor::exec" = ["< 0.6.0"] + +[versions] +patched = [">= 0.6.0"] +``` + +# Incorrect exit code during recursive operations + +A flaw in the ChownExecutor used by uutils coreutils chown and chgrp +causes the utilities to return an incorrect exit code during recursive +operations. The final exit code is determined only by the last file +processed. If the last operation succeeds, the command returns 0 even +if earlier ownership or group changes failed due to permission errors. + +This can lead to security misconfigurations where administrative +scripts incorrectly assume that ownership has been successfully +transferred across a directory tree.