{"cve":"CVE-2020-7694","nvd":{"published":"2020-07-27T12:15:11.870","modified":"2026-06-17T03:25:16.747","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-94","CWE-116"],"references":["https://github.com/encode/uvicorn","https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560","https://github.com/encode/uvicorn","https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560"],"products":["encode:uvicorn"],"source":"nvd","synced_at":"2026-10-19T21:06:22.076270124+00:00"},"epss":{"cve":"CVE-2020-7694","score":0.01357,"percentile":0.71656,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-33c7-2mpw-hg34","url":"https://osv.dev/vulnerability/GHSA-33c7-2mpw-hg34","summary":"Log injection in uvicorn","modified":"2024-11-18T22:34:41.829085Z","packages":[{"ecosystem":"PyPI","name":"uvicorn","purl":"pkg:pypi/uvicorn","ranges":["<0.11.7"],"fixed":["0.11.7"]}]},{"id":"PYSEC-2020-150","url":"https://osv.dev/vulnerability/PYSEC-2020-150","summary":"","modified":"2023-11-08T04:04:05.255138Z","packages":[{"ecosystem":"PyPI","name":"uvicorn","purl":"pkg:pypi/uvicorn","ranges":["<0.11.7"],"fixed":["0.11.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}