CVE-2020-7694 json
Log Injection
published 6y ago modified 4mo ago also EUVD-2020-0232 , GHSA-33c7-2mpw-hg34 , PYSEC-2020-150
- cvss
- 3.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- pypi uvicorn 0.11.7
- encode uvicorn 0.11.7
- python-uvicorn Debian 14, Debian 13, Debian 12 0.13.3-1
debian advisories DEBIAN-CVE-2020-7694
Is CVE-2020-7694 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-7694 updated cvss 7.5
uvicorn: ANSI escape sequence injection
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.36% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-PYTHON-UVICORN-575560 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.7 | 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 | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| CNA | 3.1 | 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | uvicorn | <0.11.7 |
0.11.7 |
Affected products
- n/a uvicorn
Classification
References
-
github.com
/encode/uvicorn/commit/895807f94ea9a8e588605c12076b7d7517cda503
web
-
snyk.io
/vuln/SNYK-PYTHON-UVICORN-575560
web, exploit, third-party-advisory, advisory
-
github.com
/encode/uvicorn
package, product, third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2020-7694
advisory
-
github.com
/encode/uvicorn/issues/723
web
-
github.com
/pypa/advisory-database/tree/main/vulns/uvicorn/PYSEC-2020-150.yaml
web
-
github.com
/advisories/GHSA-33c7-2mpw-hg34
advisory
Sources
- CVE List CVE-2020-7694
- GitHub Advisory GHSA-33c7-2mpw-hg34
- NVD CVE-2020-7694
- OSV PYSEC-2020-150
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Enhance with affected version ranges and fix information.