CVE-2026-59975: 
C# vulnerability analysis and mitigation

Overview

CVE-2026-59975 is an Uncontrolled Resource Consumption (CWE-400) vulnerability in SharpIppNext, a .NET Standard library for building Internet Printing Protocol (IPP) clients and servers. In versions up to and including 4.0.2, the server-side IppProtocol.ReadIppRequestAsync() method unconditionally copies the entire attacker-supplied IPP document payload into an unbounded MemoryStream with no size limit, enabling unauthenticated remote attackers to exhaust process memory and cause denial of service. The vulnerability was originally published on July 10, 2026, and formally assigned a CVE on November 18, 2026. It carries a CVSS v3.1 base score of 7.5 (High) (Github Advisory, Security Advisory).

Technical details

The root cause is the absence of a size limit when buffering incoming IPP document streams (CWE-400). In SharpIpp/Protocol/IppProtocol.cs (lines 466–470), when ReadDocumentStream is true (the default), the code executes await reader.BaseStream.CopyToAsync(message.Document) into a new MemoryStream() with no upper bound. The full call chain flows from the official server example (ReceiveRequestAsync → ReceiveRawRequestAsync → _ippProtocol.ReadIppRequestAsync), and the existing validator only checks IPP attribute string lengths after parsing — it does not constrain the document stream. An unauthenticated attacker needs only network access to the IPP endpoint and the ability to send an HTTP POST request with a large body; no credentials or special privileges are required (Security Advisory, Patch Commit).

Impact

Successful exploitation causes the target server process to exhaust heap memory, resulting in an OutOfMemoryException or OS-level OOM kill that crashes the ASP.NET host process and renders the IPP/print service unavailable. The attack has no confidentiality or integrity impact — it is a pure availability attack. Any application using SharpIppNext as a server (e.g., print servers, document management systems, IoT firmware) is affected out of the box; client-only implementations using SharpIppClient are not affected. The attack is trivially repeatable since no authentication is required, making sustained denial of service straightforward (Security Advisory, Github Advisory).

Exploitability

A public proof-of-concept (PoC) Python script (poc.py) and a Dockerized vulnerable server are included in the security advisory, demonstrating the vulnerability by sending a 100 MB IPP body and confirming unbounded buffering via the server's docLength response. The exploit is fully automated, requires no authentication, and is executable with a standard HTTP client. The EPSS score is approximately 0.623% (51st percentile). There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog (Github Advisory, Security Advisory).

Exploitation steps

  1. Reconnaissance: Identify network-accessible services running SharpIppNext versions ≤ 4.0.2 as an IPP server, typically listening on HTTP (default port 8631 or 631). Scan for open ports and confirm the endpoint accepts Content-Type: application/ipp POST requests.
  2. Construct a valid IPP/2.0 Print-Job header: Build a minimal IPP request with version 0x0200, operation-id 0x0002 (Print-Job), request-id 0x00000001, an operation-attributes-tag (0x01), mandatory attributes-charset and attributes-natural-language attributes, and an end-of-attributes-tag (0x03).
  3. Append an oversized document body: Concatenate an attacker-controlled byte sequence (e.g., b'X' * doc_size_bytes) after the end-of-attributes tag. The PoC uses 100 MB by default; larger values (e.g., 4 GB) are intended to trigger OOM.
  4. Send the crafted HTTP POST request: Transmit the full payload to the IPP endpoint with no credentials: POST / HTTP/1.1, Content-Type: application/ipp. No authentication headers are needed.
  5. Observe server memory exhaustion: The server's ReadIppRequestAsync copies all bytes into an unbounded MemoryStream. At 100 MB, the server echoes docLength=104857600 confirming buffering; at sizes exceeding available RAM, the process crashes with an OOM error, denying service to legitimate users. The attack can be repeated indefinitely (Security Advisory).

Indicators of compromise

  • Network: Unusually large HTTP POST requests (tens to thousands of MB) to the IPP endpoint (e.g., port 8631 or 631) with Content-Type: application/ipp; repeated large POST requests from the same or rotating source IPs.
  • Logs: ASP.NET/application logs showing OutOfMemoryException or abrupt process termination; HTTP access logs with very large Content-Length values on POST requests to the IPP route.
  • Process: Sudden spike in memory consumption by the .NET server process followed by an OOM kill or process restart; container or host-level OOM events logged by the OS (e.g., Linux kernel OOM killer messages in /var/log/syslog or dmesg).
  • Application: IPP service becoming unresponsive or restarting unexpectedly; IppRequestException with status ClientErrorRequestEntityTooLarge in patched versions (indicating attempted exploitation post-patch) (Security Advisory).

Mitigation and workarounds

Upgrade SharpIppNext to version 4.1.0 or later, which introduces a MaxDocumentStreamBytes property (defaulting to 128 MB) that enforces a configurable document size cap and throws ClientErrorRequestEntityTooLarge when exceeded (v4.1.0 Release, Patch Commit). If an immediate upgrade is not possible, restrict network access to the IPP server endpoint to trusted clients only using firewall rules or network segmentation. Additionally, implement OS- or container-level memory quotas (e.g., Docker --memory limits) to prevent a single OOM event from taking down the entire host. Setting ReadDocumentStream = false in IppProtocol is another workaround if document body processing is not required, as it bypasses the vulnerable code path entirely (Github Advisory).

Additional resources


Source: This report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-59975HIGH7.5
  • C# logoC#
  • SharpIppNext
NoYesNov 18, 2026
CVE-2026-102529HIGH7.5
  • C# logoC#
  • HtmlSanitizer
NoYesNov 17, 2026
CVE-2026-128082HIGH7.5
  • C# logoC#
  • AutoMapper
NoYesNov 13, 2026
CVE-2026-128081HIGH7.5
  • C# logoC#
  • AutoMapper
NoYesNov 13, 2026
CVE-2026-120796MEDIUM5.3
  • C# logoC#
  • Microsoft.NETCore.App.Runtime.linux-musl-x64
NoYesNov 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management