Vulnerability Details : 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.
Products affected by CVE-2023-38697
- cpe:2.3:a:socketry:protocol-http1:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-38697
0.11%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 45 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-38697
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.3
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
3.9
|
1.4
|
NIST | |
5.8
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N |
3.9
|
1.4
|
GitHub, Inc. |
CWE ids for CVE-2023-38697
-
The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-38697
-
https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xwj
Strict validation of content length and chunk length. · Advisory · socketry/protocol-http1 · GitHubVendor Advisory
-
https://github.com/socketry/protocol-http1/pull/20
Strict validation of content length and chunk length. by ioquatix · Pull Request #20 · socketry/protocol-http1 · GitHubIssue Tracking
-
https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-coding
RFC 9112: HTTP/1.1Technical Description
-
https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa8859eb06bcedd
Strict validation of content length and chunk length. (#20) · socketry/protocol-http1@e11fc16 · GitHubPatch
Jump to