CVE-2018-6954

systemd: Mishandled symlinks in systemd-tmpfiles allows local users to obtain ownership of arbitrary files

Published Feb 13, 2018 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2018-18698 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.
Ubuntu USN Ubuntu USN USN-3816-1 systemd vulnerabilities
Ubuntu USN Ubuntu USN USN-3816-2 systemd vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00127}

epss

{'score': 0.00054}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jun 9, 2025, 3:54 PM
Reserved
Feb 13, 2018, 12:00 AM
Status
Modified
Published
Feb 13, 2018, 8:29 PM
Modified
Jun 17, 2026, 2:02 AM
Severity
Moderate
Public date
Jan 25, 2018, 12:00 AM