CVE-2020-7694

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-7694
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7694.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-7694
Aliases
Downstream
Related
  • SNYK-PYTHON-UVICORN-575560
Published
2020-07-27T12:15:11Z
Modified
2025-08-09T19:01:28Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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).

References

Affected packages