CVE catalog

CVE-2020-7694

python-uvicorn: CVE-2020-7694

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
1.36% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpython-uvicornsid0.53.0-1fixed
Debianpython-uvicornforky0.53.0-1fixed
Debianpython-uvicorntrixie0.32.0-3fixed
Debianpython-uvicornbookworm0.17.6-1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpython-uvicornsourcesid0.13.3-1not yet assignedNot reported[969276]
Debianpython-uvicornsourceforky0.13.3-1not yet assignedNot reported[969276]
Debianpython-uvicornsourcetrixie0.13.3-1not yet assignedNot reported[969276]
Debianpython-uvicornsourcebookworm0.13.3-1not yet assignedNot reported[969276]

[Debian bug #969276]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [python-uvicorn]

    Details (2)
    • 0.17.6-1 · all · bookworm

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · bookworm; dsa · python-uvicorn · debian · 12

    • 0.17.6-1 · all · bookworm

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · bookworm; dsa · python-uvicorn · debian · 12

  • Source package: [python-uvicorn]

    Details (2)
    • 0.17.6-1 · all · bookworm

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · bookworm; dsa · python-uvicorn · debian · 12

    • 0.17.6-1 · all · bookworm

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · bookworm; dsa · python-uvicorn · debian · 12

  • [uvicorn]Fixed

    Source package: [python-uvicorn]

    Details (2)
    • 0.17.6-1 · all · bookworm

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · bookworm; dsa · python-uvicorn · debian · 12

    • 0.17.6-1 · all · bookworm

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · bookworm; dsa · python-uvicorn · debian · 12

[Debian 13 (Trixie)]

  • Source package: [python-uvicorn]

    Details (2)
    • 0.32.0-3 · all · trixie

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · 13

    • 0.32.0-3 · all · trixie

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · 13

  • Source package: [python-uvicorn]

    Details (2)
    • 0.32.0-3 · all · trixie

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · 13

    • 0.32.0-3 · all · trixie

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · 13

  • [uvicorn]Fixed

    Source package: [python-uvicorn]

    Details (2)
    • 0.32.0-3 · all · trixie

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · 13

    • 0.32.0-3 · all · trixie

      Fixed · Fixed: 0.13.3-1

      dsa · python-uvicorn · debian · 13

Observed:

References