{"schema_version":"1.7.3","id":"GHSA-gcx2-gvj7-pxv3","published":"2022-03-22T19:22:59Z","modified":"2025-02-22T05:12:43.323943Z","aliases":["CVE-2022-24766","PYSEC-2022-170"],"summary":"Insufficient Protection against HTTP Request Smuggling in mitmproxy","details":"### Impact\n\nIn mitmproxy 7.0.4 and below, a malicious client or server is able to perform [HTTP request smuggling](https://en.wikipedia.org/wiki/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.\n\nUnless you use mitmproxy to protect an HTTP/1 service, no action is required.\n\n\n### Patches\n\nThe vulnerability has been fixed in mitmproxy 8.0.0 and above.\n\n\n### Acknowledgements\n\nWe thank Zeyu Zhang (@zeyu2001) for responsibly disclosing this vulnerability to the mitmproxy team.\n\n\n### Timeline\n\n- **2022-03-15**: Received initial report.\n- **2022-03-15**: Verified report and confirmed receipt.\n- **2022-03-16**: Shared patch with researcher.\n- **2022-03-16**: Received confirmation that patch is working.\n- **2022-03-19**: Published patched release and advisory.","affected":[{"package":{"name":"mitmproxy","ecosystem":"PyPI","purl":"pkg:pypi/mitmproxy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.0.0"}]}],"versions":["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","0.8","0.8.1","0.9","0.9.1","0.9.2","1.0.0","1.0.1","1.0.2","2.0.0","2.0.1","2.0.2","3.0.0","3.0.1","3.0.2","3.0.3","3.0.4","4.0.0","4.0.1","4.0.3","4.0.4","5.0.0","5.0.1","5.1.0","5.1.1","5.2","5.3.0","6.0.0","6.0.1","6.0.2","7.0.0","7.0.1","7.0.2","7.0.3","7.0.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-gcx2-gvj7-pxv3/GHSA-gcx2-gvj7-pxv3.json"}}],"references":[{"type":"WEB","url":"https://github.com/mitmproxy/mitmproxy/security/advisories/GHSA-gcx2-gvj7-pxv3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24766"},{"type":"WEB","url":"https://github.com/mitmproxy/mitmproxy/commit/b06fb6d157087d526bd02e7aadbe37c56865c71b"},{"type":"PACKAGE","url":"https://github.com/mitmproxy/mitmproxy"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/mitmproxy/PYSEC-2022-170.yaml"},{"type":"WEB","url":"https://mitmproxy.org/posts/releases/mitmproxy8"}],"database_specific":{"cwe_ids":["CWE-444"],"github_reviewed":true,"github_reviewed_at":"2022-03-22T19:22:59Z","nvd_published_at":"2022-03-21T19:15:00Z","severity":"CRITICAL"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"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"}]}