CVE-2020-7694

Source
https://nvd.nist.gov/vuln/detail/CVE-2020-7694
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-7694.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2020-7694
Aliases
Related
Published
2020-07-27T12:15:11Z
Modified
2024-11-21T05:37:37Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Debian:11 / python-uvicorn

Package

Name
python-uvicorn
Purl
pkg:deb/debian/python-uvicorn?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.13.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / python-uvicorn

Package

Name
python-uvicorn
Purl
pkg:deb/debian/python-uvicorn?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.13.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / python-uvicorn

Package

Name
python-uvicorn
Purl
pkg:deb/debian/python-uvicorn?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.13.3-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}