CVE-2021-4189

MEDIUM CVSS 3.1: 5.3 EPSS 3.61%
Updated Oct 14, 2026
Debian
Parameter Value
CVSS 5.3 (MEDIUM)
Affected Versions 3.6.0 — 3.9.3
Fixed In 3.6.14
Type CWE-252
Vendor Debian
Public PoC No

A flaw was found in Python, specifically in the FTP (File Transfer Protocol) client library in PASV (passive) mode. The issue is how the FTP client trusts the host from the PASV response by default. This flaw allows an attacker to set up a malicious FTP server that can trick FTP clients into connecting back to a given IP address and port.

This vulnerability could lead to FTP client scanning ports, which otherwise would not have been possible.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 10

Configuration From (including) Up to (excluding)
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.6.0 3.6.14
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.7.0 3.7.11
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.8.0 3.8.9
Python Python
cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
3.9.0 3.9.3
Python Python
cpe:2.3:a:python:python:3.10.0:-:*:*:*:*:*:*
— —
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
— —
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
— —
Redhat Software_Collections
cpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:*
— —
Redhat Enterprise_Linux
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
— —
Netapp Ontap_Select_Deploy_Administration_Utility
cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
— —