Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mitmproxy
  4. ›
  5. CVE-2022-24766

CVE-2022-24766: Insufficient Protection against HTTP Request Smuggling in mitmproxy

March 22, 2022 (updated October 1, 2024)

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.

References

  • github.com/advisories/GHSA-gcx2-gvj7-pxv3
  • github.com/mitmproxy/mitmproxy
  • github.com/mitmproxy/mitmproxy/commit/b06fb6d157087d526bd02e7aadbe37c56865c71b
  • github.com/mitmproxy/mitmproxy/security/advisories/GHSA-gcx2-gvj7-pxv3
  • github.com/pypa/advisory-database/tree/main/vulns/mitmproxy/PYSEC-2022-170.yaml
  • mitmproxy.org/posts/releases/mitmproxy8
  • nvd.nist.gov/vuln/detail/CVE-2022-24766

Code Behaviors & Features

Detect and mitigate CVE-2022-24766 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.0.0

Fixed versions

  • 8.0.0

Solution

Upgrade to version 8.0.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

pypi/mitmproxy/CVE-2022-24766.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:15 +0000.