CVE-2023-38697 — Vulnerability in protocol-http1 — CVE Details
protocol-http1 HTTP Request/Response Smuggling vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.86%). Schedule for your next planned update.
Does your project use an affected protocol-http1 version?
Paste your Gemfile.lock to check it for CVE-2023-38697 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
RFC 9112 Section 7.1 defined the format of chunk size, chunk data and chunk extension (detailed ABNF is in Appendix section).
In summary:
- 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.
- The chunk extension shouldn't contain any invisible character.
However, we found that Falcon has following behaviors while disobey the corresponding RFCs.
- Falcon accepts Content-Length header values that have "+" prefix.
- Falcon accepts Content-Length header values that written in hexadecimal with "0x" prefix.
- Falcon accepts "0x" and "+" prefixed chunk size.
- Falcon accepts 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. Note that while these issues were reproduced in Falcon (the server), the issue is with protocol-http1 which implements the HTTP/1 protocol parser. We have not yet been advised of any real world exploit or practical attack.
Patches
Fixed in protocol-http1 v0.15.1+.
Workarounds
None.
References
Advisory Timeline
- First published August 3, 2023 (1211 days ago).
- Last revised September 10, 2026 — 1133 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install protocol-http1 -v 0.15.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: RubyGems (1).
| Package | Fixed In |
|---|---|
| protocol-http1 RubyGems · Affected: 0.1.0, 0.10.0, 0.10.1, 0.10.2 (+26 more) | 0.15.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-444
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 5.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N
References
- https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xwjWEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-38697ADVISORY
- https://github.com/socketry/protocol-http1/pull/20WEB
- https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa8859eb06bceddWEB
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/protocol-http1/CVE-2023-38697.ymlWEB
- https://github.com/socketry/protocol-http1PACKAGE
- https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-codingWEB
Frequently Asked Questions
- What is CVE-2023-38697?
- protocol-http1 HTTP Request/Response Smuggling vulnerability. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.8/10).
- How do I check if my project is affected by CVE-2023-38697?
- CVE-2023-38697 affects protocol-http1. It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-38697 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 56% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-128084MEDIUM
sqlite3-ruby: Possible SQL query truncation when a string is 4 GiB or larger
- CVE-2026-115472MEDIUM
Doorkeeper: When using public clients, any client can revoke any access token