CVE-2020-7694

Public Exploit
Log Injection

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

Category

3.7
CVSS
Severity: Low
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.23%
Third-Party Advisory github.com Third-Party Advisory snyk.io
Affected: n/a uvicorn
Published at:
Updated at:

References

Link Tags
https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560 third party advisory exploit
https://github.com/encode/uvicorn third party advisory product

Frequently Asked Questions

What is the severity of CVE-2020-7694?
CVE-2020-7694 has been scored as a low severity vulnerability.
How to fix CVE-2020-7694?
To fix CVE-2020-7694, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2020-7694 being actively exploited in the wild?
It is possible that CVE-2020-7694 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2020-7694?
CVE-2020-7694 affects n/a uvicorn.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.