CVE-2024-36121 netty-incubator-codec-ohttp's BoringSSLAEADContext Repeats Nonces

Medium 5.9 Published Updated

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.

Weakness: CWE-323, CWE-200, CWE-190

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.

PackageAffectedFixed in
io.netty.incubator:netty-incubator-codec-ohttp MavenFrom 0.0.3.Final0.0.11.Final
io.netty.incubator:netty-incubator-codec-ohttp MavenFrom 0.0.3.Final0.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.

Sources

Also known as GHSA-g762-h86w-8749.

Is CVE-2024-36121 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free