{ "id": "CVE-2024-40642", "sourceIdentifier": "security-advisories@github.com", "published": "2024-07-18T23:15:02.000", "lastModified": "2024-11-21T09:31:25.017", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [ { "lang": "en", "value": "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." }, { "lang": "es", "value": "El netty incubator codec.bhttp es un analizador http binario en lenguaje Java. En las versiones afectadas, la clase `BinaryHttpParser` no valida adecuadamente los valores de entrada, dando as\u00ed a los atacantes un control casi completo sobre las solicitudes HTTP construidas a partir de la salida analizada. Los atacantes pueden abusar de varios problemas individualmente para realizar diversos ataques de inyecci\u00f3n, incluido el contrabando de solicitudes HTTP, ataques de desincronizaci\u00f3n, inyecciones de encabezados HTTP, envenenamiento de colas de solicitudes, ataques de almacenamiento en cach\u00e9 y Server Side Request Forgery (SSRF). El atacante tambi\u00e9n podr\u00eda combinar varios problemas para crear mensajes bien formados para otros protocolos basados en texto, lo que podr\u00eda dar lugar a ataques m\u00e1s all\u00e1 del protocolo HTTP. La clase BinaryHttpParser implementa el m\u00e9todo readRequestHead que realiza la mayor parte del an\u00e1lisis relevante de la solicitud recibida. La estructura de datos antepone valores con un valor entero de longitud variable. El siguiente c\u00f3digo de an\u00e1lisis primero obtiene las longitudes de los valores del n\u00famero entero de longitud variable con prefijo. Una vez que tiene todas las longitudes y calcula todos los \u00edndices, el analizador convierte los sectores aplicables de ByteBuf en String. Finalmente, pasa estos valores a un nuevo objeto `DefaultBinaryHttpRequest` donde no se produce m\u00e1s an\u00e1lisis ni validaci\u00f3n. El m\u00e9todo est\u00e1 parcialmente validado mientras que otros valores no se validan en absoluto. El software que depende de netty para aplicar la validaci\u00f3n de entrada para datos HTTP binarios puede ser vulnerable a varios ataques basados en protocolos e inyecciones. Este problema se solucion\u00f3 en la versi\u00f3n 0.0.13.Final. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad." } ], "metrics": { "cvssMetricV31": [ { "source": "security-advisories@github.com", "type": "Secondary", "cvssData": { "version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH" }, "exploitabilityScore": 2.2, "impactScore": 5.9 } ] }, "weaknesses": [ { "source": "security-advisories@github.com", "type": "Secondary", "description": [ { "lang": "en", "value": "CWE-20" } ] } ], "references": [ { "url": "https://github.com/netty/netty-incubator-codec-ohttp/commit/b687a0cf6ea1030232ea204d73bce82f2698e571", "source": "security-advisories@github.com" }, { "url": "https://github.com/netty/netty-incubator-codec-ohttp/security/advisories/GHSA-q8f2-hxq5-cp4h", "source": "security-advisories@github.com" }, { "url": "https://github.com/netty/netty-incubator-codec-ohttp/commit/b687a0cf6ea1030232ea204d73bce82f2698e571", "source": "af854a3a-2127-422b-91ae-364da2661108" }, { "url": "https://github.com/netty/netty-incubator-codec-ohttp/security/advisories/GHSA-q8f2-hxq5-cp4h", "source": "af854a3a-2127-422b-91ae-364da2661108" } ] }