Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. protocol-http1
  4. ›
  5. CVE-2023-38697

CVE-2023-38697: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

August 4, 2023 (updated August 10, 2023)

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.

References

  • github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa8859eb06bcedd
  • github.com/socketry/protocol-http1/pull/20
  • github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xwj
  • nvd.nist.gov/vuln/detail/CVE-2023-38697
  • www.rfc-editor.org/rfc/rfc9112

Code Behaviors & Features

Detect and mitigate CVE-2023-38697 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.15.1

Fixed versions

  • 0.15.1

Solution

Upgrade to version 0.15.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

gem/protocol-http1/CVE-2023-38697.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:56 +0000.