netty-incubator-codec-ohttp: OHTTP codecs retain consumed outer cumulation buffers after completed exchanges
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| nettynetty-incubator-codec-ohttp | — | 記載なし |
| Mavenio.netty.incubator:netty-incubator-codec-ohttp |
0.0.27.Final 未満→ 0.0.27.Final |
0.0.27.Final |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
Summary:
OHttpClientCodec and OHttpServerCodec retain the encrypted outer HttpContent in a handler-level cumulationBuffer. After a valid OHTTP exchange completes, the OHTTP request/response context is destroyed, but the outer cumulationBuffer is not released or reset. It remains referenced by the codec until a later inbound content frame replaces it or the handler is removed/channel is closed.
This can pin attacker-influenced pooled/direct buffer capacity on idle keep-alive channels. Across many long-lived idle connections, this can create availability pressure.
Affected components:
- codec-ohttp/src/main/java/io/netty/incubator/codec/ohttp/OHttpClientCodec.java
- codec-ohttp/src/main/java/io/netty/incubator/codec/ohttp/OHttpServerCodec.java
- codec-ohttp/src/main/java/io/netty/incubator/codec/ohttp/OHttpRequestResponseContext.java
Root cause:
OHttpClientCodec retains inbound content into a handler-level cumulationBuffer. On LastHttpContent, it destroys only the OHttpRequestResponseContextHolder. The cumulationBuffer is released in handlerRemoved(), not immediately after successful exchange completion.
OHttpServerCodec follows the same pattern: it retains inbound content into a handler-level cumulationBuffer, and on completed request/response it destroys the OHttpRequestResponseContext. The outer cumulationBuffer remains owned by the codec and is released only when the handler is removed.
OHttpRequestResponseContext.parse() consumes bytes from the caller-provide…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com