{"schemaVersion":3,"id":"CVE-2017-18018","aliases":["ALPINE-CVE-2017-18018","UBUNTU-CVE-2017-18018","DEBIAN-CVE-2017-18018"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2018-01-04T04:00:00.000Z","modified":"2025-06-09T15:57:37.581Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":4.7,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":1.9,"severity":"low","vector":"AV:L/AC:M/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Alpine","score":4.7,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":2.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.1,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":4.6,"impact":8.7,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":4.7,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":2.6,"impact":6,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Debian","score":4.7,"severity":"medium","vector":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":2.6,"impact":6,"computed":true}]},"epss":{"probability":0.00345,"percentile":0.26646,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00345},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00345,"percentile":0.26646}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0035,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00345,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00345,"percentile":0.26646}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_ADE15042E2C0CF39","name":"Exploit Reference (lists.gnu.org)","source":"reference","url":"http://lists.gnu.org/archive/html/coreutils/2017-12/msg00045.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","description":"The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/362.html"}],"affected":[{"vendor":"alpine","product":"coreutils","name":"coreutils","label":"coreutils","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/coreutils","purlType":"apk","versions":[{"text":"< 8.30-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 8.28-r0","noFixRecorded":false,"fixedIn":null},{"text":"< 8.29-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.30-r0 | < 8.28-r0 | < 8.29-r2","eol":null,"hubHref":null},{"vendor":"debian","product":"coreutils","name":"coreutils","label":"coreutils","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/coreutils","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"coreutils","name":"coreutils","label":"coreutils","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/coreutils","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"gnu","product":"coreutils","name":"coreutils","label":"coreutils","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 8.29","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 8.29","eol":null,"hubHref":"/vendor/gnu/coreutils"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://lists.gnu.org/archive/html/coreutils/2017-12/msg00045.html","label":"lists.gnu.org/archive/html/coreutils/2017-12/msg00045.html","hostname":"lists.gnu.org","tags":["X Refsource MISC","Exploit","Issue Tracking","Third Party Advisory","REPORT"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2017-18018","label":"security.alpinelinux.org/vuln/CVE-2017-18018","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2017-18018","label":"ubuntu.com/security/CVE-2017-18018","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"http://www.openwall.com/lists/oss-security/2018/01/04/3","label":"www.openwall.com/lists/oss-security/2018/01/04/3","hostname":"www.openwall.com","tags":["REPORT"]},{"url":"https://lists.gnu.org/archive/html/coreutils/2017-12/msg00072.html","label":"lists.gnu.org/archive/html/coreutils/2017-12/msg00072.html","hostname":"lists.gnu.org","tags":["REPORT"]},{"url":"https://lists.gnu.org/archive/html/coreutils/2017-12/msg00073.html","label":"lists.gnu.org/archive/html/coreutils/2017-12/msg00073.html","hostname":"lists.gnu.org","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-18018","label":"www.cve.org/CVERecord?id=CVE-2017-18018","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-18018","label":"security-tracker.debian.org/tracker/CVE-2017-18018","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2019-0022"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-01-04T04:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-06-09T15:57:37.581Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":38,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T21:16:17.118Z","stale":false,"partial":false}}