CVE-2026-35345: CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition in Uutils coreutils
A vulnerability in the tail utility of uutils coreutils allows for the exfiltration of sensitive file contents when using the --follow=name option. Unlike GNU tail, the uutils implementation continues to monitor a path after it has been replaced by a symbolic link, subsequently outputting the contents of the link's target. In environments where a privileged user (e.g., root) monitors a log directory, a local attacker with write access to that directory can replace a log file with a symlink to a sensitive system file (such as /etc/shadow), causing tail to disclose the contents of the sensitive file.
AI Analysis
Technical Summary
The vulnerability exists in the uutils coreutils tail command's handling of the --follow=name option. Unlike GNU tail, uutils tail does not stop monitoring a file path when it is replaced by a symbolic link. This allows a local attacker with write access to a directory monitored by a privileged user to replace a log file with a symlink to a sensitive file. The tail utility then outputs the contents of the sensitive file, leading to unauthorized information disclosure. The issue is classified as a Time-of-Check Time-of-Use (TOCTOU) race condition (CWE-367).
Potential Impact
The vulnerability can lead to unauthorized disclosure of sensitive file contents, such as /etc/shadow, if a privileged user uses uutils tail with --follow=name on a directory writable by a local attacker. This compromises confidentiality but does not affect integrity or availability. Exploitation requires local write access and privileges to monitor logs, limiting the attack surface. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the --follow=name option of uutils tail on directories writable by untrusted users, especially when running with elevated privileges. Consider using GNU tail as an alternative, which does not exhibit this behavior.
CVE-2026-35345: CWE-367: Time-of-Check Time-of-Use (TOCTOU) Race Condition in Uutils coreutils
Description
A vulnerability in the tail utility of uutils coreutils allows for the exfiltration of sensitive file contents when using the --follow=name option. Unlike GNU tail, the uutils implementation continues to monitor a path after it has been replaced by a symbolic link, subsequently outputting the contents of the link's target. In environments where a privileged user (e.g., root) monitors a log directory, a local attacker with write access to that directory can replace a log file with a symlink to a sensitive system file (such as /etc/shadow), causing tail to disclose the contents of the sensitive file.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability exists in the uutils coreutils tail command's handling of the --follow=name option. Unlike GNU tail, uutils tail does not stop monitoring a file path when it is replaced by a symbolic link. This allows a local attacker with write access to a directory monitored by a privileged user to replace a log file with a symlink to a sensitive file. The tail utility then outputs the contents of the sensitive file, leading to unauthorized information disclosure. The issue is classified as a Time-of-Check Time-of-Use (TOCTOU) race condition (CWE-367).
Potential Impact
The vulnerability can lead to unauthorized disclosure of sensitive file contents, such as /etc/shadow, if a privileged user uses uutils tail with --follow=name on a directory writable by a local attacker. This compromises confidentiality but does not affect integrity or availability. Exploitation requires local write access and privileges to monitor logs, limiting the attack surface. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid using the --follow=name option of uutils tail on directories writable by untrusted users, especially when running with elevated privileges. Consider using GNU tail as an alternative, which does not exhibit this behavior.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- canonical
- Date Reserved
- 2026-04-02T12:58:56.087Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e8f7ce19fe3cd2cdd00c17
Added to database: 4/22/2026, 4:31:10 PM
Last enriched: 4/22/2026, 5:02:56 PM
Last updated: 4/23/2026, 1:11:21 AM
Views: 7
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.
External Links
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.