SharpIppNextに認証なしでメモリを使い果たされる脆弱性、サービス停止のおそれ
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
| Package | Affected → Fixed | |
|---|---|---|
| danielklechaSharpIppNext | — | Not listed |
| NuGetSharpIppNext |
< 4.1.0→ 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 (usingSharpIppServerto parse incoming IPP requests). It does not affect client-side implementations usingSharpIppClientor 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:
docs/Content/Server/index.md:6–11— Official server example passescontext.Request.Body(unauthenticated) tosharpIppServer.ReceiveRequestAsync(inputStream).
2.…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com