CUPS cups-browsed Flaw Chain Enables Remote Command Execution
Vulnerability Disclosure · 4 sources · Updated 2mo ago · First seen Sep 26, 2024

A four-CVE chain affecting CUPS and its cups-browsed component allows unauthenticated attackers to trigger remote command execution on vulnerable Linux systems, with potential exposure for macOS hosts using CUPS. An attacker can send a crafted UDP packet to port 631, induce cups-browsed to retrieve data from an attacker-controlled IPP server, and inject malicious printer attributes into a temporary PPD file; execution occurs when a user submits a print job.
The resulting commands run as the lp user and may be constrained by the cupsd AppArmor profile. Internet-exposed CUPS services face the highest risk. Security teams should investigate unexpected UDP/631 traffic, untrusted or anomalous lp-owned files, foomatic-rip executions, and known proof-of-concept marker files; the attack was publicly disclosed with an RCE proof of concept before CVEs and patches were broadly available.


