CVE-2026-48040
Analyzed Analyzed - Analysis Complete
Memory Corruption in Netty Incubator Codec BHTTP

Publication date: 2026-06-04

Last updated on: 2026-06-05

Assigner: GitHub, Inc.

Description
The netty incubator codec.bhttp is a java language binary http parser. The library implements Oblivious HTTP (RFC 9458) using BoringSSL's HPKE C library via JNI. When deriving native memory addresses for cryptographic operations versions prior to 0.0.22.Final provide a fallback path for direct ByteBufs that do not expose their memory address through `hasMemoryAddress()`. This fallback occurs when `sun.misc.Unsafe` is unavailable to Netty β€” for example, when the JVM is started with `-Dio.netty.noUnsafe=true`, when a SecurityManager restricts Unsafe access, or when running on non-HotSpot JVMs. In these configurations, Netty's default `PooledByteBufAllocator` returns `PooledDirectByteBuf` instances for which `hasMemoryAddress()` returns false. Under the enabling JVM configuration, an unauthenticated network attacker can cause the OHTTP gateway to corrupt memory belonging to other concurrent connections and disclose the contents of adjacent pooled direct buffers by triggering cryptographic operations with crafted OHTTP requests. The corruption occurs regardless of whether the AEAD tag verification succeeds, as BoringSSL zeroizes the output buffer on failure. The information disclosure path provides the attacker with the encryption key needed to extract the leaked data. This violates the confidentiality and integrity of all connections sharing the same Netty buffer arena. Version 0.0.22.Final fixes the issue.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-04
Last Modified
2026-06-05
Generated
2026-06-25
AI Q&A
2026-06-04
EPSS Evaluated
2026-06-23
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
netty netty-incubator-codec-ohttp to 0.0.22 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-125 The product reads data past the end, or before the beginning, of the intended buffer.
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

CVE-2026-48040 is a vulnerability in the netty incubator codec.bhttp library, which is a Java binary HTTP parser implementing Oblivious HTTP using BoringSSL's HPKE via JNI. The issue occurs in versions prior to 0.0.22.Final when the JVM configuration disables or restricts access to sun.misc.Unsafe, causing Netty to use a fallback path for direct ByteBufs that do not expose their memory address.

Under these conditions, an unauthenticated network attacker can send specially crafted OHTTP requests that trigger cryptographic operations, leading to memory corruption in other concurrent connections. This corruption can cause disclosure of the contents of adjacent pooled direct buffers, including encryption keys, violating the confidentiality and integrity of all connections sharing the same Netty buffer arena.

The vulnerability is fixed in version 0.0.22.Final.

Impact Analysis

This vulnerability can have serious security impacts. An unauthenticated attacker can exploit it remotely to corrupt memory of other concurrent connections and disclose sensitive data from adjacent memory buffers.

Because the attacker can obtain encryption keys through this memory disclosure, they can decrypt leaked data, compromising the confidentiality and integrity of all affected connections sharing the same Netty buffer arena.

This means sensitive information transmitted over these connections could be exposed to attackers, potentially leading to data breaches or unauthorized data access.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade the netty-incubator-codec-ohttp library to version 0.0.22.Final or later, where the issue has been fixed.

Additionally, avoid running the JVM with the flag -Dio.netty.noUnsafe=true or configurations that restrict access to sun.misc.Unsafe, such as SecurityManager restrictions or non-HotSpot JVMs, since these trigger the vulnerable fallback path.

Compliance Impact

This vulnerability compromises the confidentiality and integrity of all connections sharing the same Netty buffer arena by allowing an unauthenticated attacker to disclose sensitive data, including encryption keys and adjacent buffer contents.

Such a breach of confidentiality and integrity could lead to non-compliance with data protection standards and regulations like GDPR and HIPAA, which require the protection of sensitive personal and health information against unauthorized access and disclosure.

Detection Guidance

This vulnerability occurs in versions of netty-incubator-codec-ohttp prior to 0.0.22.Final when the JVM is configured to disable Unsafe access (e.g., with the JVM option -Dio.netty.noUnsafe=true) or when running under a SecurityManager restricting Unsafe, or on non-HotSpot JVMs.

To detect if your system is vulnerable, you should first verify the version of netty-incubator-codec-ohttp in use and check the JVM startup parameters for the presence of -Dio.netty.noUnsafe=true or similar restrictions on Unsafe.

Suggested commands to detect vulnerability presence:

  • Check the netty-incubator-codec-ohttp version in your application dependencies or runtime environment to confirm if it is prior to 0.0.22.Final.
  • Inspect JVM startup parameters for Unsafe restrictions: run `ps aux | grep java` (Linux/macOS) or check service configurations to see if `-Dio.netty.noUnsafe=true` is set.
  • If you have access to the running JVM, you can query system properties with a command like `jcmd <pid> VM.system_properties` or use a Java diagnostic tool to check for the `io.netty.noUnsafe` property.

Network detection of exploitation attempts would require monitoring for crafted Oblivious HTTP (OHTTP) requests triggering cryptographic operations, but no specific detection commands or signatures are provided in the available resources.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-48040. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart