<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Netty-Incubator-Codec-Ohttp-Hpke-Classes-Boringssl - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/netty-incubator-codec-ohttp-hpke-classes-boringssl/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 20 Aug 2026 19:12:50 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/netty-incubator-codec-ohttp-hpke-classes-boringssl/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Information Exposure of HPKE Private Keys in Netty Incubator</title><link>https://feed.craftedsignal.io/briefs/2026-08-netty-hpke-exposure/</link><pubDate>Thu, 20 Aug 2026 19:12:50 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-netty-hpke-exposure/</guid><description>The netty-incubator-codec-ohttp-hpke-classes-boringssl library exposes raw HPKE private key bytes in its toString() methods and exception messages, potentially leading to hardcoded key material in application logs.</description><content:encoded><![CDATA[<p>The library <code>netty-incubator-codec-ohttp-hpke-classes-boringssl</code> (up to and including version 0.0.22.Final) contains a critical information exposure vulnerability related to the handling of HPKE private keys. The library's <code>BoringSSLAsymmetricCipherKeyPair.toString()</code> and <code>BoringSSLAsymmetricKeyParameter.toString()</code> methods explicitly include raw private key byte arrays in their output. Furthermore, the <code>EVP_HPKE_KEY_init_or_throw</code> error-handling path in <code>BoringSSL.java</code> logs the full byte array of a failed private key initialization within an <code>IllegalArgumentException</code> message.</p>
<p>Because Java logging frameworks and APM tools often automatically invoke <code>toString()</code> on objects during structured logging or log exception stack traces, this vulnerability can result in the silent persistence of sensitive cryptographic material in plain-text logs or telemetry systems. This exposure significantly impacts the confidentiality of encrypted Oblivious HTTP (OHTTP) traffic and undermines key rotation and incident response efforts. Defenders should prioritize auditing application logs for the presence of these byte arrays and ensure the library is updated to a non-vulnerable version once released.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Application initializes an HPKE key pair using the vulnerable <code>netty-incubator-codec-ohttp-hpke-classes-boringssl</code> library.</li>
<li>The application performs a cryptographic operation or encounters a malformed key during initialization.</li>
<li>The <code>BoringSSLAsymmetricCipherKeyPair</code> or <code>BoringSSLAsymmetricKeyParameter</code> object is passed to a logging statement (e.g., <code>logger.debug(&quot;KeyPair: {}&quot;, pair)</code>).</li>
<li>The logging framework triggers the <code>toString()</code> method, which concatenates the raw private key bytes into the log string.</li>
<li>Alternatively, the application catches an <code>IllegalArgumentException</code> thrown by <code>EVP_HPKE_KEY_init_or_throw</code> and logs the exception message.</li>
<li>The raw private key bytes are written to the application's local log file or streamed to centralized log management (SIEM/ELK).</li>
<li>Unauthorized users with access to the log repository perform searches or extraction to recover the sensitive private key material.</li>
<li>The adversary uses the recovered key to decrypt intercepted OHTTP traffic or authenticate unauthorized messages.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation leads to the compromise of HPKE private keys, resulting in a total loss of confidentiality for all OHTTP traffic encrypted with those keys. The retention of key material in logs creates a long-term exposure window, as adversaries can recover keys long after they have been rotated in application memory. The number of impacted systems corresponds to all deployments utilizing versions 0.0.22.Final or earlier of the affected library.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade <code>netty-incubator-codec-ohttp-hpke-classes-boringssl</code> to the latest patched version immediately upon release (CVE-2026-61798).</li>
<li>Search enterprise log management systems for pattern matches resembling the leaked key representation, such as <code>&quot;bytes=[0-9, ]+&quot;</code> occurring within <code>BoringSSLAsymmetricKeyParameter</code> objects.</li>
<li>Implement log redaction patterns in logging configurations (e.g., Log4j/Logback filters) to strip sensitive strings or objects associated with the library.</li>
<li>Audit existing logs for high-risk assets to identify if private key material has been exposed historically.</li>
<li>Apply the mitigation of redacting <code>toString()</code> outputs in custom wrappers if updating the library is delayed.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>