cve.bz

CVE-2026-116566 python software foundation cpython

5.3 mediumEPSS 0.3%

Medium (5.3) in python software foundation cpython. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
socket.getaddrinfo() previously accepted null bytes within *host* and *port* parameters which can cause the values to be silently truncated.

Severity

CVSS 4.0

5.3 medium
CVSS:4.0/AV:A/AC:L/AT:P/PR:H/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS
0.3% (unchanged from 0.3% a week ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-158 Improper Neutralization of Null Byte or NUL Character
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-116566 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-116566?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-116566?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-116566 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Python Software Foundation CPythonbefore 3.16.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python3.11no fix listedDEBIAN-CVE-2026-116566
Debian13python3.13no fix listedDEBIAN-CVE-2026-116566
Debian14python3.14, python3.15no fix listedDEBIAN-CVE-2026-116566
Ubuntu22.04:LTSpython3.10no fix listedUBUNTU-CVE-2026-116566
Ubuntu24.04:LTSpython3.12no fix listedUBUNTU-CVE-2026-116566
Ubuntu26.04:LTSpython3.14no fix listedUBUNTU-CVE-2026-116566
Ubuntu26.10python3.14, python3.15no fix listedUBUNTU-CVE-2026-116566
UbuntuPro:14.04:LTSpython2.7, python3.4, python3.5no fix listedUBUNTU-CVE-2026-116566
UbuntuPro:16.04:LTSpython2.7, python3.5no fix listedUBUNTU-CVE-2026-116566
UbuntuPro:18.04:LTSpython2.7, python3.6, python3.7 and 1 moreno fix listedUBUNTU-CVE-2026-116566
UbuntuPro:20.04:LTSpython2.7, python3.8, python3.9no fix listedUBUNTU-CVE-2026-116566
UbuntuPro:22.04:LTSpython2.7, python3.11no fix listedUBUNTU-CVE-2026-116566
Red Hatenterprise_linux:8::appstreampython3-idle, python3-test, platform-python and 5 more0:3.6.8-80.el8_10RHSA-2026:99691
Red Hatenterprise_linux:8::baseospython3, python3-libs, python3-test and 3 more0:3.6.8-80.el8_10RHSA-2026:99691
Red Hathummingbird:1python3, python3.14, python3-idle and 13 more0:3.14.10-1.2.hum1RHSA-2026:93609
Red Hathummingbird:1python3.11, python3.11-idle, python3.11-libs and 4 more0:3.11.18-1.2.hum1RHSA-2026:94903
Red Hathummingbird:1python3.12, python3.12-idle, python3.12-libs and 4 more0:3.12.16-1.2.hum1RHSA-2026:93615
Red Hathummingbird:1python3.13, python3.13-idle, python3.13-libs and 6 more0:3.13.18-1.2.hum1RHSA-2026:93613
Red Hathummingbird:1python3.15, python3.15-idle, python3.15-libs and 11 more0:3.15.2-1.2.hum1RHSA-2026:93607
AlmaLinux8python3-idle, python3-libs, python3-test and 4 more3.6.8-80.el8_10.alma.1ALSA-2026:99691
Rocky Linux8python3-idle, python3-libs, python3-test and 6 more0:3.6.8-80.el8_10.rocky.0RLSA-2026:99691
Azure Linux3python-pyno fix listedAZL-111530
Azure Linux3python3no fix listedAZL-111542

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

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.

Red Hat's mitigation

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).

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8python3-0:3.6.8-80.el8_10Fixed 2026-11-12RHSA-2026:99691
Red Hat Enterprise Linux 10python3.12Fix deferred
Red Hat Enterprise Linux 10python3.14Fix deferred
Red Hat Enterprise Linux 6pythonFix deferred
Red Hat Enterprise Linux 7pythonFix deferred
Red Hat Enterprise Linux 7python3Fix deferred
Red Hat Enterprise Linux 8python3.12Fix deferred
Red Hat Enterprise Linux 8python36:3.6/python36Fix deferred
Red Hat Enterprise Linux 9python3.12Fix deferred
Red Hat Enterprise Linux 9python3.14Fix deferred
Red Hat Enterprise Linux 9python3.9Affected
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-aws-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-azure-rocm-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gaudi-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-gcp-cuda-rhel9Fix deferred
Red Hat Enterprise Linux AI (RHEL AI) 3rhelai3/bootc-rocm-rhel9Fix deferred
Red Hat Hardened Imagespython3.10Will not fix
Red Hat Hardened Imagespython3.11Affected
6 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-116566.

Attack patterns (CAPEC)

  • CAPEC-52 Embedding NULL Bytes Likelihood: High · Severity: High
  • CAPEC-53 Postfix, Null Terminate, and Backslash Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON