Skip to main content
Vulnerability Database/CVE-2025-58436

CVE-2025-58436: OpenPrinting CUPS Denial of Service Vulnerability

CVE-2025-58436 is a denial of service vulnerability in OpenPrinting CUPS that allows attackers to render the print server unusable through slow message attacks. This article covers technical details, affected versions, and mitigation.

Published:

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-2025-58436 Overview

CVE-2025-58436 is a denial of service vulnerability in OpenPrinting CUPS, the open source printing system used across Linux and Unix-like operating systems. A client that connects to cupsd but sends data very slowly, for example one byte per second, blocks the daemon as a whole. This renders the print service unusable for all other clients until the slow connection terminates. The flaw affects all CUPS versions prior to 2.4.15 and is tracked under CWE-400: Uncontrolled Resource Consumption. The maintainers released a fix in version 2.4.15.

Critical Impact

A single local client sending bytes at a trickle rate can monopolize cupsd, preventing all legitimate print operations on the host.

Affected Products

  • OpenPrinting CUPS versions prior to 2.4.15
  • Linux distributions bundling vulnerable CUPS packages
  • Unix-like operating systems using CUPS as the print subsystem

Discovery Timeline

  • 2025-11-29 - CVE-2025-58436 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2025-58436

Vulnerability Analysis

The CUPS scheduler cupsd processes client requests using a design that does not enforce timing constraints on inbound message reads. When a client establishes a connection and then transmits request data at an extremely slow rate, the scheduler waits for the complete message before servicing other work. During this wait, additional clients cannot be processed, which effectively suspends the print service.

This pattern mirrors a classic Slowloris-style resource exhaustion attack adapted to the Internet Printing Protocol (IPP). The attacker does not need valid credentials, printer access, or any authentication to trigger the condition. A local user with the ability to open a socket to cupsd is sufficient.

Root Cause

The root cause is uncontrolled resource consumption in the read path of cupsd. The scheduler lacked a bounded read buffer and timeout logic that would detect and evict clients transmitting below a reasonable rate. The patch introduces a defined read buffer size, _HTTP_MAX_BUFFER of 32768 bytes, as part of the broader fix for the unresponsive scheduler condition.

Attack Vector

Exploitation requires local access to the CUPS listening socket and user interaction with the service, per the vector AV:L/AC:L/PR:N/UI:R. The attacker opens a TCP or Unix domain socket to cupsd, begins sending an IPP or HTTP request, and throttles the transmission to a sub-byte-per-second cadence. The scheduler blocks on the slow stream, and other clients receive no response until the attacker closes the connection.

c
// Patch excerpt from cups/http-private.h introducing a bounded read buffer
+#  define _HTTP_MAX_BUFFER	32768	/* Size of read buffer */
 #  define _HTTP_MAX_SBUFFER	65536	/* Size of (de)compression buffer */

 #  define _HTTP_TLS_NONE	0	/* No TLS options */

Source: OpenPrinting CUPS commit 40008d7

Detection Methods for CVE-2025-58436

Indicators of Compromise

  • Long-lived TCP sessions to cupsd on port 631 with minimal byte throughput
  • cupsd process becoming unresponsive to new print requests while remaining alive
  • Legitimate print jobs timing out or hanging in the queue without error logs

Detection Strategies

  • Monitor connection duration and bytes-per-second metrics on the CUPS listening socket to flag sessions below normal IPP transfer rates.
  • Inspect /var/log/cups/access_log and error_log for extended request processing times without completion markers.
  • Correlate local user process activity with abnormally slow socket writes to cupsd using endpoint telemetry.

Monitoring Recommendations

  • Alert on sustained inbound connections to port 631 exceeding typical IPP transaction duration.
  • Track cupsd responsiveness by probing the service at a regular interval and alerting on timeouts.
  • Collect per-process network statistics on hosts running CUPS to identify local clients holding sockets open.

How to Mitigate CVE-2025-58436

Immediate Actions Required

  • Upgrade OpenPrinting CUPS to version 2.4.15 or later on all affected hosts.
  • Apply vendor-provided backports from your Linux distribution's package repository if the upstream release is not yet packaged.
  • Restrict access to cupsd network listeners by binding only to loopback or trusted interfaces where remote printing is not required.

Patch Information

The fix is included in the CUPS v2.4.15 release. The scheduler changes are tracked in commit 40008d7, and the vulnerability is documented in GHSA-8wpw-vfgm-qrrr. Additional context is available on the OpenWall oss-security list.

Workarounds

  • Disable the CUPS service on systems that do not require printing by stopping and masking cups.service and cups.socket.
  • Limit CUPS listener exposure using firewall rules or Listen directives in cupsd.conf to trusted sources only.
  • Place a reverse proxy with request timeout enforcement in front of cupsd when remote access is required.
bash
# Disable CUPS on hosts that do not need printing
sudo systemctl stop cups.service cups.socket
sudo systemctl mask cups.service cups.socket

# Or restrict cupsd to loopback in /etc/cups/cupsd.conf
# Listen localhost:631
# Listen /run/cups/cups.sock
sudo systemctl restart cups

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.