CVE 5.9 MEDIUM

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

5.9 / 10
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

Description

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.

Basic Information

ID CVE-2026-8328
Source PSF
Published May 13, 2026 at 20:14
Modified May 13, 2026 at 20:21

Affected Product

Vendor Python Software Foundation
Product CPython
Affected Versions Python Software Foundation CPython 0

CWE Classification

References

πŸ’­ Join the Security Discussion

πŸ”’ Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.