Vulnerability database / CVE-2021-4189
CVE-2021-4189
MEDIUM 5.3 CVSS 3.1 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.
Published 24 Aug 2022
Last modified 10 Nov 2026 Assigned by secalert@redhat.com NVD status Modified Weakness
CWE-252 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.1
MEDIUM 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NNVD
134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)
CVSS 3.1
MEDIUM 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.6.0, < 3.6.14
3.6.14 NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.7.0, < 3.7.11
3.7.11 NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.8.0, < 3.8.9
3.8.9 NVD
python
pythoncpe:2.3:a:python:python:*:*:*:*:*:*:*:*
>= 3.9.0, < 3.9.3
3.9.3 NVD
python
pythoncpe:2.3:a:python:python:3.10.0:-:*:*:*:*:*:*
= 3.10.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
= 10.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
= 11.0
NVD
redhat
software_collectionscpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:*
(no version)
NVD
redhat
enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
= 8.0
NVD
netapp
ontap_select_deploy_administration_utilitycpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*
(no version)
References
History
25 Nov 2026 20:34 UTC · NVD: first stored (published 24 Aug 2022)