CVE-2024-40642
published high CVSS 3.1 · 8.1Absent Input Validation in BinaryHttpParser in the netty incubator codec.bhttp
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| netty | netty-incubator-codec-ohttp | < 0.0.13.Final (affected) | GitHub_M · cna |
| netty | netty-incubator-codec-ohttp | 0 to < 0.0.13.Final (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
2Provider assertions
3GitHub_M · cna
Absent Input Validation in BinaryHttpParser in the netty incubator codec.bhttp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 156d611b7d71b8270360a0efec5590e9fae383ba9079b4d742d87b16cf0e7a2b
- Ingested
- 23 Sep 2026, 08:26:02 UTC
- Source record
- Official CVE record