CVE-2026-31842

HIGH

Tinyproxy HTTP request parsing desynchronization via case-sensitive Transfer-Encoding handling

Title source: cna
STIX 2.1

Description

Tinyproxy through 1.11.3 is vulnerable to HTTP request parsing desynchronization due to a case-sensitive comparison of the Transfer-Encoding header in src/reqs.c. The is_chunked_transfer() function uses strcmp() to compare the header value against "chunked", even though RFC 7230 specifies that transfer-coding names are case-insensitive. By sending a request with Transfer-Encoding: Chunked, an unauthenticated remote attacker can cause Tinyproxy to misinterpret the request as having no body. In this state, Tinyproxy sets content_length.client to -1, skips pull_client_data_chunked(), forwards request headers upstream, and transitions into relay_connection() raw TCP forwarding while unread body data remains buffered. This leads to inconsistent request state between Tinyproxy and backend servers. RFC-compliant backends (e.g., Node.js, Nginx) will continue waiting for chunked body data, causing connections to hang indefinitely. This behavior enables application-level denial of service through backend worker exhaustion. Additionally, in deployments where Tinyproxy is used for request-body inspection, filtering, or security enforcement, the unread body may be forwarded without proper inspection, resulting in potential security control bypass.

References (3)

Core 3
Core References
Issue Tracking, Technical Description, Third Party Advisory issue-tracking technical-description third-party-advisory
Upstream issue report and reproduction details
https://github.com/tinyproxy/tinyproxy/issues/604
Product product
Tinyproxy upstream project
https://github.com/tinyproxy/tinyproxy
Technical Description technical-description
RFC 7230: transfer-coding names are case-insensitive
https://datatracker.ietf.org/doc/html/rfc7230

Scores

CVSS v3 7.5
EPSS 0.0090
EPSS Percentile 54.8%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-444
Status published
Products (2)
Tinyproxy Project/Tinyproxy < 1.11.3
tinyproxy_project/tinyproxy < 1.11.3
Published Apr 07, 2026
Tracked Since Apr 07, 2026