Ad

CVE-2019-9740

MEDIUM CVSS 3.1: 6,1 EPSS 5.41%
Обновлено 14 октября 2026
Python
Параметр Значение
CVSS 6,1 (MEDIUM)
Уязвимые версии 2.0 — 3.7.4
Устранено в версии 2.7.17
Тип уязвимости CWE-93
Поставщик Python
Публичный эксплойт Да

Проблема была обнаружена в urllib2 в Python 2.x через 2.7.16 и urllib в Python 3.x через 3.7.3. Инъекция CRLF возможна, если злоумышленник управляет параметром url, о чем свидетельствует первый аргумент urllib.request.urlopen с rn (конкретно в строке запроса после символа ?), за которым следует заголовок HTTP или команда Redis. This is fixed in: v2.7.17, v2.7.17rc1, v2.7.18, v2.7.18rc1; v3.5.10, v3.5.10rc1, v3.5.8, v3.5.8rc1, v3.5.8rc2, v3.5.9; v3.6.10, v3.6.10rc1, v3.6.11, v3.6.11rc1, v3.6.12, v3.6.9, v3.6.9rc1; v3.7.4, v3.7.4rc1, v3.7.4rc2, v3.7.5, v3.7.5rc1, v3.7.6, v3.7.6rc1, v3.7.7, v3.7.7rc1, v3.7.8, v3.7.8rc1, v3.7.9.

Показать оригинальное описание (EN)

An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.3. CRLF injection is possible if the attacker controls a url parameter, as demonstrated by the first argument to urllib.request.urlopen with \r\n (specifically in the query string after a ? character) followed by an HTTP header or a Redis command. This is fixed in: v2.7.17, v2.7.17rc1, v2.7.18, v2.7.18rc1; v3.5.10, v3.5.10rc1, v3.5.8, v3.5.8rc1, v3.5.8rc2, v3.5.9; v3.6.10, v3.6.10rc1, v3.6.11, v3.6.11rc1, v3.6.12, v3.6.9, v3.6.9rc1; v3.7.4, v3.7.4rc1, v3.7.4rc2, v3.7.5, v3.7.5rc1, v3.7.6, v3.7.6rc1, v3.7.7, v3.7.7rc1, v3.7.8, v3.7.8rc1, v3.7.9.

Характеристики атаки

Способ атаки
По сети
Атака возможна удалённо
Сложность
Низкая
Легко эксплуатировать
Нужны права
Не требуются
Права не нужны
Участие пользователя
Требуется
Нужно действие пользователя

Последствия

Конфиденциальность
Низкое
Частичная утечка данных
Целостность
Низкое
Частичная модификация данных
Доступность
Нет
Нет нарушения работы

Строка CVSS v3.1

Тип уязвимости (CWE)

Уязвимые продукты 4

Конфигурация От (включительно) До (исключительно)
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
2.0 2.7.17
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.5.0 3.5.8
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.6.0 3.6.9
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.7.0 3.7.4

Ссылки 30

http://www.securityfocus.com/bid/107466
107466
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
FEDORA-2019-1ffd6b6064
https://access.redhat.com/errata/RHSA-2019:1260
RHSA-2019:1260
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
FEDORA-2019-ec26883852
https://lists.debian.org/debian-lts-announce/2019/06/msg00022.html
[debian-lts-announce] 20190625 [SECURITY] [DLA 1834-1] python2.7 security update
https://lists.debian.org/debian-lts-announce/2019/06/msg00023.html
[debian-lts-announce] 20190625 [SECURITY] [DLA 1835-1] python3.4 security update
https://lists.debian.org/debian-lts-announce/2019/06/msg00026.html
[debian-lts-announce] 20190625 [SECURITY] [DLA 1835-2] python3.4 regression update
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
FEDORA-2019-7723d4774a
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
FEDORA-2019-7df59302e0
https://access.redhat.com/errata/RHSA-2019:2030
RHSA-2019:2030
https://usn.ubuntu.com/4127-2/
USN-4127-2
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00039.html
openSUSE-SU-2019:2131
http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00041.html
openSUSE-SU-2019:2133
https://usn.ubuntu.com/4127-1/
USN-4127-1
https://seclists.org/bugtraq/2019/Oct/29
20191021 [slackware-security] python (SSA:2019-293-01)
https://access.redhat.com/errata/RHSA-2019:3335
RHSA-2019:3335
https://access.redhat.com/errata/RHSA-2019:3520
RHSA-2019:3520
https://access.redhat.com/errata/RHSA-2019:3725
RHSA-2019:3725
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
FEDORA-2019-b06ec6159b
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
FEDORA-2019-d202cda4f8
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedorapr…
FEDORA-2019-57462fa10d
https://security.gentoo.org/glsa/202003-26
GLSA-202003-26
https://lists.debian.org/debian-lts-announce/2020/07/msg00011.html
[debian-lts-announce] 20200715 [SECURITY] [DLA 2280-1] python3.5 security update
https://lists.debian.org/debian-lts-announce/2020/08/msg00034.html
[debian-lts-announce] 20200822 [SECURITY] [DLA 2337-1] python2.7 security update
http://packetstormsecurity.com/files/154927/Slackware-Security-Advisory-python-…
NVD
http://www.openwall.com/lists/oss-security/2021/02/04/2
[oss-security] 20210204 [CVE-2020-15693, CVE-2020-15694] Nim - stdlib Httpclient - Header Crlf Injection & Server Response Validation
https://www.oracle.com/security-alerts/cpujul2022.html
NVD
https://bugs.python.org/issue36276
NVD
https://security.netapp.com/advisory/ntap-20190619-0005/
NVD
https://cert-portal.siemens.com/productcert/html/ssa-398330.html
0b142b55-0307-4c5a-b3c9-f314f3fb7c5e