CVE-2026-134820 in Gunicorn
Summary
by MITRE • 11/23/2026
Gunicorn 25.2.0 before 27.0.0 contains an HTTP request smuggling vulnerability in the pure-Python ASGI parser that allows unauthenticated remote attackers to desynchronize request framing by sending malformed framing headers. Attackers can send whitespace-padded Transfer-Encoding or Content-Length headers, signed Content-Length values, or invalid chunk terminators to smuggle requests past front-end proxies to the ASGI application.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/23/2026
The vulnerability identified in Gunicorn versions prior to 27.0.0 represents a critical security flaw within its pure-Python ASGI parser, specifically classified as an HTTP request smuggling issue. This weakness stems from inconsistencies in how the web server processes and validates incoming HTTP headers when acting behind front-end proxies or load balancers. The core technical failure lies in the parser's inability to correctly distinguish between different framing mechanisms defined by RFC 7230, particularly regarding Transfer-Encoding and Content-Length fields. When an attacker submits a request with malformed framing headers, such as whitespace-padded values for Transfer-Encoding or Content-Length, signed numeric values for Content-Length that exceed standard integer limits, or invalid chunk terminators in chunked transfer encoding, the ASGI application interprets the message boundaries differently than the front-end proxy does. This discrepancy creates a desynchronization state where one entity believes a request has ended while another continues to read into what it perceives as part of the next request stream.
From an operational perspective, this misalignment allows unauthenticated remote attackers to smuggle arbitrary HTTP requests past security controls implemented at the network or application layer. By exploiting these parsing discrepancies, an attacker can inject malicious payloads that are intended for internal services but appear to be legitimate parts of a user's session or subsequent request. This capability undermines fundamental assumptions about isolation between users and applications, potentially leading to severe consequences such as cross-site scripting if the smuggled content is reflected back to other users, server-side request forgery where the application makes unauthorized requests on behalf of victims, or complete bypass of authentication mechanisms by manipulating header fields that control access decisions. The impact extends beyond simple data leakage, affecting the integrity and availability of web applications relying on Gunicorn as their ASGI interface layer.
This vulnerability aligns with CWE-441, which describes improper handling of HTTP request smuggling, a category of flaws where inconsistent parsing leads to security bypasses. In terms of offensive tactics, this exploit technique maps directly to MITRE ATT&CK Tactic TA0001 Initial Access and specifically the subtechnique associated with HTTP Request Smuggling under techniques like T1190 Exploit Public-Facing Application or more granularly within web application attack vectors that leverage protocol ambiguities. The exploitation does not require prior authentication, making it particularly dangerous in publicly facing environments where automated scanners might probe for such misconfigurations.
Mitigation strategies must prioritize immediate software updates to Gunicorn version 27.0.0 or later, which addresses the parsing logic errors within the ASGI handler. For organizations unable to patch immediately due to compatibility constraints with existing applications, deploying a Web Application Firewall configured to detect and block anomalous HTTP framing patterns is recommended as an interim control. Security teams should also audit their infrastructure for any instances where Gunicorn operates behind proxies that do not strictly enforce canonical request formatting, ensuring that front-end devices strip or normalize whitespace in headers before forwarding requests to the backend application server. Regular security assessments focusing on protocol compliance and header validation can further reduce the risk surface associated with this class of vulnerabilities.