CVSS 3.1
7.8 highCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (7.8). EPSS 0.5% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExplain CVE-2018-6954 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-6954?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-6954?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-6954 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| systemd_project:systemd | through 237 |
| canonical:ubuntu_linux | 16.04 |
| canonical:ubuntu_linux | 18.04 |
| canonical:ubuntu_linux | 18.10 |
| opensuse:leap | 42.3 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | systemd | 238-1 | DEBIAN-CVE-2018-6954 |
| Ubuntu | 16.04:LTS | systemd | 229-4ubuntu21.15 | UBUNTU-CVE-2018-6954 USN-3816-1 USN-3816-2 |
| Ubuntu | 18.04:LTS | systemd | 237-3ubuntu10.9 | UBUNTU-CVE-2018-6954 USN-3816-1 USN-3816-2 |
| SUSE | Enterprise Storage 4, Linux Enterprise Desktop 12 SP3, Linux Enterprise Desktop 12 SP4 and 10 more | systemd | 228-150.66.4 | SUSE-SU-2019:1265-1 |
| SUSE | Linux Enterprise Module for Basesystem 15 | systemd | 234-24.20.1 | SUSE-SU-2019:0137-1 |
| openSUSE | Leap 15.0 | systemd, systemd-mini | 234-lp150.20.12.1 | openSUSE-SU-2019:0098-1 |
| openSUSE | Tumbleweed | systemd | 249.4-2.2 | openSUSE-SU-2024:11420-1 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.
Red Hat rates this Moderate.
This flaw affects in particular those systems where custom tmpfiles files are configured (e.g. in /etc/tmpfiles.d). Indeed systemd-tmpfiles installed by system packages set privileges of a directory either to root or to a service specific user and not to interactive users. Even in case they provide one of the vulnerable tmpfiles configuration file (e.g. recursive "Z" type entries), an attacker would still need to perform the attack as the service specific user, which means they would first need to compromise that service.
Moreover, systemd-tmpfiles service is automatically executed only when the system boots, when it is very unlikely an attacker has already a chance to perform any action at all. Otherwise, an attacker would have to wait for an administrator to manually run the `systemd-tmpfiles --create` command.
There is no known mitigation available.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | systemd | Will not fix | |
| Red Hat Enterprise Linux 8 | systemd | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-6954.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.