CVEfocus › CVE database › CVE-2018-6954

CVE-2018-6954

CVSS 7.8 HighEPSS 0.5% (higher than 45% of CVEs)Published 2018-02-13Updated 2025-06-09Assigner: mitre

systemd-tmpfiles in systemd through 237 mishandles symlinks present in non-terminal path components, which allows local users to obtain ownership of arbitrary files via vectors involving creation of a directory and a file under that directory, and later replacing that directory with a symlink. This occurs even if the fs.protected_symlinks sysctl is turned on.

CWE-59

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
10Will not fix
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04systemdFixed237-3ubuntu10.9UBUNTU-CVE-2018-6954
Ubuntu 16.04systemdFixed229-4ubuntu21.15UBUNTU-CVE-2018-6954
Debian 14systemdFixed238-1DEBIAN-CVE-2018-6954
Debian 13systemdFixed238-1DEBIAN-CVE-2018-6954
Debian 12systemdFixed238-1DEBIAN-CVE-2018-6954
Red Hat Enterprise Linux 8systemdNot affected
Red Hat Enterprise Linux 8systemd-containerNot affected
Red Hat Enterprise Linux 8systemd-develNot affected
Red Hat Enterprise Linux 8systemd-journal-remoteNot affected
Red Hat Enterprise Linux 8systemd-libsNot affected
Red Hat Enterprise Linux 8systemd-pamNot affected
Red Hat Enterprise Linux 8systemd-testsNot affected
Red Hat Enterprise Linux 8systemd-udevNot affected
Red Hat Enterprise Linux 7libgudev1Will not fix
Will not fix
Red Hat Enterprise Linux 7libgudev1-develWill not fix
Will not fix
Red Hat Enterprise Linux 7systemdWill not fix
Will not fix
Red Hat Enterprise Linux 7systemd-develWill not fix
Will not fix
Red Hat Enterprise Linux 7systemd-journal-gatewayWill not fix
Will not fix
Red Hat Enterprise Linux 7systemd-libsWill not fix
Will not fix
Red Hat Enterprise Linux 7systemd-networkdWill not fix
Will not fix
Red Hat Enterprise Linux 7systemd-pythonWill not fix
Will not fix
Red Hat Enterprise Linux 7systemd-resolvedWill not fix
Will not fix
Red Hat Enterprise Linux 7systemd-sysvWill not fix
Will not fix

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.