7.5

CVE-2020-7694: Log Injection

Modified
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) Improper Control of Generation of Code vulnerability in encode uvicorn. EPSS estimates a 1.37% chance of exploitation in the next 30 days, higher than 72.8% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
1.37%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware 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.37%

Chance of exploitation in the next 30 days

Percentile

73%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 1.36% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (snyk.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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