Netty OHTTP codec exposes HPKE private keys in strings and logs
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
netty-incubator-codec-ohttp before 0.0.23.Final and io.netty.incubator:netty-incubator-codec-ohttp-hpke-classes-boringssl before 0.0.23.Final expose HPKE private keys. The BoringSSL key pair and key parameter toString methods print private key bytes, and key initialization puts rejected key bytes in exception messages (CWE-532). Applications that log these objects write complete private keys to logs or telemetry, and anyone who reads those records can recover the key.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
netty-incubator-codec-ohttp implements Oblivious HTTP (OHTTP) gateway and client functionality using Netty. Prior to 0.0.23.Final, BoringSSLAsymmetricCipherKeyPair.toString in codec-ohttp-hpke-classes-boringssl/src/main/java/io/netty/incubator/codec/hpke/boringssl/BoringSSLAsymmetricCipherKeyPair.java includes its private parameter, BoringSSLAsymmetricKeyParameter.toString in codec-ohttp-hpke-classes-boringssl/src/main/java/io/netty/incubator/codec/hpke/boringssl/BoringSSLAsymmetricKeyParameter.java renders the complete private-key byte array when isPrivate is true, and BoringSSL.EVP_HPKE_KEY_init_or_throw in codec-ohttp-hpke-classes-boringssl/src/main/java/io/netty/incubator/codec/hpke/boringssl/BoringSSL.java includes rejected privateKeyBytes in an exception message. Applications that log affected key-pair objects or initialization exceptions can persist complete HPKE private key material in logs or telemetry. Anyone who can read those records can recover the key and may compromise OHTTP message confidentiality or authenticity expectations while the key remains usable. This issue is fixed in version 0.0.23.Final.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| netty | netty-incubator-codec-ohttp | before 0.0.23.Final | 0.0.23.Final | Patch available | CNA |
| — | io.netty.incubator:netty-incubator-codec-ohttp-hpke-classes-boringssl (Maven) | before 0.0.23.Final | 0.0.23.Final | Patch available | GHSA-2mc4-j865-9q4r |
- netty-incubator-codec-ohttp Vendornetty Affected before 0.0.23.Final Fixed in 0.0.23.Final Patch available CNA
- io.netty.incubator:netty-incubator-codec-ohttp-hpke-classes-boringssl (Maven) Vendor— Affected before 0.0.23.Final Fixed in 0.0.23.Final Patch available GHSA-2mc4-j865-9q4r
Remediation
Upgrade netty-incubator-codec-ohttp and io.netty.incubator:netty-incubator-codec-ohttp-hpke-classes-boringssl to 0.0.23.Final, which fixes both products.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA netty-incubator-codec-ohttp (netty) Fixed in 0.0.23.Final
- Fix · GHSA-2mc4-j865-9q4r io.netty.incubator:netty-incubator-codec-ohttp-hpke-classes-boringssl (Maven) Fixed in 0.0.23.Final Advisory →
Timeline
- 2026-11-19 Threatist record created from CVE-2026-61798
- 2026-11-20 CISA SSVC decision points changed
References
Other 4
- https://github.com/netty/netty-incubator-codec-ohttp/security/advisories/GHSA-2mc4-j865-9q4r
- https://github.com/netty/netty-incubator-codec-ohttp/commit/2ad8eed90e3e47a23e46589b5c68463b4741c04c
- https://github.com/netty/netty-incubator-codec-ohttp/releases/tag/netty-incubator-codec-parent-ohttp-0.0.23.Final
- https://github.com/netty/netty-incubator-codec-ohttp
More netty vulnerabilities
- TI-2023-23979 HTTP/2 request cancellation lets attackers exhaust server resources KEVCVSS 3.1HIGH 7.5
- TI-2026-30861 Netty: HTTP/1.0 TE+CL Coexistence Bypasses Smuggling Sanitization CVSS 3.1CRITICAL 9.8
- TI-2026-30864 Netty: HttpClientCodec response desynchronization CVSS 3.1CRITICAL 9.1
- TI-2026-30859 Netty: DNS Codec Input Validation Bypass in Netty (Encoder + Decoder) CVSS 3.1CRITICAL 9.1
- TI-2026-64821 Netty 4.2.11 through 4.2.17 QUIC Hostname Verification Bypass CVSS 4.0HIGH 8.7
- TI-2026-64818 Netty HTTP/3 QPACK encoder-stream unbounded memory exhaustion DoS CVSS 4.0HIGH 8.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences