Skip to content
Heist/ feed
Back to feed
Medium

ruby-protocol-http1 — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-38697

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.

Products
ruby-protocol-http1
Affected versions
0.13.1-1, 0.14.2-1, 0.14.6-1, 0.35.2-1, 0.37.0-1, 0.39.0-1, 0.40.0-1
Fixed versions
Not specified
CVEs
CVE-2023-38697
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:43 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-38697

core-osv · Original source

Published 4 Aug 2023, 18:15 UTC

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.

osv:UBUNTU-CVE-2023-38697

ruby-protocol-http1

Fixed versions: Not specified

ruby-protocol-http1

Fixed versions: Not specified

ruby-protocol-http1

Fixed versions: Not specified

ruby-protocol-http1

Fixed versions: Not specified

ruby-protocol-http1

Fixed versions: Not specified

Complete source record
{
  "id": "09965a81cdc0ecf64960f4a9666535e75c64472ed9d33bfece16c7d9c3a297aa",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-38697",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-38697",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2023-38697",
    "products": [
      {
        "name": {
          "value": "ruby-protocol-http1",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.13.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.14.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-protocol-http1",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.14.6-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-protocol-http1",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.14.6-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-protocol-http1",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.37.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.39.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "0.40.0-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-protocol-http1",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.14.6-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.35.2-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "0.37.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2023-38697",
      "aliases": [
        "UBUNTU-CVE-2023-38697"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-protocol-http1",
            "purl": "pkg:deb/ubuntu/ruby-protocol-http1?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.13.1-1",
            "0.14.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-38697.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-protocol-http1",
                "binary_version": "0.14.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-protocol-http1",
            "purl": "pkg:deb/ubuntu/ruby-protocol-http1?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "0.14.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-38697.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-protocol-http1",
                "binary_version": "0.14.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-protocol-http1",
            "purl": "pkg:deb/ubuntu/ruby-protocol-http1?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.14.6-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-38697.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-protocol-http1",
                "binary_version": "0.14.6-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-protocol-http1",
            "purl": "pkg:deb/ubuntu/ruby-protocol-http1?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.37.0-1",
            "0.39.0-1",
            "0.40.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-38697.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-protocol-http1",
                "binary_version": "0.40.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-protocol-http1",
            "purl": "pkg:deb/ubuntu/ruby-protocol-http1?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.14.6-1",
            "0.35.2-1",
            "0.37.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-38697.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "ruby-protocol-http1",
                "binary_version": "0.37.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:20.791806641Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-38697"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-38697",
        "https://github.com/socketry/protocol-http1/pull/20",
        "https://www.rfc-editor.org/rfc/rfc9112#name-chunked-transfer-coding",
        "https://github.com/socketry/protocol-http1/security/advisories/GHSA-6jwc-qr2q-7xwj",
        "https://github.com/socketry/protocol-http1/commit/e11fc164fd2b36f7b7e785e69fa8859eb06bcedd",
        "https://www.cve.org/CVERecord?id=CVE-2023-38697"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-38697",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357255,
  "published_at": "2023-08-04T18:15:00+00:00"
}