Your submission was sent successfully! Close

CVE-2022-0391

Published: 9 February 2022

A flaw was found in Python, specifically within the urllib.parse module. This module helps break Uniform Resource Locator (URL) strings into components. The issue involves how the urlparse method does not sanitize input and allows characters like '\r' and '\n' in the URL path. This flaw allows an attacker to input a crafted URL, leading to injection attacks. This flaw affects Python versions prior to 3.10.0b1, 3.9.5, 3.8.11, 3.7.11 and 3.6.14.

Notes

AuthorNote
leosilva
for python2.7 code affected, urlsplit is in Lib/urlparse.py.
according with Debian, the fix for python3.5 causes regressions.
Priority

Medium

CVSS 3 base score: 7.5

Status

Package Release Status
python2.7
Launchpad, Ubuntu, Debian
bionic
Released (2.7.17-1~18.04ubuntu1.7)
focal Needed

impish Ignored
(reached end-of-life)
jammy Needed

kinetic Needed

trusty
Released (2.7.6-8ubuntu0.6+esm12)
upstream Needs triage

xenial
Released (2.7.12-1ubuntu0~16.04.18+esm1)
python3.10
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Does not exist

impish Not vulnerable

jammy Not vulnerable

kinetic Not vulnerable

trusty Does not exist

upstream Needs triage

xenial Does not exist

python3.4
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Does not exist

impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty
Released (3.4.3-1ubuntu1~14.04.7+esm12)
upstream Needs triage

xenial Does not exist

python3.5
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Does not exist

impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty Needs triage

upstream Needs triage

xenial
Released (3.5.2-2ubuntu0~16.04.13+esm2)
python3.6
Launchpad, Ubuntu, Debian
bionic
Released (3.6.9-1~18.04ubuntu1.7)
focal Does not exist

impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty Does not exist

upstream Needs triage

xenial Does not exist

Patches:
upstream: https://github.com/python/cpython/commit/6c472d3a1d334d4eeb4a25eba7bf3b01611bf667



python3.7
Launchpad, Ubuntu, Debian
bionic Needed

focal Does not exist

impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty Does not exist

upstream Needs triage

xenial Does not exist

Patches:

upstream: https://github.com/python/cpython/commit/f4dac7ec55477a6c5d965e594e74bd6bda786903


python3.8
Launchpad, Ubuntu, Debian
bionic Needed

focal
Released (3.8.10-0ubuntu1~20.04.4)
impish Does not exist

jammy Does not exist

kinetic Does not exist

trusty Does not exist

upstream Needs triage

xenial Does not exist

Patches:


upstream: https://github.com/python/cpython/pull/25726/commits/56cdbe0a2cb396932aa0de14eb0b70c9a0686631

python3.9
Launchpad, Ubuntu, Debian
bionic Does not exist

focal Not vulnerable
(3.9.7-1)
impish Not vulnerable
(3.9.7-2build1)
jammy Does not exist

kinetic Does not exist

trusty Ignored
(out of standard support)
upstream
Released (3.9.7-1)
xenial Ignored
(out of standard support)
Patches:



upstream: https://github.com/python/cpython/pull/25853/commits/7a4406034750d0fe1f9b3bf2e020c7b7a6936066