cve.bz

CVE-2017-18078 Link Following

7.8 highExploitEPSS 1.1%

High (7.8). EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
systemd-tmpfiles in systemd before 237 attempts to support ownership/permission changes on hardlinked files even if the fs.protected_hardlinks sysctl is turned off, which allows local users to bypass intended access restrictions via vectors involving a hard link to a file for which the user lacks write access, as demonstrated by changing the ownership of the /etc/passwd file.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 66th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-18078 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-18078?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-18078?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-2017-18078 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.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
systemd_project:systemdbefore 237
debian:debian_linux8.0
opensuse:leap42.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8systemd215-17+deb8u12DLA-1762-1
Debian12, 13, 14systemd237-1DEBIAN-CVE-2017-18078
UbuntuPro:14.04:LTS, Pro:16.04:LTSsystemdno fix listedUBUNTU-CVE-2017-18078
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP2 and 6 moresystemd228-150.32.1SUSE-SU-2018:0546-1
openSUSETumbleweedsystemd249.4-2.2openSUSE-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

Red Hat rates this Moderate.

Red Hat's statement

Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not exploitable in the default configuration Red Hat Enterprise Linux. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification:

https://access.redhat.com/security/updates/classification/.

Red Hat's mitigation

This flaw, and many others like it, is mitigated by enabling hardlink and symlink protections. These protections are enabled by default in Red Hat Enterprise Linux and this vulnerability will only be exploitable if disabled.

To ensure your system is protected, check that `fs.protected_hardlinks` is enabled as in the following example:

# sysctl fs.protected_hardlinks

fs.protected_hardlinks = 1

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7systemdWill not fix

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-2017-18078.

Public exploits

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON