CVE-2023-38697 protocol-http1 HTTP Request/Response Smuggling vulnerability

Medium 5.8 Published Updated

Attackers can exploit HTTP request smuggling in the protocol-http1 Ruby library to bypass firewalls and desync parsers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-38697?

CVE-2023-38697 is a medium-severity vulnerability in socketry protocol-http1, published on 4 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-444

Which versions are affected by CVE-2023-38697?

2 open source packages ship an affected version, including protocol-http1. It affects 1 product.

PackageAffectedFixed in
protocol-http1 RubyGemsAll versions0.15.1
protocol-http1 RubyGemsAll versions0.15.1

Products include Socketry Protocol-Http1.

How do I fix CVE-2023-38697?

Upgrade protocol-http1 to 0.15.1 or later.

Is CVE-2023-38697 being exploited?

There is no known exploitation of CVE-2023-38697 in the wild and no public exploit code.

Sources

Also known as AZL-27830, DEBIAN-CVE-2023-38697, GHSA-6jwc-qr2q-7xwj, UBUNTU-CVE-2023-38697.

Is CVE-2023-38697 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free