| 1 |
# Security Policy |
| 2 |
|
| 3 |
## Supported Versions |
| 4 |
|
| 5 |
We provide security updates only for the latest released version of `uutils/coreutils`. |
| 6 |
Older versions may not receive patches. |
| 7 |
If you are using a version packaged by your Linux distribution, please check with your distribution maintainers for their update policy. |
| 8 |
|
| 9 |
--- |
| 10 |
|
| 11 |
## Threat Model and Scope |
| 12 |
|
| 13 |
`uutils/coreutils` is a set of **local** command-line utilities. There is no |
| 14 |
network-facing service, so remote vulnerabilities do not apply. When assessing |
| 15 |
whether a report is a security issue, we focus on whether it crosses a trust or |
| 16 |
privilege boundary on the local system. |
| 17 |
|
| 18 |
**In scope** (treated as security issues): |
| 19 |
|
| 20 |
- **Privilege-boundary violations** - bypassing a documented safety guard |
| 21 |
(e.g. `--preserve-root`), acting on files outside the intended scope, or |
| 22 |
privilege escalation in setuid/sudo contexts. |
| 23 |
- **Filesystem race conditions** - TOCTOU bugs, symlink following, and unsafe |
| 24 |
directory traversal in utilities that recurse or operate on paths |
| 25 |
(`cp`, `mv`, `rm`, `chown`, `chmod`, `install`, …). *TOCTOU* |
| 26 |
(Time-Of-Check to Time-Of-Use) is when a utility checks a file's state |
| 27 |
(existence, type, permissions) and then acts on it in a separate step, leaving |
| 28 |
a window for an attacker to swap the path in between - e.g. replacing a regular |
| 29 |
file with a symlink so the action lands on a different target. *Safe |
| 30 |
traversal* is the defense: when walking a directory tree, descend with |
| 31 |
symlink-aware primitives (`openat`/`O_NOFOLLOW`, file descriptors instead of |
| 32 |
re-resolved paths) so a symlink swapped in mid-walk cannot redirect the |
| 33 |
operation outside the intended tree. |
| 34 |
- **Unintended destructive actions** - operations that delete, overwrite, or |
| 35 |
signal something the user did not ask for, **where the input that triggers it |
| 36 |
reaches the utility across a trust boundary**: an attacker-supplied filename |
| 37 |
or file content that a privileged script, cron job, or automated pipeline |
| 38 |
processes. A divergence from GNU makes such a bug real and worth fixing, but |
| 39 |
it is the boundary crossing that makes it a security issue - see "What makes a |
| 40 |
report a vulnerability" below. |
| 41 |
- Memory-safety issues, integer overflow, or unbounded allocation reachable |
| 42 |
from untrusted input. |
| 43 |
|
| 44 |
**Out of scope** (report as a normal bug, not a security issue): |
| 45 |
|
| 46 |
- Crashes, panics, or incorrect output with no privilege or safety impact. |
| 47 |
- Cosmetic differences from GNU (messages, exit-code-only mismatches) that do |
| 48 |
not change which files or processes are affected. |
| 49 |
- Issues requiring an already-privileged or already-malicious local actor who |
| 50 |
could achieve the same effect directly. |
| 51 |
- **A divergence from GNU on its own.** Differing from GNU - including failing |
| 52 |
where GNU errors, or erroring where GNU succeeds - is a bug we want reported, |
| 53 |
but it is not by itself a vulnerability. The question is what the divergence |
| 54 |
lets an attacker *do* that they could not do already. For example: an |
| 55 |
argument-parsing difference that makes a utility treat an attacker-chosen |
| 56 |
filename as an option is a real bug, but if the result stays inside the |
| 57 |
caller's own permissions and the operands the caller already named, no |
| 58 |
boundary was crossed - it belongs in a public issue. |
| 59 |
- **Data loss or a destructive action with no boundary crossing** - a utility |
| 60 |
destroying the caller's own files, under the caller's own permissions, from |
| 61 |
the caller's own arguments. |
| 62 |
- **An absent or ineffective mitigation that grants no access.** A control that |
| 63 |
fails open leaves the user where they would have been without it. That is a |
| 64 |
bug to fix promptly, not an advisory, unless the failure itself hands someone |
| 65 |
access they did not have. |
| 66 |
- **Availability bounded to the caller's own job** - a hang, an unbounded loop, |
| 67 |
or resource use that affects only the invocation that asked for it (see below). |
| 68 |
|
| 69 |
### What makes a report a vulnerability |
| 70 |
|
| 71 |
One test decides it: **name the attacker and what they gain.** |
| 72 |
|
| 73 |
- *Who is the attacker?* If the only party in the reproduction is the operator |
| 74 |
running their own command in their own environment, there is no boundary and |
| 75 |
no vulnerability. What *could* happen in a hypothetical hostile deployment |
| 76 |
does not supply one. |
| 77 |
- *What do they control?* Inputs - a filename, file contents, a directory a |
| 78 |
privileged process walks, the environment a caller passes in. Not the |
| 79 |
privileged process's own code, arguments, or configuration. |
| 80 |
- *What do they end up with that they did not have before?* If the end state |
| 81 |
gives them no access, no privilege, and no reach beyond what they already had |
| 82 |
- if it is merely *less* of something the operator wanted - it is a bug. |
| 83 |
|
| 84 |
If you cannot answer all three, please open a normal public issue instead. That |
| 85 |
is not a lesser outcome: it gets the bug fixed faster, in the open, and you are |
| 86 |
credited the same way. **Declining an advisory is never declining the fix** - if |
| 87 |
we judge a report to be a bug rather than a vulnerability, we will say so |
| 88 |
plainly, file it publicly, credit you, and fix it. |
| 89 |
|
| 90 |
If you are unsure, report it privately anyway. We would much rather triage a |
| 91 |
borderline report than miss a real one. |
| 92 |
|
| 93 |
### Local denial-of-service |
| 94 |
|
| 95 |
Because these are local tools, resource exhaustion (hang, infinite loop, |
| 96 |
unbounded memory/CPU, crash on crafted input) is only a security issue when the |
| 97 |
triggering input **crosses a trust boundary**. A user who runs a utility on their |
| 98 |
own data and exhausts their own resources is harming only their own invocation - |
| 99 |
that is a normal bug. It is in scope when crafted, untrusted input reaches the |
| 100 |
utility through a boundary the victim does not control, such as a privileged |
| 101 |
script, a cron job, or an automated pipeline that processes attacker-influenced |
| 102 |
filenames or file contents and is thereby wedged, blocked, or terminated. |
| 103 |
|
| 104 |
Severity reflects impact, not just whether a bug exists: a guard bypass that can |
| 105 |
hit the whole filesystem is critical, while a local availability issue bounded by |
| 106 |
the caller's existing permissions is low. |
| 107 |
|
| 108 |
--- |
| 109 |
|
| 110 |
## Reporting a Vulnerability |
| 111 |
|
| 112 |
**Do not open public GitHub issues for security vulnerabilities.** |
| 113 |
This prevents accidental disclosure before a fix is available. |
| 114 |
|
| 115 |
Please use one of the following methods: |
| 116 |
|
| 117 |
- **GitHub (preferred):** open a private report at |
| 118 |
<https://github.com/uutils/coreutils/security/advisories/new> |
| 119 |
("Report a vulnerability"). |
| 120 |
- **Email:** [[email protected]](mailto:[email protected]) |
| 121 |
- **Encryption (optional):** You may encrypt your report using our PGP key: |
| 122 |
Fingerprint: B60D B599 4D39 BEC4 D1A9 5CCF 7E65 28DA 752F 1BE1 |
| 123 |
--- |
| 124 |
|
| 125 |
### What to Include in Your Report |
| 126 |
|
| 127 |
To help us investigate and resolve the issue quickly, please include as much detail as possible: |
| 128 |
|
| 129 |
- **Type of issue:** e.g. privilege escalation, information disclosure. |
| 130 |
- **Location in the source:** file path, commit hash, branch, or tag. |
| 131 |
- **Steps to reproduce:** exact commands, test cases, or scripts. |
| 132 |
- **Special configuration:** any flags, environment variables, or system setup required. |
| 133 |
- **Affected systems:** OS/distribution and version(s) where the issue occurs. |
| 134 |
- **Impact:** your assessment of the potential severity (DoS, RCE, data leak, etc.). |
| 135 |
|
| 136 |
--- |
| 137 |
|
| 138 |
## Disclosure Policy |
| 139 |
|
| 140 |
We follow a **Coordinated Vulnerability Disclosure (CVD)** process: |
| 141 |
|
| 142 |
1. We will acknowledge receipt of your report within **10 days**. |
| 143 |
2. We will investigate, reproduce, and assess the issue. |
| 144 |
3. We will provide a timeline for developing and releasing a fix. |
| 145 |
4. Once a fix is available, we will publish a GitHub Security Advisory. |
| 146 |
5. You will be credited in the advisory unless you request anonymity. |