CVE-2018-15687
systemd: chown_one() can dereference symlinks
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
7.8
systemd: chown_one() can dereference symlinks
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.
- Record
CVE-2018-15687- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-362
- Updated
- 2026-11-02
EUVDEUVD-2018-7557
7.8
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.
- Record
EUVD-2018-7557- CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-wxcv-623q-99fj
7.0
A race condition in chown_one() of systemd allows an attacker to cause systemd to set arbitrary...
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.
- Record
GHSA-wxcv-623q-99fj- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-362
- Updated
- 2026-11-02
NVD
7.0
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.
- Record
CVE-2018-15687- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.9 Medium
AV:L/AC:M/Au:N/C:C/I:C/A:C - Weakness
- CWE-362
- Updated
- 2026-11-02
OSV
7.0
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.
- Record
CVE-2018-15687- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2018-15687
7.0
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.
- Record
DEBIAN-CVE-2018-15687- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-15687
7.0
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.
- Record
UBUNTU-CVE-2018-15687- CVSS 3.1
- 7.0 High
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 7.8 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 3.0
- 4.7 Medium
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11420-1 No score
libsystemd0-249.4-2.2 on GA media
These are all security issues fixed in the libsystemd0-249.4-2.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11420-1- Updated
- 2026-11-02
OSVUSN-3816-1 No score
systemd vulnerabilities
Jann Horn discovered that unit_deserialize incorrectly handled status messages above a certain length. A local attacker could potentially exploit this via NotifyAccess to inject arbitrary state across re-execution and obtain root privileges. (CVE-2018-15686)
Jann Horn discovered a race condition in chown_one(). A local attacker could potentially exploit this by setting arbitrary permissions on certain files to obtain root privileges. This issue only affected Ubuntu 18.04 LTS and Ubuntu 18.10. (CVE-2018-15687)
It was discovered that systemd-tmpfiles mishandled symlinks in non-terminal path components. A local attacker could potentially exploit this by gaining ownership of certain files to obtain root privileges. This issue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2018-6954)
- Record
USN-3816-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
systemdDebian:12 |
before 239-11 | 239-11 |
systemdDebian:13 |
before 239-11 | 239-11 |
systemdDebian:14 |
before 239-11 | 239-11 |
systemdUbuntu:16.04:LTS |
before 229-4ubuntu21.8, plus listed versions 225-1ubuntu9227-2ubuntu1227-2ubuntu2228-1ubuntu2228-2ubuntu1 Show 34 moreShow less228-2ubuntu2228-3ubuntu1228-4ubuntu1228-4ubuntu2228-5ubuntu1228-5ubuntu2228-5ubuntu3228-6ubuntu1229-1ubuntu2229-1ubuntu4229-2ubuntu1229-3ubuntu1229-3ubuntu2229-4ubuntu1229-4ubuntu4229-4ubuntu5229-4ubuntu6229-4ubuntu7229-4ubuntu8229-4ubuntu10229-4ubuntu11229-4ubuntu12229-4ubuntu13229-4ubuntu16229-4ubuntu17229-4ubuntu19229-4ubuntu20229-4ubuntu21229-4ubuntu21.1229-4ubuntu21.2229-4ubuntu21.3229-4ubuntu21.4229-4ubuntu21.5229-4ubuntu21.6 |
229-4ubuntu21.8 |
systemdUbuntu:18.04:LTS |
before 237-3ubuntu10.6, plus listed versions 234-2ubuntu12235-2ubuntu3235-3ubuntu2235-3ubuntu3237-3ubuntu3 Show 8 moreShow less237-3ubuntu4237-3ubuntu6237-3ubuntu7237-3ubuntu8237-3ubuntu10237-3ubuntu10.2237-3ubuntu10.3237-3ubuntu10.4 |
237-3ubuntu10.6 |
systemdUbuntu:16.04:LTS From an advisory covering 3 CVEs |
before 229-4ubuntu21.8, plus listed versions 225-1ubuntu9227-2ubuntu1227-2ubuntu2228-1ubuntu2228-2ubuntu1 Show 34 moreShow less228-2ubuntu2228-3ubuntu1228-4ubuntu1228-4ubuntu2228-5ubuntu1228-5ubuntu2228-5ubuntu3228-6ubuntu1229-1ubuntu2229-1ubuntu4229-2ubuntu1229-3ubuntu1229-3ubuntu2229-4ubuntu1229-4ubuntu4229-4ubuntu5229-4ubuntu6229-4ubuntu7229-4ubuntu8229-4ubuntu10229-4ubuntu11229-4ubuntu12229-4ubuntu13229-4ubuntu16229-4ubuntu17229-4ubuntu19229-4ubuntu20229-4ubuntu21229-4ubuntu21.1229-4ubuntu21.2229-4ubuntu21.3229-4ubuntu21.4229-4ubuntu21.5229-4ubuntu21.6 |
229-4ubuntu21.8 |
systemdUbuntu:18.04:LTS From an advisory covering 3 CVEs |
before 237-3ubuntu10.6, plus listed versions 234-2ubuntu12235-2ubuntu3235-3ubuntu2235-3ubuntu3237-3ubuntu3 Show 8 moreShow less237-3ubuntu4237-3ubuntu6237-3ubuntu7237-3ubuntu8237-3ubuntu10237-3ubuntu10.2237-3ubuntu10.3237-3ubuntu10.4 |
237-3ubuntu10.6 |
systemdopenSUSE:Tumbleweed From an advisory covering 19 CVEs |
before 249.4-2.2 | 249.4-2.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | systemd - 'chown_one()' Dereference Symlinks | 2018-10-29 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-15687 is a high vulnerability (CVSS 7.8) in Systemd, published October 26, 2018. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.06%, the 64th percentile. Fixed in systemd 239-11.
References
security.gentoo.org/glsa/201810-10
github.com/systemd/systemd/pull/10517/commits
securityfocus.com/bid/105748
usn.ubuntu.com/3816-1
exploit-db.com/exploits/45715
nvd.nist.gov/vuln/detail/CVE-2018-15687
Show 26 moreShow less
github.com/advisories/GHSA-wxcv-623q-99fj
security-tracker.debian.org/tracker/CVE-2018-15687
ubuntu.com/security/CVE-2018-15687
ubuntu.com/security/notices/USN-3816-1
cve.org/CVERecord?id=CVE-2018-15687
ubuntu.com/security/CVE-2018-6954
ubuntu.com/security/CVE-2018-15686
suse.com/security/cve/CVE-2016-10156
suse.com/security/cve/CVE-2017-15908
suse.com/security/cve/CVE-2017-18078
suse.com/security/cve/CVE-2017-9445
suse.com/security/cve/CVE-2018-15686
suse.com/security/cve/CVE-2018-15687
suse.com/security/cve/CVE-2018-15688
suse.com/security/cve/CVE-2018-16864
suse.com/security/cve/CVE-2018-16865
suse.com/security/cve/CVE-2018-21029
suse.com/security/cve/CVE-2018-6954
suse.com/security/cve/CVE-2019-20386
suse.com/security/cve/CVE-2019-3842
suse.com/security/cve/CVE-2019-3843
suse.com/security/cve/CVE-2019-3844
suse.com/security/cve/CVE-2019-6454
suse.com/security/cve/CVE-2020-13529
suse.com/security/cve/CVE-2020-1712
suse.com/security/cve/CVE-2021-33910