Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-40642

HIGH 8.1EPSS 59%

Absent Input Validation in BinaryHttpParser in the netty incubator codec.bhttp

Also known as GHSA-q8f2-hxq5-cp4h

Mitigation

  • Upgrade io.netty.incubator:netty-incubator-codec-bhttp to 0.0.13.Final or later.

Who should check

  • Projects that depend on Maven package io.netty.incubator:netty-incubator-codec-bhttp (< 0.0.13.Final)
  • Anyone running netty-incubator-codec-ohttp < 0.0.13.Final

Vulnerability facts

Affected
io.netty.incubator:netty-incubator-codec-bhttp < 0.0.13.Final
Fixed in
0.0.13.Final
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.93% chance of exploitation in 30 days (percentile 59, 2026-11-26)
CWE
CWE-20
Published
Modified

Description

The netty incubator codec.bhttp is a java language binary http parser. In affected versions the `BinaryHttpParser` class does not properly validate input values thus giving attackers almost complete control over the HTTP requests constructed from the parsed output. Attackers can abuse several issues individually to perform various injection attacks including HTTP request smuggling, desync attacks, HTTP header injections, request queue poisoning, caching attacks and Server Side Request Forgery (SSRF). Attacker could also combine several issues to create well-formed messages for other text-based protocols which may result in attacks beyond the HTTP protocol. The BinaryHttpParser class implements the readRequestHead method which performs most of the relevant parsing of the received request. The data structure prefixes values with a variable length integer value. The parsing code below first gets the lengths of the values from the prefixed variable length integer. After it has all of the lengths and calculates all of the indices, the parser casts the applicable slices of the ByteBuf to String. Finally, it passes these values into a new `DefaultBinaryHttpRequest` object where no further parsing or validation occurs. Method is partially validated while other values are not validated at all. Software that relies on netty to apply input validation for binary HTTP data may be vulnerable to various injection and protocol based attacks. This issue has been addressed in version 0.0.13.Final. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected and fixed versions

Package / productAffectedFixedSource
Maven io.netty.incubator:netty-incubator-codec-bhttp< 0.0.13.Final0.0.13.Finalosv
netty-incubator-codec-ohttp< 0.0.13.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-2024-40642. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40642.md
Affected: io.netty.incubator:netty-incubator-codec-bhttp < 0.0.13.Final
Fixed in: 0.0.13.Final

Steps:
1. Search this machine and project for io.netty.incubator:netty-incubator-codec-bhttp (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

FAQ

Is CVE-2024-40642 being exploited?

There is no confirmed exploitation: CVE-2024-40642 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.93% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-40642?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2024-40642?

io.netty.incubator:netty-incubator-codec-bhttp < 0.0.13.Final.

Is there a fix for CVE-2024-40642?

Yes. Fixed in 0.0.13.Final. Upgrade io.netty.incubator:netty-incubator-codec-bhttp to 0.0.13.Final or later.

How do I check if I'm affected by CVE-2024-40642?

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.

Sponsors