CVE-2018-4180: High severity Apple macOS High Sierra vulnerability
Affected versions of CUPS allow for the SetEnv and PassEnv directives to be specified in the cupsd.conf file, which is editable by non-root users using the cupsctl binary. This allows attacker-controlled environment variables to be passed to CUPS backends, some of which are run as root. By passing malicious values in environment variables to affected backends, it is possible to execute an attacker-supplied binary as root, subject to sandbox restrictions.
References:
https://blog.gdssecurity.com/labs/2018/7/11/cups-local-privilege-escalation-and-sandbox-escapes.html
Upstream patch:
https://github.com/apple/cups/commit/d47f6aec436e0e9df6554436e391471097686ecc
Other sources
CUPS. An issue existed in CUPS. This issue was addressed with improved access restrictions.
In macOS High Sierra before 10.13.5, an issue existed in CUPS. This issue was addressed with improved access restrictions.
— Launchpad
Credit
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
macOS High Sierrato a version that resolves this vulnerability.Fixed in 10.13.5 - Upgrade
Upgrade
debian/cupsto a version that resolves this vulnerability.Fixed in 2.3.3op2-3+deb11u8Fixed in 2.3.3op2-3+deb11u10Fixed in 2.4.2-3+deb12u9Fixed in 2.4.10-3+deb13u2Fixed in 2.4.10-3+deb13u1Fixed in 2.4.16-1
Event History
Peer vulnerabilities
Found alongside the following vulnerabilities.
- CVE-2018-4196
- CVE-2018-4253
- CVE-2018-4256
- CVE-2018-4255
- CVE-2018-4254
- CVE-2018-4258
- CVE-2018-4257
- CVE-2018-7584
- CVE-2018-4219
- CVE-2018-5383
- CVE-2018-4171
- CVE-2018-4194
- CVE-2018-4180
- CVE-2018-4181
- CVE-2018-4182
- CVE-2018-4183
- CVE-2018-4478
- CVE-2018-4251
- CVE-2018-4211
- CVE-2018-4229
- CVE-2018-4159
- CVE-2018-4242
- CVE-2018-4202
- CVE-2018-4217
- CVE-2018-4141
- CVE-2018-4228
- CVE-2018-4236
- CVE-2018-4234
- CVE-2018-4249
- CVE-2018-8897
- CVE-2018-4241
- CVE-2018-4243
- CVE-2018-4237
- CVE-2018-4404
- CVE-2018-4227
- CVE-2018-4235
- CVE-2018-4240
- CVE-2018-4230
- CVE-2018-4221
- CVE-2018-4223
- CVE-2018-4224
- CVE-2018-4225
- CVE-2018-4226
- CVE-2018-4184
- CVE-2018-4198
- CVE-2018-4193
Frequently Asked Questions
What is the vulnerability ID for this issue in CUPS?
The vulnerability ID for this issue in CUPS is CVE-2018-4180.
What is the severity of CVE-2018-4180?
The severity of CVE-2018-4180 is high with a severity value of 7.8.
Which versions of macOS High Sierra are affected by CVE-2018-4180?
Versions of macOS High Sierra before 10.13.5 are affected by CVE-2018-4180.
How can I fix CVE-2018-4180 in macOS High Sierra?
Update your macOS High Sierra to version 10.13.5 or later to fix CVE-2018-4180.
How can I fix CVE-2018-4180 in Debian Linux?
Update CUPS to version 2.2.7-1+deb9u2 or later to fix CVE-2018-4180 in Debian Linux.