# CVE-2020-7694: Log Injection

- Priority: **Routine**
- Reason: Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-07-27 · Modified: 2024-09-17
- Aliases: GHSA-33c7-2mpw-hg34, PYSEC-2020-150, SNYK-PYTHON-UVICORN-575560, UBUNTU-CVE-2020-7694, DEBIAN-CVE-2020-7694
- Record: https://cvemate.com/vulnerability/CVE-2020-7694 · JSON: https://cvemate.com/vulnerability/CVE-2020-7694/json

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 1.368%, percentile 72.818%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian python-uvicorn (Debian): \< 0.13.3-1
- ubuntu python-uvicorn (Ubuntu): All versions (No fix recorded)
- encode uvicorn: na
- PyPI uvicorn (PyPI): \< 0.11.7

## References

- <https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560>
- <https://github.com/encode/uvicorn>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7694>
- <https://github.com/encode/uvicorn/issues/723>
- <https://github.com/encode/uvicorn/commit/895807f94ea9a8e588605c12076b7d7517cda503>
- <https://github.com/pypa/advisory-database/tree/main/vulns/uvicorn/PYSEC-2020-150.yaml>
- <https://github.com/advisories/GHSA-33c7-2mpw-hg34>
- <https://ubuntu.com/security/CVE-2020-7694>
- <https://www.cve.org/CVERecord?id=CVE-2020-7694>
- <https://security-tracker.debian.org/tracker/CVE-2020-7694>

---

Data as of 2026-12-05T03:43:46.090Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
