CUPS Vulnerabilities Could Enable Remote Command Execution When a Print Job Is Initiated

Summary
Four CUPS/IPP vulnerabilities can let unauthenticated attackers install or replace a printer and execute commands when a print job is initiated. Wiz reports 83% of cloud environments have affected packages, but says remote exploitation is unlikely.
Key points
- The vulnerabilities affect cups-browsed, libcupsfilters, libppd, and cups-filters through the specified versions: 2.0.1 for the cups-browsed and cups-filters packages, and 2.1b1 for libcupsfilters and libppd.
- An unauthenticated attacker can send traffic to UDP port 631 or, on a local LAN, spoof DNS advertisements to add or replace a printer configuration.
- A malicious printer can execute commands on the system when a print request is made; commands commonly run as the unprivileged lp user.
- Wiz says 83% of cloud environments have at least one instance of affected packages, but estimates remote exploitation is unlikely because printing devices and open UDP port 631 are uncommon in cloud environments.
- As of September 29, 2024, no successful in-the-wild exploitation had been reported; Wiz observed IP addresses attempting UDP communication over port 631, possibly for scanning or security research.
- Recommended mitigations include blocking exposure of UDP port 631, disabling cups-browsed, or setting BrowseRemoteProtocols to dnssd and restarting the service. The article also recommends applying patches.
Article Details
- Vulnerability Types
- Remote unauthenticated printer configuration replacement or installation leading to arbitrary command execution when a print job is initiated
- Severity
- CVSS base scores range from 8.0 to 9.0.
- Affected Versions
- cups-browsed versions up to and including 2.0.1
- libcupsfilters versions up to and including 2.1b1
- libppd versions up to and including 2.1b1
- cups-filters versions up to and including 2.0.1
- Exploitation Status
- not_reported
- Exploit Availability
- unknown
- Patch Status
- partial
- Workarounds
- Avoid exposing UDP port 631 and stop or disable cups-browsed.
- If CUPS support is required, set BrowseRemoteProtocols to dnssd in /etc/cups/cups-browsed.conf, removing cups from the value, then restart cups-browsed.
MITRE ATT&CK
CVE
CVE-2024-47076OpenPrinting · libcupsfiltersdisclosed details of several vulnerabilities impacting CUPS and IPP packages: CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177. These vulnerabilities are unlikely to be exploited in most cloudCVE-2024-47175OpenPrinting · libppddetails of several vulnerabilities impacting CUPS and IPP packages: CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177. These vulnerabilities are unlikely to be exploited in most cloud environmentsCVE-2024-47176openprinting · cups; OpenPrinting · cups-browsed(evilsocket), disclosed details of several vulnerabilities impacting CUPS and IPP packages: CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177. These vulnerabilities are unlikely to beCVE-2024-47177Vendor / Product unavailablevulnerabilities impacting CUPS and IPP packages: CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177. These vulnerabilities are unlikely to be exploited in most cloud environments due to their
People
Products
cups-browsedCVE-2024-47176 cups-browsed Versions up to and including 2.0.1cups-filtersCVE-2024-47177 cups-filters Versions up to and including 2.0.1IPPSimone Margaritelli (evilsocket), disclosed details of several vulnerabilities impacting CUPS and IPP packages: CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177. These vulnerabilities arelibcupsfiltersCVE-2024-47076 libcupsfilters Versions up to and including 2.1b1libppdCVE-2024-47175 libppd Versions up to and including 2.1b1OpenPrinting CUPSresearcher Simone Margaritelli (evilsocket), disclosed details of several vulnerabilities impacting CUPS and IPP packages: CVE-2024-47176, CVE-2024-47076, CVE-2024-47175, and CVE-2024-47177. These
