{"id":"CVE-2020-7694","published":"2020-07-27T11:25:12Z","modified":"2024-09-17T00:30:44Z","title":"Log Injection","vendor":null,"product":null,"tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":3.7,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:U/RC:C","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01368,"percentile":0.72546,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560","tags":["x_refsource_MISC"]},{"url":"https://github.com/encode/uvicorn","tags":["x_refsource_MISC"]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":14.51},{"name":"CVSS severity","points":2.59}]},"affectedVersions":[{"vendor":"n/a","product":"uvicorn","versions":["< unspecified"]}],"affected":[{"ecosystem":"PyPI","package":"uvicorn","vulnerableRanges":["<0.11.7"],"patched":["0.11.7"],"from":["GHSA-33c7-2mpw-hg34","PYSEC-2020-150"],"provenance":"source"}],"summary":{"text":"The flaw is an ANSI escape sequence injection in the request logger of the uvicorn Python package, which affects all of its versions. The logger writes request URLs after decoding percent-encoded characters, so crafted escape sequences reach the log output. An unauthenticated remote attacker, able to send HTTP requests to a uvicorn server with default logging, can send crafted URLs to pollute the access logs and attempt to send terminal control codes to whoever views those logs, with the attack complexity noted as high and no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:25:57Z"},"euvd":{"id":"EUVD-2020-0232","exploited":false,"provenance":"source"}}