Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2026-8328

Summary
Assigner-PSF
Assigner Org ID-28c92f92-d60d-412d-b760-e73465c3df22
Published At-13 May, 2026 | 20:14
Updated At-30 Jun, 2026 | 15:09
Rejected At-
Credits

FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:PSF
Assigner Org ID:28c92f92-d60d-412d-b760-e73465c3df22
Published At:13 May, 2026 | 20:14
Updated At:30 Jun, 2026 | 15:09
Rejected At:
▼CVE Numbering Authority (CNA)
FTP PASV SSRF, ftpcp() does not use actual peer address, trusts server-supplied PASV host address

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.

Affected Products
Vendor
Python Software FoundationPython Software Foundation
Product
CPython
Repo
https://github.com/python/cpython
Modules
  • ftplib
Default Status
unaffected
Versions
Affected
  • From 0 before 3.13.14 (python)
  • From 3.14.0 before 3.14.6 (python)
  • From 3.15.0a1 before 3.15.0b2 (python)
Problem Types
TypeCWE IDDescription
CWECWE-918CWE-918 Server-Side request forgery (SSRF)
Type: CWE
CWE ID: CWE-918
Description: CWE-918 Server-Side request forgery (SSRF)
Metrics
VersionBase scoreBase severityVector
4.05.9MEDIUM
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
Version: 4.0
Base score: 5.9
Base severity: MEDIUM
Vector:
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
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

reporter
Qi Deng (https://github.com/ikow)
remediation developer
Bénédikt Tran (https://github.com/picnixz)
remediation developer
Gregory P. Smith (https://github.com/gpshead)
Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://github.com/python/cpython/issues/87451
issue-tracking
https://github.com/python/cpython/pull/149648
patch
https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/
vendor-advisory
https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06
patch
https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0
patch
https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763
patch
https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d
patch
https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9
patch
https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f
patch
https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb
patch
Hyperlink: https://github.com/python/cpython/issues/87451
Resource:
issue-tracking
Hyperlink: https://github.com/python/cpython/pull/149648
Resource:
patch
Hyperlink: https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/
Resource:
vendor-advisory
Hyperlink: https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06
Resource:
patch
Hyperlink: https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0
Resource:
patch
Hyperlink: https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763
Resource:
patch
Hyperlink: https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d
Resource:
patch
Hyperlink: https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9
Resource:
patch
Hyperlink: https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f
Resource:
patch
Hyperlink: https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb
Resource:
patch
▼Authorized Data Publishers (ADP)
CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:cna@python.org
Published At:13 May, 2026 | 21:16
Updated At:30 Jun, 2026 | 16:16

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Secondary4.05.9MEDIUM
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
N/A
Type: Secondary
Version: 4.0
Base score: 5.9
Base severity: MEDIUM
Vector:
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Type: N/A
Version:
Base score:
Base severity: N/A
Vector:
CPE Matches

Weaknesses
CWE IDTypeSource
CWE-918Secondarycna@python.org
CWE ID: CWE-918
Type: Secondary
Source: cna@python.org
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5fcna@python.org
N/A
https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06cna@python.org
N/A
https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0cna@python.org
N/A
https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763cna@python.org
N/A
https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1dcna@python.org
N/A
https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9cna@python.org
N/A
https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fcebcna@python.org
N/A
https://github.com/python/cpython/issues/87451cna@python.org
N/A
https://github.com/python/cpython/pull/149648cna@python.org
N/A
https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/cna@python.org
N/A
Hyperlink: https://github.com/python/cpython/commit/2bbcf3fb7a420a05605576c0f9468d4675381b5f
Source: cna@python.org
Resource: N/A
Hyperlink: https://github.com/python/cpython/commit/5dadc64673ce875ebfb24163907777dae0f6ca06
Source: cna@python.org
Resource: N/A
Hyperlink: https://github.com/python/cpython/commit/7d95a1dc7382b55cba7fdd6a110336077584a4f0
Source: cna@python.org
Resource: N/A
Hyperlink: https://github.com/python/cpython/commit/bb3446dda6c49b32e67c11dbbbf221b40be00763
Source: cna@python.org
Resource: N/A
Hyperlink: https://github.com/python/cpython/commit/c88704431ea3248ca769384c13856330976fac1d
Source: cna@python.org
Resource: N/A
Hyperlink: https://github.com/python/cpython/commit/eac4fe3b2c77693790a5ef7dfab127c1fee81bf9
Source: cna@python.org
Resource: N/A
Hyperlink: https://github.com/python/cpython/commit/ef12d0dc824baccf737bba1458e5eed3d1e0fceb
Source: cna@python.org
Resource: N/A
Hyperlink: https://github.com/python/cpython/issues/87451
Source: cna@python.org
Resource: N/A
Hyperlink: https://github.com/python/cpython/pull/149648
Source: cna@python.org
Resource: N/A
Hyperlink: https://mail.python.org/archives/list/security-announce@python.org/thread/ITF2BAPBQEPYK3LDMPRSY435JGNHYNDP/
Source: cna@python.org
Resource: N/A

Change History

0
Information is not available yet

Similar CVEs

1Records found

CVE-2024-11168
Matching Score-6
Assigner-Python Software Foundation
ShareView Details
Matching Score-6
Assigner-Python Software Foundation
CVSS Score-6.3||MEDIUM
EPSS-0.67% / 48.23%
||
7 Day CHG~0.00%
Published-12 Nov, 2024 | 21:22
Updated-15 Apr, 2026 | 00:35
Rejected-Not Available
Known To Be Used In Ransomware Campaigns?-Not Available
KEV Added-Not Available
KEV Action Due Date-Not Available
Improper validation of IPv6 and IPvFuture addresses

The urllib.parse.urlsplit() and urlparse() functions improperly validated bracketed hosts (`[]`), allowing hosts that weren't IPv6 or IPvFuture. This behavior was not conformant to RFC 3986 and potentially enabled SSRF if a URL is processed by more than one URL parser.

Action-Not Available
Vendor-Python Software Foundation
Product-CPythoncpython
CWE ID-CWE-918
Server-Side Request Forgery (SSRF)
Details not found