Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-55453 Overview
CVE-2026-55453 affects OpenPrinting CUPS, the open source printing system used across Linux and Unix-like operating systems. The flaw resides in the quote_string() function within backend/ipp.c. Prior to version 2.4.20, this function preserves carriage-return and line-feed characters inside a remote printer-controlled marker-message attribute before report_attr() writes the value to the scheduler status stream. The scheduler then parses an injected newline as a separate PPD: control line and persists an attacker-selected PPD keyword. On a Foomatic-backed queue, a subsequent print job can consume an injected FoomaticRIPCommandLine value and execute commands in the filter context as the lp user.
Critical Impact
A malicious or compromised IPP printer can inject PPD directives that lead to command execution in the CUPS filter context as the lp user when a later job runs on a Foomatic-backed queue.
Affected Products
- OpenPrinting CUPS versions prior to 2.4.20
- Linux and Unix-like systems using CUPS with IPP backend
- Print queues configured with Foomatic filters (FoomaticRIPCommandLine)
Discovery Timeline
- 2026-10-15 - CVE-2026-55453 published to the National Vulnerability Database
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-55453
Vulnerability Analysis
The defect is an improper neutralization of special elements in output ([CWE-74]) within the IPP backend. When CUPS communicates with a remote IPP printer, the backend reads IPP attributes such as marker-message and relays them through report_attr() to the scheduler via the status stream.
The quote_string() helper is intended to escape characters that would otherwise break the status protocol. It fails to strip or escape carriage-return (\r) and line-feed (\n) bytes. The scheduler reads the stream line by line and interprets each line as a directive, so an attacker-controlled newline splits one attribute into two logical records.
Root Cause
The root cause is incomplete sanitization inside backend/ipp.c:quote_string(). The function treats the attribute value as opaque text while the downstream parser treats newline-separated tokens as structural control messages. This mismatch allows a PPD: directive to be forged from inside a marker-message value.
Attack Vector
An adversary who controls or impersonates an IPP printer returns a crafted marker-message containing an embedded newline followed by PPD: FoomaticRIPCommandLine=<payload>. The scheduler persists the injected PPD keyword on the queue. When the next job prints through a Foomatic-backed filter chain, the filter evaluates FoomaticRIPCommandLine and executes the attacker payload as the lp user. Exploitation requires that a legitimate user later submits a print job (UI:R) and that the attacker reach the local IPP channel.
// Patch context: backend/ipp.c - Sanitize IPP attribute strings
/*
* Globals...
*/
+
#if defined(HAVE_GSSAPI) && defined(HAVE_XPC)
static pid_t child_pid = 0; /* Child process ID */
#endif /* HAVE_GSSAPI && HAVE_XPC */
Source: OpenPrinting CUPS commit 806e1b4. The upstream fix adjusts quote_string() to strip or escape CR/LF bytes before report_attr() writes the value to the scheduler stream.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-55453
Indicators of Compromise
- Unexpected PPD: lines in CUPS error_log originating from backend status messages tied to a remote IPP printer.
- Modified PPD files for existing queues containing FoomaticRIPCommandLine values that were not set by an administrator.
- Child processes spawned by foomatic-rip or CUPS filters running as lp that invoke shells, interpreters, or network tools.
Detection Strategies
- Monitor /var/log/cups/error_log for backend attribute reports containing embedded CR/LF sequences or unexpected keyword assignments.
- Compare installed PPD files under /etc/cups/ppd/ against a known-good baseline to catch tampering of FoomaticRIPCommandLine directives.
- Alert on process executions where the parent is a CUPS filter and the child is /bin/sh, /usr/bin/perl, curl, or similar binaries running under uid lp.
Monitoring Recommendations
- Enable auditd rules for writes to /etc/cups/ppd/ and the CUPS state directory.
- Capture network telemetry for IPP (TCP/631) sessions between CUPS clients and untrusted printers.
- Track CUPS package versions across the fleet and flag any host still running a version earlier than 2.4.20.
How to Mitigate CVE-2026-55453
Immediate Actions Required
- Upgrade OpenPrinting CUPS to version 2.4.20 or later on all affected hosts.
- Audit configured print queues and remove any FoomaticRIPCommandLine values that were not explicitly provisioned by an administrator.
- Restrict which IPP printers CUPS clients may discover and connect to, especially on multi-user workstations.
Patch Information
The issue is fixed in CUPS release v2.4.20. Review the upstream commits 806e1b4 and d41cf06, and the GHSA-7hqf-mfhx-7r3v security advisory for the full fix details.
Workarounds
- Disable automatic printer discovery (cups-browsed) where remote IPP printers are not required.
- Avoid Foomatic-backed queues for untrusted or network-reachable printers until the patch is applied.
- Firewall outbound and inbound IPP (TCP/631) traffic to approved print servers only.
# Verify installed CUPS version and upgrade on Debian/Ubuntu
cupsd -v
sudo apt update && sudo apt install --only-upgrade cups cups-client cups-filters
# RHEL/Fedora
sudo dnf upgrade cups cups-filters
# Temporarily stop cups-browsed if remote discovery is not required
sudo systemctl disable --now cups-browsed
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

