CVE-2024-40642

HighCVSS 8.1/10Last modified Jun 17, 2026

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.

Metrics

CVSS 3.1 8.1/10CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Jul 18, 2024
Last modified
Jun 17, 2026
NVD status
Analyzed

Related CVEs from 2024

CVE-2024-406439.6Joplin is a free, open source note taking and to-do application. Joplin fails to take into account that "<" followed by a non letter charactCVE-2024-406446.8gitoxide An idiomatic, lean, fast & safe pure Rust implementation of Git. `gix-path` can be tricked into running another `git.exe` placed inCVE-2024-406458.8FOG is a cloning/imaging/rescue suite/inventory management system. An improperly restricted file upload feature allows authenticated users tCVE-2024-406468.6Vertex is a management tool for PT (Private Tracker) users to manage streaming and watching videos. Versions prior to commit fbde301b97986d5CVE-2024-406475.3sentry-sdk is the official Python SDK for Sentry.io. A bug in Sentry's Python SDK < 2.8.0 allows the environment variables to be passed to sCVE-2024-406485.4matrix-rust-sdk is an implementation of a Matrix client-server library in Rust. The `UserIdentity::is_verified()` method in the matrix-sdk-cCVE-2024-406498.4In TBD of TBD, there is a possible use-after-free due to a logic error in the code. This could lead to local escalation of privilege in the CVE-2024-40658.8A vulnerability was found in Tenda AC8 16.03.34.09. It has been rated as critical. This issue affects the function formSetRebootTimer of theCVE-2024-406507.8In wifi_item_edit_content of styles.xml , there is a possible FRP bypass due to Missing check for FRP state. This could lead to local escalaCVE-2024-406518.4In TBD of TBD, there is a possible use-after-free due to a logic error in the code. This could lead to local escalation of privilege in the CVE-2024-406527.8In onCreate of SettingsHomepageActivity.java, there is a possible way to access the Settings app while the device is provisioning due to a mCVE-2024-406537.3In multiple functions of ConnectionServiceWrapper.java, there is a possible way to retain a permission forever in the background due to a lo
CVE-2024-40642: High severity, CVSS 8.1 | Vulnix