Live threats

All CVEs / Python

CVE-2021-4189Python

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
3.6%
probability of exploitation in 30 days · percentile 90
Auth required
No
Published
Aug 24, 2022
Updated
Nov 10, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-252
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Python.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
pythonpython≥ 3.6.0 < 3.6.14
pythonpython≥ 3.7.0 < 3.7.11
pythonpython≥ 3.8.0 < 3.8.9
pythonpython≥ 3.9.0 < 3.9.3
pythonpython3.10.0
debiandebian_linux10.0
debiandebian_linux11.0
redhatsoftware_collectionsall
redhatenterprise_linux8.0
netappontap_select_deploy_administration_utilityall

Official advisories

Also: SUSE (+8)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.