Skip to content
OpenAdvisories
Medium · 5.8 CVE-2023-38697 EUVD-2023-2225GHSA-6jwc-qr2q-7xwj

protocol-http1 HTTP Request/Response Smuggling vulnerability

Published Aug 4, 2023 · Updated Oct 4, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
socketry protocol-http1 < 0.15.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 ruby-protocol-http1 0.35.2-1 —
Debian 12 ruby-protocol-http1 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 ruby-protocol-http1 No fix yet —
Ubuntu 26.04 LTS ruby-protocol-http1 No fix yet —
Ubuntu 25.10 ruby-protocol-http1 No fix yet —
Ubuntu 24.04 LTS ruby-protocol-http1 No fix yet —
Ubuntu 22.04 LTS ruby-protocol-http1 No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) rubygem-protocol-http1 0.15.1-1 —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems protocol-http1 < 0.15.1 0.15.1 GHSA-6jwc-qr2q-7xwj

References