CVE-2018-15687 in Canonical Ubuntu Linux and 1 more product
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.
Affects 2 products from 2 vendors. Facts below cite their sources.
Requires local access, high complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 16.04 18.04 18.10 |
| Systemd Project | Systemd | ≥ 235, < 240 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2018-15687 |
|---|---|
| BreachSpider ID | BS-2018-GLOBAL-158781-H |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2018-10-26 |
| Last modified | 2025-06-09 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-362: Race Condition
Software behavior depends on event timing that is not enforced, allowing attackers to exploit the timing window.
Related attack patterns (CAPEC)
CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions via CWE-362
CAPEC-26 Leveraging Race Conditions via CWE-362
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A race condition in the chown_one() function of systemd allows an attacker to set arbitrary permissions on arbitrary files, potentially leading to unauthorized access or privilege escalation.
The vulnerability arises from a race condition in the chown_one() function, which can be exploited by an attacker to manipulate file permissions before the intended operation is completed.
Questions
What is CVE-2018-15687?
A race condition in the chown_one() function of systemd allows an attacker to set arbitrary permissions on arbitrary files, potentially leading to unauthorized access or privilege escalation.
What is the CVSS score for CVE-2018-15687?
CVE-2018-15687 has CVSS 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.1%.
Is CVE-2018-15687 actively exploited?
Public exploit available for CVE-2018-15687. Exploitation risk elevated.
How do I remediate CVE-2018-15687?
Priority: HIGH.
What systems are affected by CVE-2018-15687?
CVE-2018-15687 affects Canonical Ubuntu Linux; Systemd Project Systemd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-06-09.