CVE-2017-18018
In GNU Coreutils through 8.29, chown-core.c in chown and chgrp does not prevent replacement of a plain file with a symlink during use of the POSIX "-R -L" options, which allows local users to modify the ownership of arbitrary files by leveraging a race condition.
What to do
Fixed builds are available from Alpine: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | coreutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | coreutils | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | coreutils | Will not fix It seems like this will not be fixed upstream (due to the nature of the chown and chgrp utilities), the available patch being a documentation change to warn… | UBUNTU-CVE-2017-18018 | |
| Ubuntu 16.04 | coreutils | Will not fix It seems like this will not be fixed upstream (due to the nature of the chown and chgrp utilities), the available patch being a documentation change to warn… | UBUNTU-CVE-2017-18018 | |
| Ubuntu 14.04 | coreutils | Will not fix It seems like this will not be fixed upstream (due to the nature of the chown and chgrp utilities), the available patch being a documentation change to warn… | UBUNTU-CVE-2017-18018 | |
| Debian 14 | coreutils | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2017-18018 | |
| Debian 13 | coreutils | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2017-18018 | |
| Debian 12 | coreutils | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2017-18018 | |
| Red Hat Enterprise Linux 8 | coreutils | Not affected | ||
| Red Hat Enterprise Linux 8 | coreutils-common | Not affected | ||
| Red Hat Enterprise Linux 8 | coreutils-single | Not affected | ||
| Red Hat Enterprise Linux 7 | coreutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | coreutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | coreutils-libs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | coreutils | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 4 | coreutils | Will not fix Will not fix | ||
| Alpine Linux 3.24 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.23 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.22 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.21 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.20 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.19 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.18 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.17 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.16 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.15 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.14 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.13 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.12 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.11 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.10 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.9 | coreutils | Fixed | 8.30-r0 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.8 | coreutils | Fixed | 8.29-r2 | ALPINE-CVE-2017-18018 |
| Alpine Linux 3.7 | coreutils | Fixed | 8.28-r0 | ALPINE-CVE-2017-18018 |
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.