# CVE-2020-7694: Log Injection

- Severity: Low 3.7 (CVSS:3.1, scored by snyk) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.37%, higher than 72% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-07-27T11:25:12.371Z
- Modified: 2026-06-17T03:25:16.747Z
- Also known as: GHSA-33c7-2mpw-hg34, PYSEC-2020-150, SNYK-PYTHON-UVICORN-575560
- Weaknesses: CWE-94, CWE-116
- Assigned by: snyk

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

(As written by CVE List.)

## Affected

- uvicorn: before unspecified
- uvicorn (PyPI): before 0.11.7
- encode uvicorn: no versions given

## Every score

- snyk: CVSS:3.1 3.7 Low `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:P/A:N`

## References

- <https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560> (exploit, advisory, third-party-advisory, web)
- <https://github.com/encode/uvicorn> (package, product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7694> (advisory)
- <https://github.com/encode/uvicorn/issues/723> (web)
- <https://github.com/encode/uvicorn/commit/895807f94ea9a8e588605c12076b7d7517cda503> (web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/uvicorn/PYSEC-2020-150.yaml> (web)
- <https://github.com/advisories/GHSA-33c7-2mpw-hg34> (advisory)

## Sources

- CVE List: [CVE-2020-7694](https://www.cve.org/CVERecord?id=CVE-2020-7694), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-33c7-2mpw-hg34](https://github.com/advisories/GHSA-33c7-2mpw-hg34), CC-BY-4.0, modified 2024-11-18
- NVD: [CVE-2020-7694](https://nvd.nist.gov/vuln/detail/CVE-2020-7694), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-150](https://osv.dev/vulnerability/PYSEC-2020-150), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-7694 · Whole record: https://cve.day/CVE-2020-7694.json · Rebuilt by cve.day 2026-11-25T22:57:53.629Z
