Command injection in CUPS - CVE-2017-18190
Published: March 12, 2018
Vulnerability identifier: #VU10942
CSH Severity: Low
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-18190
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary commands on the target system.
The weakness exists in a localhost.localdomain whitelist entry in valid_host() in scheduler/client.c due to the localhost.localdomain name is often resolved via a DNS server. A remote attacker can send specially crafted POST requests to the CUPS daemon in conjunction with DNS rebinding, inject and execute arbitrary IPP commands.
The weakness exists in a localhost.localdomain whitelist entry in valid_host() in scheduler/client.c due to the localhost.localdomain name is often resolved via a DNS server. A remote attacker can send specially crafted POST requests to the CUPS daemon in conjunction with DNS rebinding, inject and execute arbitrary IPP commands.
Affected software
CUPS
cups (Alpine package)
cups (Red Hat package)
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, little endian
SUSE Linux
Ubuntu
Red Hat OpenShift Container Platform
cups (Alpine package)
cups (Red Hat package)
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for Power, little endian
SUSE Linux
Ubuntu
Red Hat OpenShift Container Platform
How to mitigate CVE-2017-18190
Update to version 2.2.2.
cups (Alpine package) - update to 2.1.3-r2
cups (Red Hat package) - update to 1.6.3-51.el7
Red Hat OpenShift Container Platform - update to 4.3.40
cups (Red Hat package) - update to 1.6.3-51.el7
Red Hat OpenShift Container Platform - update to 4.3.40