Vulnerability · Published Sep 16, 2021 · Assigned by GitHub_M

CVE-2021-39214Lacking Protection against HTTP Request Smuggling in mitmproxy

High 8.1

In plain English

A high-severity security flaw in mitmproxy from mitmproxy. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 65% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)1.1%top 35.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official description

mitmproxy is an interactive, SSL/TLS-capable intercepting proxy. In mitmproxy 7.0.2 and below, a malicious client or server is able to perform HTTP request smuggling attacks through mitmproxy. This means that a malicious client/server could smuggle a request/response through mitmproxy as part of another request/response's HTTP message body. While a smuggled request is still captured as part of another request's body, it does not appear in the request list and does not go through the usual mitmproxy event hooks, where users may have implemented custom access control checks or input sanitization. Unless one uses mitmproxy to protect an HTTP/1 service, no action is required. The vulnerability has been fixed in mitmproxy 7.0.3 and above.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.21mitmproxy7.0.3-r0ALPINE-CVE-2021-39214
Alpine:v3.22mitmproxy7.0.3-r0ALPINE-CVE-2021-39214
Alpine:v3.23mitmproxy7.0.3-r0ALPINE-CVE-2021-39214
Alpine:v3.24mitmproxy7.0.3-r0ALPINE-CVE-2021-39214
Debian:12mitmproxy8.1.1-1DEBIAN-CVE-2021-39214
Debian:14mitmproxy8.1.1-1DEBIAN-CVE-2021-39214
PyPImitmproxy7.0.3PYSEC-2021-328
PyPImitmproxy7.0.3GHSA-22gh-3r9q-xf38
Ubuntu:22.04:LTSmitmproxyno fix listedUBUNTU-CVE-2021-39214
Ubuntu:24.04:LTSmitmproxyno fix listedUBUNTU-CVE-2021-39214
Ubuntu:25.10mitmproxyno fix listedUBUNTU-CVE-2021-39214
Ubuntu:26.04:LTSmitmproxyno fix listedUBUNTU-CVE-2021-39214
Ubuntu:26.10mitmproxyno fix listedUBUNTU-CVE-2021-39214

Affected products (as reported)

VendorProductVersions
mitmproxy mitmproxy < 7.0.3

Weakness: CWE-444 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References