Ad

CVE-2019-9947

MEDIUM CVSS 3.1: 6,1 EPSS 5.25%
Обновлено 14 октября 2026
Python
Параметр Значение
CVSS 6,1 (MEDIUM)
Уязвимые версии 2.7.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 (конкретно в компоненте пути URL, в котором отсутствует ? символ), за которым следует заголовок HTTP или команда Redis. Это похоже на вопрос строки запроса CVE-2019-9740.

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 path component of a URL that lacks a ? character) followed by an HTTP header or a Redis command. This is similar to the CVE-2019-9740 query string issue. 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.7.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

Ссылки 22

https://bugs.python.org/issue35906
NVD
https://security.netapp.com/advisory/ntap-20190404-0004/
NVD
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://access.redhat.com/errata/RHSA-2019:2030
RHSA-2019:2030
https://usn.ubuntu.com/4127-2/
USN-4127-2
https://usn.ubuntu.com/4127-1/
USN-4127-1
http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00062.html
openSUSE-SU-2019:2389
http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00063.html
openSUSE-SU-2019:2393
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
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html
openSUSE-SU-2020:0086
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://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://cert-portal.siemens.com/productcert/html/ssa-398330.html
0b142b55-0307-4c5a-b3c9-f314f3fb7c5e