CVE-2020-7694
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).
EPSS 0.23% · 45.6th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:20.04:LTS | python-uvicorn | 0.11.2-1, 0.11.1-1, 0 |
| Ubuntu:22.04:LTS | python-uvicorn | 0, 0.13.3-1, 0.15.0-2ubuntu1 |
| Ubuntu:24.04:LTS | python-uvicorn | 0, *, 0.25.0-1 |
| Ubuntu:25.10 | python-uvicorn | 0, 0.32.0-3 |
Exploit Intelligence
Timeline
- Jul 27, 2020 CVE Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Oct 26, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 4, 2022 EPSS Score
- Feb 28, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- May 1, 2022 EPSS Score
- Jul 3, 2022 EPSS Score
- Sep 4, 2022 EPSS Score
References
- https://ubuntu.com/security/CVE-2020-7694 third-party-advisory
- https://github.com/encode/uvicorn third-party-advisory
- https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560 third-party-advisory
- https://www.cve.org/CVERecord?id=CVE-2020-7694 third-party-advisory