cve.bz

CVE-2026-8328 python software foundation cpython: SSRF

5.9 mediumEPSS 0.5%

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

On this page
The ftpcp() function in Lib/ftplib.py was not updated when CVE-2021-4189 was fixed. While makepasv() was patched to replace server-supplied PASV host addresses with the actual peer address (getpeername()[0]), ftpcp() still calls parse227() directly and passes the raw attacker-controllable IP address and port to target.sendport(). This patch is related to CVE-2021-4189.

Severity

CVSS 4.0

5.9 medium
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 40th 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: partial, assessed 2026-05-14. 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-918 Server-Side Request Forgery (SSRF)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
PSF (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-8328 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-8328?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-8328?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-8328 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.10.21
Python Software Foundation CPythonfrom 3.11.0 before 3.11.16
Python Software Foundation CPythonfrom 3.12.0 before 3.12.14
Python Software Foundation CPythonfrom 3.13.0 before 3.13.14
Python Software Foundation CPythonfrom 3.14.0 before 3.14.6
Python Software Foundation CPythonfrom 3.15.0a1 before 3.15.0b2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python3.113.11.2-6+deb12u9DEBIAN-CVE-2026-8328 DLA-4827-1
Debian12, 13pypy3no fix listedDEBIAN-CVE-2026-8328
Debian13python3.133.13.5-2+deb13u3DEBIAN-CVE-2026-8328
Debian14pypy38.0.0+dfsg-1DEBIAN-CVE-2026-8328
Debian14python3.143.14.6-1DEBIAN-CVE-2026-8328
Ubuntu22.04:LTSpython3.103.10.12-1~22.04.16UBUNTU-CVE-2026-8328 USN-8509-1
Ubuntu24.04:LTSpython3.123.12.3-1ubuntu0.15UBUNTU-CVE-2026-8328 USN-8509-1
Ubuntu25.10python3.13, python3.14no fix listedUBUNTU-CVE-2026-8328
Ubuntu26.04:LTSpython3.143.14.4-1ubuntu0.1UBUNTU-CVE-2026-8328 USN-8509-1
UbuntuPro:14.04:LTSpython2.7, python3.4, python3.5no fix listedUBUNTU-CVE-2026-8328
UbuntuPro:16.04:LTSpython2.7, python3.5no fix listedUBUNTU-CVE-2026-8328
UbuntuPro:18.04:LTSpython2.7, python3.6, python3.7 and 1 moreno fix listedUBUNTU-CVE-2026-8328
UbuntuPro:20.04:LTSpython2.7, python3.8, python3.9no fix listedUBUNTU-CVE-2026-8328
UbuntuPro:22.04:LTSpython2.7, python3.11no fix listedUBUNTU-CVE-2026-8328
Red Hathummingbird:1python3, python3.14, python3-idle and 13 more0:3.14.7-1.2.hum1RHSA-2026:67572
Red Hathummingbird:1python3.10, python3.10-idle, python3.10-libs and 4 more0:3.10.21-1.3.hum1RHSA-2026:68132
Red Hathummingbird:1python3.11, python3.11-idle, python3.11-libs and 4 more0:3.11.16-1.4.hum1RHSA-2026:68135
Red Hathummingbird:1python3.12, python3.12-idle, python3.12-libs and 4 more0:3.12.14-1.3.hum1RHSA-2026:68154
Red Hathummingbird:1python3.13, python3.13-idle, python3.13-libs and 6 more0:3.13.15-1.3.hum1RHSA-2026:68309
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy, saltbundlepy-core3.11.15-90002.4.15.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cffi1.17.1-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cryptography3.3.2-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-cssselect1.3.0-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-editables0.5-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-exceptiongroup, saltbundlepy-exceptiongroup-test1.2.2-90002.3.3.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-flit-core3.12.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-fancy-pypi-readme, saltbundlepy-hatch-fancy-pypi-readme-test25.1.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatch-vcs, saltbundlepy-hatch-vcs-test0.5.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-hatchling1.31.0-90002.3.3.1SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-idna3.10-90002.3.6.2SUSE-SU-2026:4582-1
SUSEEL-9:Update:Products:MultiLinuxManagerTools:Updatesaltbundlepy-iniconfig2.1.0-90002.3.3.1SUSE-SU-2026:4582-1
138 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 16.0python313, python313-core, python313-nogil and 2 more3.13.14-160000.2.1openSUSE-SU-2026:21595-1
openSUSETumbleweedpython3103.10.20-7.1openSUSE-SU-2026:11285-1
openSUSETumbleweedpython3113.11.15-8.1openSUSE-SU-2026:11427-1
openSUSETumbleweedpython3123.12.13-8.1openSUSE-SU-2026:11428-1
openSUSETumbleweedpython3133.13.14-1.1openSUSE-SU-2026:11342-1
openSUSETumbleweedpython3143.14.6-1.1openSUSE-SU-2026:11181-1
openSUSETumbleweedpython3153.15.0~b2-1.1openSUSE-SU-2026:11101-1
Alpinev3.24python33.14.7-r0ALPINE-CVE-2026-8328
Azure Linux3python33.12.9-13AZL-86913
Alpaquita23python33.11.15-r2BELL-CVE-2026-8328
Alpaquita25python33.12.13-r2BELL-CVE-2026-8328
Alpaquitastreampython33.14.3-r2BELL-CVE-2026-8328
BellSoft Hardened Containers23python33.11.15-r2BELL-CVE-2026-8328
BellSoft Hardened Containers25python33.12.13-r2BELL-CVE-2026-8328
BellSoft Hardened Containersstreampython33.14.3-r2BELL-CVE-2026-8328

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; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

A flaw with Important impact was found in the ftplib module of Python, affecting the Python components shipped in Red Hat Hardened Images. The ftpcp() function in Lib/ftplib.py was not updated when CVE-2021-4189 was fixed: although makepasv() was patched to replace server-supplied PASV host addresses with the actual peer address, ftpcp() still calls parse227() directly and passes the raw, attacker-controllable IP address and port to target.sendport(). A remote attacker who controls or has compromised an FTP server can therefore supply a malicious PASV response that redirects the FTP data connection to an arbitrary host, which can compromise data integrity or enable further network-based attacks. Within Red Hat Hardened Images, the python3.10, python3.11, python3.12, python3.13, and python3.14 components are affected; their resolution is delegated to the Red Hat Hardened Images maintainers, and updated packages have been released via errata. The hi/python OCI image is not affected because the vulnerable component is not present in that image. Red Hat rates the overall impact of this flaw as Important, while the CVSS scores assigned by both Red Hat (5.3, CVSS:3.1, Moderate) and upstream (5.9, CVSS:4.0, Moderate) are lower; the vectors differ mainly in that upstream scores the consequence as high integrity impact with user interaction required, whereas the Red Hat vector scores a low confidentiality impact.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Hardened Imagespython3-14-main-3.14.7-1.2.hum1Fixed 2026-09-15RHSA-2026:67572
Red Hat Hardened Imagespython3-10-main-3.10.21-1.3.hum1Fixed 2026-09-16RHSA-2026:68132
Red Hat Hardened Imagespython3-11-main-3.11.16-1.4.hum1Fixed 2026-09-16RHSA-2026:68135
Red Hat Hardened Imagespython3-12-main-3.12.14-1.3.hum1Fixed 2026-09-16RHSA-2026:68154
Red Hat Hardened Imagespython3-13-main-3.13.15-1.3.hum1Fixed 2026-09-16RHSA-2026:68309
Red Hat Hardened Imageshi/pythonNot affected

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

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-295-11Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP2026-10-13Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and FacilitiesSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.7, SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.7, SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.7 and 2 morenone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-664 Server Side Request Forgery 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