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

· Original article ↗

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

People

Products