Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Socketry | Protocol-Http1 | < 0.15.1 |
Related Weaknesses (CWE)
References
- https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa885Patch
- https://github.com/socketry/protocol-http1/pull/20Issue Tracking
- https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xVendor Advisory
- https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-codingTechnical Description
- https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa885Patch
- https://github.com/socketry/protocol-http1/pull/20Issue Tracking
- https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xVendor Advisory
- https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-codingTechnical Description
FAQ
What is CVE-2023-38697?
CVE-2023-38697 is a vulnerability with a CVSS score of 5.8 (MEDIUM). 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 sho...
How severe is CVE-2023-38697?
CVE-2023-38697 has been rated MEDIUM with a CVSS base score of 5.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-38697?
Check the references section above for vendor advisories and patch information. Affected products include: Socketry Protocol-Http1.