Skip to content
High 7.5

SharpIppNextに認証なしでメモリを使い果たされる脆弱性、サービス停止のおそれ

CVE-2026-59975 First seen on SecPulse

Summary

SharpIppNextのサーバー実装に、サイズ上限のない文書データを受け付けて大量のメモリを消費させる脆弱性が見つかりました。認証のない遠隔のクライアントから、メモリ不足によるプロセス停止を引き起こされるおそれがあります。4.1.0より前のバージョンが対象で、4.1.0で修正されています。クライアント専用の実装は影響を受けません。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

SharpIppNextのサーバー実装に、サイズ上限のない文書データを受け付けて大量のメモリを消費させる脆弱性が見つかりました。認証のない遠隔のクライアントから、メモリ不足によるプロセス停止を引き起こされるおそれがあります。4.1.0より前のバージョンが対象で、4.1.0で修正されています。クライアント専用の実装は影響を受けません。

Affected packages

PackageAffected → Fixed
danielklechaSharpIppNext —
NuGetSharpIppNext
< 4.1.0→ 4.1.0
Original description The description as published by the source.

Summary

SharpIppNext's IppProtocol.ReadIppRequestAsync() unconditionally copies the entire attacker-supplied IPP document payload into an unbounded MemoryStream with no size limit. Because this behavior is enabled by default (ReadDocumentStream = true) and the official server documentation shows HttpContext.Request.Body being passed directly to ReceiveRequestAsync() without authentication, an unauthenticated remote attacker can exhaust the server process's memory by sending an arbitrarily large IPP request body, causing an Out-Of-Memory (OOM) condition and denial of service.

[!NOTE]
This vulnerability only affects server-side implementations (using SharpIppServer to parse incoming IPP requests). It does not affect client-side implementations using SharpIppClient or client-side request construction.

Details

The vulnerable sink is in SharpIpp/Protocol/IppProtocol.cs:

// IppProtocol.cs:39 — enabled by default
public bool ReadDocumentStream { get; set; } = true;

// IppProtocol.cs:466–470 — no size cap on the copy
if (ReadDocumentStream)
{
    message.Document = new MemoryStream();
    await reader.BaseStream.CopyToAsync(message.Document);  // unbounded
    message.Document.Seek(0, SeekOrigin.Begin);
}

The full call chain from the public API to the vulnerable sink:

  1. docs/Content/Server/index.md:6–11 — Official server example passes context.Request.Body (unauthenticated) to sharpIppServer.ReceiveRequestAsync(inputStream).
    2.…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details