Severity: CRITICAL
Description: h11 is a Python implementation of HTTP/1.1. Prior to version 0.16.0, a leniency in h11's parsing of line terminators in chunked-coding message bodies can lead to request smuggling vulnerabilities under certain conditions. This issue has been patched in version 0.16.0. Since exploitation requires the combination of buggy h11 with a buggy (reverse) proxy, fixing either component is sufficient to mitigate this issue.
CVSS Score: 9.1
B
No data available.
No data available.
1. Risk Assessment
CVE-2025-43859 represents a critical vulnerability in h11, a Python HTTP/1.1 implementation. The vulnerability stems from a lenient parsing of line terminators within chunked-encoded message bodies, leading to HTTP Request Smuggling. The CVSS score of 9.1 indicates a high level of severity. The vulnerability’s nature allows for potential compromise of confidentiality and integrity, although availability isn’t directly impacted. The likelihood of exploitation is moderate to high, especially in environments utilizing both h11 and a potentially vulnerable reverse proxy. Business impact could range from data breaches and unauthorized access to service disruptions due to poisoned caches or misdirected requests. The EPSS score of 0.005220000 indicates a relatively low but not insignificant probability of exploitation in the wild. The vulnerability requires a combination of a buggy h11 version and a buggy reverse proxy, simplifying remediation as fixing either component mitigates the issue.
2. Potential Attack Scenarios
An attacker could leverage this vulnerability to smuggle a malicious HTTP request into a connection handled by h11. Consider a scenario where an application uses h11 as a backend and a vulnerable reverse proxy (e.g., older versions of Nginx or Apache) sits in front. The attacker sends a crafted HTTP request with a chunked-encoded body. The h11 instance parses the body slightly differently than the reverse proxy, resulting in the proxy interpreting a portion of the attacker’s request as belonging to the next request from a different user. This smuggled request could contain malicious headers such as X-Forwarded-For to spoof the user’s IP address or a malicious cookie to hijack their session. The attacker could then gain access to sensitive data or perform actions as the targeted user. The attack vector is network-based, requiring no user interaction, making it potentially wide-reaching.
3. Mitigation Recommendations
The primary mitigation is to upgrade h11 to version 0.16.0 or later. This version includes the necessary fixes to correctly parse chunked-encoded bodies. If upgrading h11 immediately isn’t possible, investigate and patch any vulnerable reverse proxies in front of the h11 instances. This is because fixing either component is sufficient. Implement robust HTTP request validation on the backend to detect and handle potentially smuggled requests. Monitor HTTP traffic for anomalies indicative of request smuggling, such as unexpected header combinations or out-of-order requests. Regularly review and update the configuration of both h11 and the reverse proxy to ensure optimal security. Relevant resources include the h11 security advisory: https://github.com/python-hyper/h11/security/advisories/GHSA-vqfr-h8mv-ghfj and the commit with the fix: https://github.com/python-hyper/h11/commit/114803a29ce50116dc47951c690ad4892b1a36ed. PacketStorm Security also offers related information: https://packetstormsecurity.com/search/?q=CVE-2025-43859.
4. Executive Summary
CVE-2025-43859 is a critical vulnerability affecting the h11 Python library, potentially enabling HTTP Request Smuggling. This vulnerability could allow attackers to hijack user sessions, steal sensitive data, or disrupt service operation. The risk is heightened if your applications use h11 alongside a potentially vulnerable reverse proxy. We recommend upgrading h11 to version 0.16.0 as the primary mitigation step. Alternatively, patching the reverse proxy will also resolve the issue. Prompt action is crucial to minimize the risk of exploitation and protect our applications and data. Failure to address this vulnerability could lead to significant business disruption and potential data breaches. The vulnerability is relatively easy to exploit from a network perspective, increasing the likelihood of a successful attack. Prioritize patching or upgrading h11 to ensure a secure environment.