Skip to content
Heist/ feed
Back to feed
Medium

python-uvicorn — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2020-7695

Uvicorn before 0.11.7 is vulnerable to HTTP response splitting. CRLF sequences are not escaped in the value of HTTP headers. Attackers can exploit this to add arbitrary headers to HTTP responses, or even return an arbitrary response body, whenever crafted input is used to construct HTTP headers.

Products
python-uvicorn
Affected versions
0.11.1-1, 0.11.2-1, 0.11.3-1, 0.13.3-1, 0.15.0-2ubuntu1, 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, 0.3.24-1, 0.32.0-3, 0.38.0-1
Fixed versions
Not specified
CVEs
CVE-2020-7695
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:29 UTC · Revision 1

Source evidence

UBUNTU-CVE-2020-7695

core-osv · Original source

Published 27 Jul 2020, 12:15 UTC

Uvicorn before 0.11.7 is vulnerable to HTTP response splitting. CRLF sequences are not escaped in the value of HTTP headers. Attackers can exploit this to add arbitrary headers to HTTP responses, or even return an arbitrary response body, whenever crafted input is used to construct HTTP headers.

osv:UBUNTU-CVE-2020-7695

python-uvicorn

Fixed versions: Not specified

python-uvicorn

Fixed versions: Not specified

python-uvicorn

Fixed versions: Not specified

python-uvicorn

Fixed versions: Not specified

python-uvicorn

Fixed versions: Not specified

python-uvicorn

Fixed versions: Not specified

Complete source record
{
  "id": "6b5fb886eb25c44b9cce9d25d9672ae05988f3b32a13ac6bd2ad445dc728ea67",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-7695",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2020-7695",
    "summary": "Uvicorn before 0.11.7 is vulnerable to HTTP response splitting. CRLF sequences are not escaped in the value of HTTP headers. Attackers can exploit this to add arbitrary headers to HTTP responses, or even return an arbitrary response body, whenever crafted input is used to construct HTTP headers.",
    "evidence": "osv:UBUNTU-CVE-2020-7695",
    "products": [
      {
        "name": {
          "value": "python-uvicorn",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.3.24-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.11.1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.11.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.11.3-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-uvicorn",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.13.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.15.0-2ubuntu1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-uvicorn",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.23.2+dfsg-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.24.0-1build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.25.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.26.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.27.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "0.27.1-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-uvicorn",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.32.0-3",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-uvicorn",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.38.0-1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "python-uvicorn",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.32.0-3",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "0.38.0-1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2020-7695",
      "aliases": [
        "UBUNTU-CVE-2020-7695"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-uvicorn",
            "purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "0.3.24-1",
            "0.11.1-1",
            "0.11.2-1",
            "0.11.3-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7695.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-uvicorn",
                "binary_version": "0.11.3-1"
              },
              {
                "binary_name": "uvicorn",
                "binary_version": "0.11.3-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-uvicorn",
            "purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "0.13.3-1",
            "0.15.0-2ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7695.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-uvicorn",
                "binary_version": "0.15.0-2ubuntu1"
              },
              {
                "binary_name": "uvicorn",
                "binary_version": "0.15.0-2ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-uvicorn",
            "purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7695.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-uvicorn",
                "binary_version": "0.27.1-1"
              },
              {
                "binary_name": "uvicorn",
                "binary_version": "0.27.1-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-uvicorn",
            "purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "0.32.0-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7695.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-uvicorn",
                "binary_version": "0.32.0-3"
              },
              {
                "binary_name": "uvicorn",
                "binary_version": "0.32.0-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-uvicorn",
            "purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.38.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7695.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-uvicorn",
                "binary_version": "0.38.0-1"
              },
              {
                "binary_name": "uvicorn",
                "binary_version": "0.38.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "python-uvicorn",
            "purl": "pkg:deb/ubuntu/python-uvicorn?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "0.32.0-3",
            "0.38.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-7695.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-uvicorn",
                "binary_version": "0.38.0-1"
              },
              {
                "binary_name": "uvicorn",
                "binary_version": "0.38.0-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:56.747840025Z",
      "provider": "osv",
      "upstream": [
        "CVE-2020-7695"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2020-7695",
        "https://github.com/encode/uvicorn",
        "https://snyk.io/vuln/SNYK-PYTHON-UVICORN-570471",
        "https://www.cve.org/CVERecord?id=CVE-2020-7695"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2020-7695",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 356562,
  "published_at": "2020-07-27T12:15:00+00:00"
}