CVE-2024-36121 netty-incubator-codec-ohttp's BoringSSLAEADContext Repeats Nonces
An integer overflow in Netty's OHTTP codec causes nonce reuse, potentially allowing attackers to decrypt or forge encrypted responses.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-36121?
CVE-2024-36121 is a medium-severity vulnerability in netty-incubator-codec-ohttp, published on 4 Jun 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
netty-incubator-codec-ohttp is the OHTTP implementation for netty. BoringSSLAEADContext keeps track of how many OHTTP responses have been sent and uses this sequence number to calculate the appropriate nonce to use with the encryption algorithm. Unfortunately, two separate errors combine which would allow an attacker to cause the sequence number to overflow and thus the nonce to repeat.
Which versions are affected by CVE-2024-36121?
2 open source packages ship an affected version, including io.netty.incubator:netty-incubator-codec-ohttp. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.netty.incubator:netty-incubator-codec-ohttp Maven | From 0.0.3.Final | 0.0.11.Final |
io.netty.incubator:netty-incubator-codec-ohttp Maven | From 0.0.3.Final | 0.0.11.Final |
Products include Netty Netty-Incubator-Codec-Ohttp.
How do I fix CVE-2024-36121?
Upgrade io.netty.incubator:netty-incubator-codec-ohttp to 0.0.11.Final or later.
Is CVE-2024-36121 being exploited?
There is no known exploitation of CVE-2024-36121 in the wild and no public exploit code.
Other vulnerabilities in netty-incubator-codec-ohttp
- CVE-2024-40642 Absent Input Validation in BinaryHttpParser in the netty incubator codec.bhttp
- CVE-2026-41207 netty-incubator-codec-ohttp's HPKEContext operations may produce empty byte[] on failures
- 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
Sources
Also known as GHSA-g762-h86w-8749.