CVE-2026-48040
netty-incubator-codec-ohttp's Incorrect Native Pointer Derivation in Pooled Direct ByteBuf Fallback Leads to Out-of-Bounds Native Memory Access
Also known as GHSA-32hf-8jw3-v4qq
Mitigation
- Upgrade io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl to 0.0.22.Final or later.
Who should check
- Projects that depend on Maven package io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl (< 0.0.22.Final)
- Anyone running netty-incubator-codec-ohttp < 0.0.22.Final
Vulnerability facts
- Affected
- io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl < 0.0.22.Final
- Fixed in
- 0.0.22.Final
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.8 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/E:UOpen in CVSS calculator
Show all 12 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- Exploit maturity: Unreported
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-125, CWE-787
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl | < 0.0.22.Final | 0.0.22.Final | osv |
| netty-incubator-codec-ohttp | < 0.0.22.Final | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-48040. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-48040.md Affected: io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl < 0.0.22.Final Fixed in: 0.0.22.Final Steps: 1. Search this machine and project for io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl (Maven), netty-incubator-codec-ohttp: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-48040 being exploited?
There is no confirmed exploitation: CVE-2026-48040 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-48040?
Medium: CVSS 6.8 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-48040?
io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl < 0.0.22.Final.
Is there a fix for CVE-2026-48040?
Yes. Fixed in 0.0.22.Final. Upgrade io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl to 0.0.22.Final or later.
How do I check if I'm affected by CVE-2026-48040?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.