CVE-2023-38697

protocol-http1 provides a low-level implementation of the HTTP/1 protocol. RFC 9112 Section 7.1 defined the format of chunk size, chunk data and chunk extension. The value of Content-Length header should be a string of 0-9 digits, the chunk size should be a string of hex digits and should split from chunk data using CRLF, and the chunk extension shouldn't contain any invisible character. However, Falcon has following behaviors while disobey the corresponding RFCs: accepting Content-Length header values that have `+` prefix, accepting Content-Length header values that written in hexadecimal with `0x` prefix, accepting `0x` and `+` prefixed chunk size, and accepting LF in chunk extension. This behavior can lead to desync when forwarding through multiple HTTP parsers, potentially results in HTTP request smuggling and firewall bypassing. This issue is fixed in `protocol-http1` v0.15.1. There are no known workarounds.
Configurations

Configuration 1 (hide)

cpe:2.3:a:socketry:protocol-http1:*:*:*:*:*:*:*:*

History

21 Nov 2024, 08:14

Type Values Removed Values Added
Summary
  • (es) protocol-http1 proporciona una implementación de bajo nivel del protocolo HTTP/1. La sección 7.1 del RFC 9112 define el formato del tamaño del fragmento, los datos del fragmento y la extensión del fragmento. El valor de la cabecera Content-Length debe ser una cadena de 0-9 dígitos, el tamaño del fragmento debe ser una cadena de dígitos hexadecimales y debe separarse de los datos del fragmento mediante CRLF, y la extensión del fragmento no debe contener ningún carácter invisible. Sin embargo, Falcon tiene los siguientes comportamientos mientras desobedece las RFCs correspondientes: aceptar valores de cabecera Content-Length que tengan prefijo `+`, aceptar valores de cabecera Content-Length que estén escritos en hexadecimal con prefijo `0x`, aceptar tamaño de fragmento con prefijo `0x` y `+`, y aceptar LF en la extensión de fragmento. Este comportamiento puede conducir a la desincronización cuando se reenvía a través de múltiples analizadores HTTP, lo que puede dar lugar al contrabando de peticiones HTTP y a la evasión del cortafuegos. Este problema se ha solucionado en `protocol-http1` v0.15.1. No se conocen alternativas.
CVSS v2 : unknown
v3 : 5.3
v2 : unknown
v3 : 5.8
References () https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa8859eb06bcedd - Patch () https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa8859eb06bcedd - Patch
References () https://github.com/socketry/protocol-http1/pull/20 - Issue Tracking () https://github.com/socketry/protocol-http1/pull/20 - Issue Tracking
References () https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xwj - Vendor Advisory () https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xwj - Vendor Advisory
References () https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-coding - Technical Description () https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-coding - Technical Description

10 Aug 2023, 15:34

Type Values Removed Values Added
CPE cpe:2.3:a:socketry:protocol-http1:*:*:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.3
References (MISC) https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa8859eb06bcedd - (MISC) https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa8859eb06bcedd - Patch
References (MISC) https://github.com/socketry/protocol-http1/pull/20 - (MISC) https://github.com/socketry/protocol-http1/pull/20 - Issue Tracking
References (MISC) https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-coding - (MISC) https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-coding - Technical Description
References (MISC) https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xwj - (MISC) https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xwj - Vendor Advisory

04 Aug 2023, 18:53

Type Values Removed Values Added
New CVE

Information

Published : 2023-08-04 18:15

Updated : 2024-11-21 08:14


NVD link : CVE-2023-38697

Mitre link : CVE-2023-38697

CVE.ORG link : CVE-2023-38697


JSON object : View

Products Affected

socketry

  • protocol-http1
CWE
CWE-444

Inconsistent Interpretation of HTTP Requests ('HTTP Request Smuggling')