CVE-2019-9636

Public on 2019-03-08
Modified on 2019-11-22
Description
It was discovered that python's functions urllib.parse.urlsplit and urllib.parse.urlparse do not properly handle URLs encoded with Punycode/Internationalizing Domain Names in Applications (IDNA), which may result in a wrong domain name (specifically the netloc component of URL - user@domain:port) being returned by those functions. When an application parses user-supplied URLs to store cookies, authentication credentials, or other kind of information, it is possible for an attacker to provide specially crafted URLs to make the application locate host-related information (e.g. cookies, authentication data) and send them to a different host than where it should, unlike if the URLs had been correctly parsed. The result of an attack may vary based on the application.
Severity
Important severity
Important
CVSS v3 Base Score
9.8
See breakdown

Affected Packages

Platform Package Release Date Advisory Status
Amazon Linux 2 - Core python 2019-06-25 ALAS2-2019-1230 Fixed
Amazon Linux 1 python27 2019-06-25 ALAS-2019-1230 Fixed
Amazon Linux 2 - Core python3 2019-05-02 ALAS2-2019-1204 Fixed
Amazon Linux 1 python34 2019-05-02 ALAS-2019-1202 Fixed
Amazon Linux 1 python34 2019-11-19 ALAS-2019-1324 Fixed
Amazon Linux 1 python35 2019-07-17 ALAS-2019-1243 Fixed
Amazon Linux 1 python36 2019-05-29 ALAS-2019-1204 Fixed

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 9.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD CVSSv3 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD CVSSv2 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N