7.5

CVE-2020-7694: encode uvicorn Code Injection

CVSS: 7.5v3.1HighModified
AliasesGHSA-33c7-2mpw-hg34PYSEC-2020-150SNYK-PYTHON-UVICORN-575560
Published 27-07-2020Last modified 17-09-2024

Vulnerability summary

CVE-2020-7694 is a high (CVSS 7.5) Code Injection vulnerability in encode uvicorn. EPSS estimates a 1.36% chance of exploitation in the next 30 days, higher than 71.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
1.36%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 27-07-2020
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last modifiedVulnerability information updated.

Description

This affects all versions of package uvicorn. The request logger provided by the package is vulnerable to ASNI escape sequence injection. Whenever any HTTP request is received, the default behaviour of uvicorn is to log its details to either the console or a log file. When attackers request crafted URLs with percent-encoded escape sequences, the logging component will log the URL after it's been processed with urllib.parse.unquote, therefore converting any percent-encoded characters into their single-character equivalent, which can have special meaning in terminal emulators. By requesting URLs with crafted paths, attackers can: * Pollute uvicorn's access logs, therefore jeopardising the integrity of such files. * Use ANSI sequence codes to attempt to interact with the terminal emulator that's displaying the logs (either in real time or from a file).

CVSS metrics

7 scores · 5 sources · 3 versions

EPSS trend

Probability

1.36%

Chance of exploitation in the next 30 days

Percentile

71%

Versus all other CVEs

30-day change

0.00 pp

From 1.36% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.36%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Debian1 product
  • python-uvicorn< 0.13.3-1
Encode1 product
PyPI1 product
  • uvicorn< 0.11.7
Ubuntu1 product
  • python-uvicornAll versions (No fix recorded)

4 vendors · 4 products

References

10 links