GHSA-gcx2-gvj7-pxv3

Suggest an improvement
Source
https://github.com/advisories/GHSA-gcx2-gvj7-pxv3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-gcx2-gvj7-pxv3/GHSA-gcx2-gvj7-pxv3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gcx2-gvj7-pxv3
Aliases
Related
Published
2022-03-22T19:22:59Z
Modified
2025-02-22T05:12:43.323943Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Insufficient Protection against HTTP Request Smuggling in mitmproxy
Details

Impact

In mitmproxy 7.0.4 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 mitmproxy would only see one request, the target server would see multiple requests. A smuggled request is still captured as part of another request's body, but 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 you use mitmproxy to protect an HTTP/1 service, no action is required.

Patches

The vulnerability has been fixed in mitmproxy 8.0.0 and above.

Acknowledgements

We thank Zeyu Zhang (@zeyu2001) for responsibly disclosing this vulnerability to the mitmproxy team.

Timeline

  • 2022-03-15: Received initial report.
  • 2022-03-15: Verified report and confirmed receipt.
  • 2022-03-16: Shared patch with researcher.
  • 2022-03-16: Received confirmation that patch is working.
  • 2022-03-19: Published patched release and advisory.
Database specific
{
    "nvd_published_at": "2022-03-21T19:15:00Z",
    "cwe_ids": [
        "CWE-444"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-03-22T19:22:59Z"
}
References

Affected packages

PyPI / mitmproxy

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8.0.0

Affected versions

0.*

0.8
0.8.1
0.9
0.9.1
0.9.2
0.10
0.10.1
0.11
0.11.1
0.11.2
0.11.3
0.12.0
0.12.1
0.13
0.14.0
0.15
0.16
0.17
0.18.1
0.18.2
0.18.3

1.*

1.0.0
1.0.1
1.0.2

2.*

2.0.0
2.0.1
2.0.2

3.*

3.0.0
3.0.1
3.0.2
3.0.3
3.0.4

4.*

4.0.0
4.0.1
4.0.3
4.0.4

5.*

5.0.0
5.0.1
5.1.0
5.1.1
5.2
5.3.0

6.*

6.0.0
6.0.1
6.0.2

7.*

7.0.0
7.0.1
7.0.2
7.0.3
7.0.4