CVE-2018-4180: High severity Apple macOS High Sierra vulnerability

Published Jun 1, 2018
·
Updated

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

Dan Bastone(Gotham Digital Science)

Affected Software

10 affected componentsFixes available
Apple macOS High Sierra<10.13.5
10.13.5
Apple Sierra
Apple El Capitan
Apple iOS and macOS<10.13.5
Debian Debian Linux=9.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Canonical Ubuntu Linux=18.04
debian/cups
2.3.3op2-3+deb11u82.3.3op2-3+deb11u102.4.2-3+deb12u92.4.10-3+deb13u22.4.10-3+deb13u12.4.16-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade macOS High Sierra to a version that resolves this vulnerability.

    Fixed in 10.13.5
  2. Upgrade

    Upgrade debian/cups to 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

Jun 1, 2018
Data Sourced
12:00 AM
DescriptionWeaknessAffected Software
Jul 11, 2018
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedySeverity
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Jul 23, 2018
Data Sourced
via Red Hat·08:05 AM
DescriptionSeverityAffected Software
Jan 11, 2019
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Oct 3, 2019
Data Sourced
via NVD·12:03 AM
DescriptionSeverityAffected Software
Updated
12:03 AM
Affected Software
Nov 21, 2024
Updated
via NVD·04:06 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the vulnerability ID for this issue in CUPS?

The vulnerability ID for this issue in CUPS is CVE-2018-4180.

2

What is the severity of CVE-2018-4180?

The severity of CVE-2018-4180 is high with a severity value of 7.8.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203