CVE-2018-14505: Mitmproxy Mitmweb Vulnerability
CRITICALCVE-2018-14505 is a CRITICAL (CVSS 8.8) mitmweb vulnerability (CWE-20: Improper Input Validation) affecting Mitmproxy libraries in the PyPI ecosystem. The issue involves mitmweb in mitmproxy allows dns rebinding attacks. Remediation is available by upgrading affected packages to version 4.0.4.
CVE-2018-14505 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-14505
To remediate this vulnerability, upgrade all affected Mitmproxy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mitmproxy>=4.0.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mitmproxy
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2018-14505, inspect your installed packages using pip:
pip show mitmproxy
Analyze the terminal output to locate any version of Mitmproxy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.4), your application is affected.
Note: The pip show mitmproxy command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Mitmproxy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-14505 Affected Mitmproxy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mitmproxy
|
PyPI |
< 4.0.4
|
4.0.4
|
References
Frequently Asked Questions
What is CVE-2018-14505?
Which Mitmproxy versions are affected?
What version fixes CVE-2018-14505?
Is mitmproxy affected?
What is the CVSS score of CVE-2018-14505?
What CWE is associated with CVE-2018-14505?
How can I check PyPI dependencies for CVE-2018-14505?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6m53-c78q-7qmg",
"modified" : "2024-10-01T19:29:59Z",
"published" : "2018-07-31T18:18:19Z",
"aliases" : [ "CVE-2018-14505" ],
"summary" : "Mitmweb in mitmproxy allows DNS Rebinding attacks",
"details" : "mitmweb in mitmproxy before v4.0.4 allows DNS Rebinding attacks, related to tools/web/app.py.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mitmproxy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-14505"
}, {
"type" : "WEB",
"url" : "https://github.com/mitmproxy/mitmproxy/issues/3234"
}, {
"type" : "WEB",
"url" : "https://github.com/mitmproxy/mitmproxy/pull/3243"
}, {
"type" : "WEB",
"url" : "https://github.com/mitmproxy/mitmproxy/commit/7f464b89296881f4d9ec032378c4418e832d17e3"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-6m53-c78q-7qmg"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mitmproxy/mitmproxy"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mitmproxy/PYSEC-2018-56.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:19:42Z",
"nvd_published_at" : null
}
}