Search for vulnerabilities
Vulnerability details: VCID-457q-9vme-aaac
Vulnerability ID VCID-457q-9vme-aaac
Aliases CVE-2020-7212
GHSA-hmv2-79q8-fv6g
PYSEC-2020-149
Summary The _encode_invalid_chars function in util/url.py in the urllib3 library 1.25.2 through 1.25.7 for Python allows a denial of service (CPU consumption) because of an inefficient algorithm. The percent_encodings array contains all matches of percent encodings. It is not deduplicated. For a URL of length N, the size of percent_encodings may be up to O(N). The next step (normalize existing percent-encoded bytes) also takes up to O(N) for each step, so the total time is O(N^2). If percent_encodings were deduplicated, the time to compute _encode_invalid_chars would be O(kN), where k is at most 484 ((10+6*2)^2).
Status Published
Exploitability 0.5
Weighted Severity 8.0
Risk 4.0
Affected and Fixed Packages Package Details
Weaknesses (3)
System Score Found at
cvssv3 0.0 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2020-7212.json
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00204 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0039 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.0046 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00473 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00473 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00473 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00473 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.00473 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
epss 0.01103 https://api.first.org/data/v1/epss?cve=CVE-2020-7212
rhbs medium https://bugzilla.redhat.com/show_bug.cgi?id=1812095
cvssv3.1 7.5 https://github.com/advisories/GHSA-hmv2-79q8-fv6g
cvssv3.1_qr HIGH https://github.com/advisories/GHSA-hmv2-79q8-fv6g
generic_textual HIGH https://github.com/advisories/GHSA-hmv2-79q8-fv6g
cvssv3.1 7.5 https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2020-149.yaml
generic_textual HIGH https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2020-149.yaml
cvssv3.1 7.5 https://github.com/urllib3/urllib3
generic_textual HIGH https://github.com/urllib3/urllib3
cvssv3.1 7.5 https://github.com/urllib3/urllib3/blob/master/CHANGES.rst
generic_textual HIGH https://github.com/urllib3/urllib3/blob/master/CHANGES.rst
cvssv3.1 7.5 https://github.com/urllib3/urllib3/commit/a74c9cfbaed9f811e7563cfc3dce894928e0221a
generic_textual HIGH https://github.com/urllib3/urllib3/commit/a74c9cfbaed9f811e7563cfc3dce894928e0221a
cvssv2 7.8 https://nvd.nist.gov/vuln/detail/CVE-2020-7212
cvssv3 7.5 https://nvd.nist.gov/vuln/detail/CVE-2020-7212
cvssv3.1 7.5 https://nvd.nist.gov/vuln/detail/CVE-2020-7212
generic_textual HIGH https://nvd.nist.gov/vuln/detail/CVE-2020-7212
cvssv3.1 7.5 https://pypi.org/project/urllib3/1.25.8
generic_textual HIGH https://pypi.org/project/urllib3/1.25.8
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2020-7212.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Found at https://github.com/advisories/GHSA-hmv2-79q8-fv6g
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Found at https://github.com/pypa/advisory-database/tree/main/vulns/urllib3/PYSEC-2020-149.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Found at https://github.com/urllib3/urllib3
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Found at https://github.com/urllib3/urllib3/blob/master/CHANGES.rst
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Found at https://github.com/urllib3/urllib3/commit/a74c9cfbaed9f811e7563cfc3dce894928e0221a
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: AV:N/AC:L/Au:N/C:N/I:N/A:C Found at https://nvd.nist.gov/vuln/detail/CVE-2020-7212
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Found at https://nvd.nist.gov/vuln/detail/CVE-2020-7212
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Found at https://nvd.nist.gov/vuln/detail/CVE-2020-7212
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Found at https://pypi.org/project/urllib3/1.25.8
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.58810
EPSS Score 0.00204
Published At Nov. 1, 2024, midnight
Date Actor Action Source VulnerableCode Version
There are no relevant records.