Описание
socket.getaddrinfo() previously accepted null bytes within host and port parameters which can cause the values to be silently truncated.
A flaw was found in Python. An attacker could bypass security controls and redirect network connections to unintended destinations due to improper input handling in the socket.getaddrinfo() function. Specifically, when host or port parameters contain null byte characters, the values are silently truncated during address resolution. This flaw enables attackers who supply network inputs to evade validation filters, such as domain or port allowlists.
Отчет
Red Hat has evaluated this vulnerability as Moderate because exploitation is limited to applications that forward unsanitized external input to hostname resolution routines while relying on prefix-based or suffix-based validation. While an attacker can cause target destinations to be interpreted differently by the resolver compared to preceding security checks, this does not directly compromise system integrity or allow arbitrary remote code execution. Standard system utilities and hardened network services that perform strict input verification or resolve predefined endpoints remain unaffected.
Меры по смягчению последствий
Reject or sanitize null bytes in host and port values before calling socket.getaddrinfo(), or upgrade to CPython 3.16.0+ or a build carrying the backported fix (upstream PRs #160925/#160926/#160974/#160975/#160977 for 3.15/3.14/3.13/3.12/3.11).
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | python3.12 | Fix deferred | ||
| Red Hat Enterprise Linux 10 | python3.14 | Fix deferred | ||
| Red Hat Enterprise Linux 6 | python | Fix deferred | ||
| Red Hat Enterprise Linux 7 | python | Fix deferred | ||
| Red Hat Enterprise Linux 7 | python3 | Fix deferred | ||
| Red Hat Enterprise Linux 8 | python3.12 | Fix deferred | ||
| Red Hat Enterprise Linux 8 | python36:3.6/python36 | Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3.12 | Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3.14 | Fix deferred | ||
| Red Hat Enterprise Linux 9 | python3.9 | Affected |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
5.3 Medium
CVSS3
Связанные уязвимости
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
socket.getaddrinfo() previously accepted null bytes within *host* and ...
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.
EPSS
5.3 Medium
CVSS3