UBUNTU-CVE-2020-7694

Source
https://ubuntu.com/security/CVE-2020-7694
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7694.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2020-7694
Related
Published
2020-07-27T12:15:00Z
Modified
2025-04-23T14:55:50Z
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

Ubuntu:20.04:LTS / python-uvicorn

Package

Name
python-uvicorn
Purl
pkg:deb/ubuntu/python-uvicorn@0.11.3-1?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.3.24-1
0.11.1-1
0.11.2-1
0.11.3-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / python-uvicorn

Package

Name
python-uvicorn
Purl
pkg:deb/ubuntu/python-uvicorn@0.15.0-2ubuntu1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.13.3-1
0.15.0-2ubuntu1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / python-uvicorn

Package

Name
python-uvicorn
Purl
pkg:deb/ubuntu/python-uvicorn@0.30.3-1?arch=source&distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.27.1-1
0.29.0-1
0.30.1-1
0.30.3-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / python-uvicorn

Package

Name
python-uvicorn
Purl
pkg:deb/ubuntu/python-uvicorn@0.27.1-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.23.2+dfsg-1
0.24.0-1build1
0.25.0-1
0.26.0-1
0.27.0-1
0.27.1-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:25.04 / python-uvicorn

Package

Name
python-uvicorn
Purl
pkg:deb/ubuntu/python-uvicorn@0.32.0-3?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.30.3-1
0.32.0-1
0.32.0-2
0.32.0-3

Ecosystem specific

{
    "ubuntu_priority": "medium"
}