# 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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.8
- **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:U`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **CWE:** CWE-125, CWE-787
- **Aliases:** GHSA-32hf-8jw3-v4qq
- **Published:** 2026-06-04T17:33:55.212Z
- **Modified:** 2026-07-22T20:10:00.127Z

## 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

## 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

- Maven `io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl`: affected \< 0.0.22.Final; fixed 0.0.22.Final (osv)
- netty-incubator-codec-ohttp: \< 0.0.22.Final (cvelist)

## Mitigation

- Upgrade io.netty.incubator:netty-incubator-codec-ohttp-hpke-native-boringssl to 0.0.22.Final or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/netty/netty-incubator-codec-ohttp/security/advisories/GHSA-32hf-8jw3-v4qq>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-48040>
- patch: <https://github.com/netty/netty-incubator-codec-ohttp/commit/7ad38d5cc2827af7e067e5c1e1ac37cd4566dad9>
- other: <https://github.com/netty/netty-incubator-codec-ohttp>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-48040>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-32hf-8jw3-v4qq> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-48040> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-48040>
