CVE-2018-6557
High · 7.0CVSS
7.0
EPSS
0.4%
Published
Aug 21, 2018
CISA due date
—
Cloudanix analysis
A bug in an Ubuntu system script that refreshes welcome messages could let someone logged in locally disrupt the computer or gain extra access if certain security settings are turned off.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Privilege Gain
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The MOTD update script mishandles temporary files, enabling local symlink attacks that can overwrite arbitrary files, cause denial of service, or escalate privileges when kernel symlink restrictions are disabled.
Why it matters to the business
Systems running affected Ubuntu releases may experience unplanned outages or unauthorized local access, increasing operational risk on servers and workstations still using the vulnerable package.
How an attack unfolds
A local attacker creates a symlink in a predictable temporary-file location that the MOTD script follows, allowing file overwrite or service disruption; when kernel protections are absent the attacker can target privileged files to gain elevated access.
How to fix it
Upgrade the base-files package to a version that correctly handles temporary files; apply vendor updates for Ubuntu 18.04 LTS and 18.10 and verify the installed package version after the update.
How to confirm the fix worked
Confirm the installed base-files package version is at or above the fixed release; re-execute the MOTD update script under controlled conditions and verify no unexpected file modifications occur.
Typical attack path
- Locate a system running an unpatched base-files package on Ubuntu 18.04 or 18.10
- Create a malicious symlink pointing to a target file in the directory used by the MOTD update script
- Trigger or wait for the periodic MOTD update to execute
- Observe resulting denial of service or attempt privilege escalation via overwritten files
How to detect it
Review system logs for unexpected file modifications or errors from the MOTD update script; inspect temporary directories for recently created symlinks around the time the script runs.
What your security team should do
- Prioritize patching Ubuntu 18.04 LTS and 18.10 systems that still run the vulnerable base-files package
- Disable or restrict periodic MOTD updates on high-value systems until patched
- Audit local user accounts and scheduled jobs that could trigger the script
- Review kernel symlink-protection settings and enable them where supported
The record
The MOTD update script in the base-files package in Ubuntu 18.04 LTS before 10.1ubuntu2.2, and Ubuntu 18.10 before 10.1ubuntu6 incorrectly handled temporary files. A local attacker could use this issue to cause a denial of service, or possibly escalate privileges if kernel symlink restrictions were disabled.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | base-files | 0 | 10.1ubuntu2.2 |
Related vulnerabilities
- CVE-2026-113724 virtualenv is a tool for creating isolated virtual python environments. CWE-59
- CVE-2026-113716 virtualenv is a tool for creating isolated virtual python environments. CWE-59
- CVE-2026-55480 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-59
- CVE-2026-90954 A flaw was found in BusyBox's dpkg-deb archive extraction. CWE-59
- CVE-2026-109274 ImageMagick before 7.1.2-32 contains a time-of-check time-of-use symlink race… CWE-59
- CVE-2026-105081 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 does not properly account for… CWE-59
- CVE-2026-108119 A flaw was found in busybox. CWE-59
- CVE-2026-12345 The cleanup of tempfile.TemporaryDirectory is vulnerable to a race condition. CWE-59