medium5.5
CVE-2026-35339
The recursive mode (-R) of the chmod utility in uutils coreutils incorrectly handles exit codes when processing multiple files.
Impact
The recursive mode (-R) of the chmod utility in uutils coreutils incorrectly handles exit codes when processing multiple files. The final return value is determined solely by the success or failure of the last file processed. This allows the command to return an exit code of 0 (success) even if errors were encountered on previous files, such as 'Operation not permitted'. Scripts relying on these exit codes may proceed under a false sense of success while sensitive files remain with restrictive or incorrect permissions.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | uu_chmod | < 0.6.0 | 0.6.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Uutils | Coreutils | before 0.6.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-4x34-chg5-mwjj
- https://github.com/uutils/coreutils/security/advisories/GHSA-4x34-chg5-mwjj
- https://nvd.nist.gov/vuln/detail/CVE-2026-35339
- https://github.com/uutils/coreutils/pull/9793
- https://github.com/uutils/coreutils/commit/abd581f62e97d0b147306ac40eac13af71c6fbba
- https://github.com/uutils/coreutils/releases/tag/0.6.0