{"api_version":"1","generated_at":"2026-04-23T04:52:43+00:00","cve":"CVE-2018-15687","urls":{"html":"https://cve.report/CVE-2018-15687","api":"https://cve.report/api/cve/CVE-2018-15687.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-15687","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-15687"},"summary":{"title":"CVE-2018-15687","description":"A race condition in chown_one() of systemd allows an attacker to cause systemd to set arbitrary permissions on arbitrary files. Affected releases are systemd versions up to and including 239.","state":"PUBLIC","assigner":"security@ubuntu.com","published_at":"2018-10-26 14:29:00","updated_at":"2023-04-20 18:38:00"},"problem_types":["CWE-362"],"metrics":[],"references":[{"url":"https://github.com/systemd/systemd/pull/10517/commits","name":"https://github.com/systemd/systemd/pull/10517/commits","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"recursive chowning fixes by poettering · Pull Request #10517 · systemd/systemd · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/105748","name":"105748","refsource":"BID","tags":["Third Party Advisory","VDB Entry"],"title":"systemd CVE-2018-15687 Local Security Bypass Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://usn.ubuntu.com/3816-1/","name":"USN-3816-1","refsource":"UBUNTU","tags":["Third Party Advisory"],"title":"USN-3816-1: systemd vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.exploit-db.com/exploits/45715/","name":"45715","refsource":"EXPLOIT-DB","tags":["Exploit","Third Party Advisory","VDB Entry"],"title":"systemd - 'chown_one()' Dereference Symlinks - Linux local Exploit","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.gentoo.org/glsa/201810-10","name":"GLSA-201810-10","refsource":"GENTOO","tags":["Third Party Advisory"],"title":"systemd: Multiple vulnerabilities (GLSA 201810-10) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-15687","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-15687","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Jann Horn","lang":""}],"nvd_cpes":[{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"16.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"239","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"freedesktop","cpe5":"systemd","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"systemd_project","cpe5":"systemd","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2018","cve_id":"15687","vulnerable":"1","versionEndIncluding":"239","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"systemd_project","cpe5":"systemd","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2018-15687","qid":"900013","title":"CBL-Mariner Linux Security Update for systemd 239"},{"cve":"CVE-2018-15687","qid":"903060","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for systemd (1801)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","DATE_PUBLIC":"2018-10-25T00:00:00.000Z","ID":"CVE-2018-15687","STATE":"PUBLIC","TITLE":"systemd: chown_one() can dereference symlinks"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"systemd","version":{"version_data":[{"affected":"<=","version_value":"239"}]}}]},"vendor_name":"systemd"}]}},"credit":[{"lang":"eng","value":"Jann Horn"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"A race condition in chown_one() of systemd allows an attacker to cause systemd to set arbitrary permissions on arbitrary files. Affected releases are systemd versions up to and including 239."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"There is a race condition between a stat(2) call and the fchmodat(2) call."}]}]},"references":{"reference_data":[{"name":"GLSA-201810-10","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/201810-10"},{"name":"https://github.com/systemd/systemd/pull/10517/commits","refsource":"MISC","url":"https://github.com/systemd/systemd/pull/10517/commits"},{"name":"105748","refsource":"BID","url":"http://www.securityfocus.com/bid/105748"},{"name":"USN-3816-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/3816-1/"},{"name":"45715","refsource":"EXPLOIT-DB","url":"https://www.exploit-db.com/exploits/45715/"}]},"source":{"defect":["https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1796692"],"discovery":"EXTERNAL"}},"nvd":{"publishedDate":"2018-10-26 14:29:00","lastModifiedDate":"2023-04-20 18:38:00","problem_types":["CWE-362"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH"},"exploitabilityScore":1,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:C/I:C/A:C","accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":6.9},"severity":"MEDIUM","exploitabilityScore":3.4,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:systemd_project:systemd:*:*:*:*:*:*:*:*","versionStartIncluding":"235","versionEndExcluding":"240","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2018","CveId":"15687","Ordinal":"132464","Title":"CVE-2018-15687","CVE":"CVE-2018-15687","Year":"2018"},"notes":[{"CveYear":"2018","CveId":"15687","Ordinal":"1","NoteData":"A race condition in chown_one() of systemd allows an attacker to cause systemd to set arbitrary permissions on arbitrary files. Affected releases are systemd versions up to and including 239.","Type":"Description","Title":null},{"CveYear":"2018","CveId":"15687","Ordinal":"2","NoteData":"2018-10-26","Type":"Other","Title":"Published"},{"CveYear":"2018","CveId":"15687","Ordinal":"3","NoteData":"2018-11-13","Type":"Other","Title":"Modified"}]}}}