CVEfocus › CVE database › CVE-2017-18018

CVE-2017-18018

CVSS 7.1 HighEPSS 0.3% (higher than 28% of CVEs)Published 2018-01-04Updated 2025-06-09Assigner: mitre

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.

CWE-362

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

18Fixed
11Will not fix
5Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04coreutilsNot affected
vulnerable_code_not_present
Ubuntu 20.04coreutilsNot affected
vulnerable_code_not_present
Ubuntu 18.04coreutilsWill 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.04coreutilsWill 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.04coreutilsWill 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 14coreutilsWill 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 13coreutilsWill 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 12coreutilsWill 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 8coreutilsNot affected
Red Hat Enterprise Linux 8coreutils-commonNot affected
Red Hat Enterprise Linux 8coreutils-singleNot affected
Red Hat Enterprise Linux 7coreutilsWill not fix
Will not fix
Red Hat Enterprise Linux 6coreutilsWill not fix
Will not fix
Red Hat Enterprise Linux 6coreutils-libsWill not fix
Will not fix
Red Hat Enterprise Linux 5coreutilsWill not fix
Will not fix
Red Hat Enterprise Linux 4coreutilsWill not fix
Will not fix
Alpine Linux 3.24coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.23coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.22coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.21coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.20coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.19coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.18coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.17coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.16coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.15coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.14coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.13coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.12coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.11coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.10coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.9coreutilsFixed8.30-r0ALPINE-CVE-2017-18018
Alpine Linux 3.8coreutilsFixed8.29-r2ALPINE-CVE-2017-18018
Alpine Linux 3.7coreutilsFixed8.28-r0ALPINE-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.