CVE-2026-35339: CWE-253: Incorrect Check of Function Return Value in Uutils coreutils
The chmod utility in uutils coreutils has a vulnerability in its recursive mode (-R) where it incorrectly reports success by only considering the exit code of the last file processed. This can cause scripts relying on exit codes to mistakenly believe all files were processed successfully, even if earlier files encountered errors such as 'Operation not permitted'. This may lead to sensitive files retaining incorrect permissions.
AI Analysis
Technical Summary
CVE-2026-35339 describes a flaw in the recursive mode (-R) of the chmod utility within uutils coreutils. The utility determines its final exit code based solely on the last file processed, ignoring errors encountered on previous files. This incorrect check of function return values (CWE-253) can cause the command to return a success exit code (0) despite failures on some files, potentially misleading automated scripts or processes that depend on accurate exit status for permission changes.
Potential Impact
Scripts and automation relying on chmod's exit code to verify successful permission changes may proceed under a false assumption of success. This can result in sensitive files retaining restrictive or incorrect permissions, potentially causing security or operational issues. The vulnerability does not affect confidentiality or availability directly but impacts integrity by misreporting the success of permission changes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should manually verify permissions after recursive chmod operations or avoid relying solely on exit codes for success confirmation.
CVE-2026-35339: CWE-253: Incorrect Check of Function Return Value in Uutils coreutils
Description
The chmod utility in uutils coreutils has a vulnerability in its recursive mode (-R) where it incorrectly reports success by only considering the exit code of the last file processed. This can cause scripts relying on exit codes to mistakenly believe all files were processed successfully, even if earlier files encountered errors such as 'Operation not permitted'. This may lead to sensitive files retaining incorrect permissions.
CVSS v3.1
Score 5.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-35339 describes a flaw in the recursive mode (-R) of the chmod utility within uutils coreutils. The utility determines its final exit code based solely on the last file processed, ignoring errors encountered on previous files. This incorrect check of function return values (CWE-253) can cause the command to return a success exit code (0) despite failures on some files, potentially misleading automated scripts or processes that depend on accurate exit status for permission changes.
Potential Impact
Scripts and automation relying on chmod's exit code to verify successful permission changes may proceed under a false assumption of success. This can result in sensitive files retaining restrictive or incorrect permissions, potentially causing security or operational issues. The vulnerability does not affect confidentiality or availability directly but impacts integrity by misreporting the success of permission changes.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should manually verify permissions after recursive chmod operations or avoid relying solely on exit codes for success confirmation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- canonical
- Date Reserved
- 2026-04-02T12:58:56.086Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e8f7ce19fe3cd2cdd00c01
Added to database: 04/22/2026, 16:31:10 UTC
Last enriched: 07/06/2026, 23:20:39 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 105
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.