VDB

CVE-2021-4189

CVE-2021-4189 PUBLISHED CVSS 5.3 MEDIUM

Reported by redhat · Published August 24, 2022

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python-minBitnami3.10.1, 3.9.3, 3.8.9, 3.7.11, 3.6.14
python-debugAmazon Linux2.7.18-1.amzn2.0.5
python-toolsAmazon Linux2.7.18-1.amzn2.0.5
libpythonBitnami3.10.1, 3.9.3, 3.8.9, 3.7.11, 3.6.14
pythonBitnami3.10.1, 3.9.3, 3.8.9, 3.7.11, 3.6.14
python-develAmazon Linux2.7.18-1.amzn2.0.5
python-libsAmazon Linux2.7.18-1.amzn2.0.5
pythonAmazon Linux2.7.18-1.amzn2.0.5
pythondhi.docker.com3.10.1, 3.9.3, 3.8.9, 3.7.11, 3.6.14
python-testAmazon Linux2.7.18-1.amzn2.0.5
tkinterAmazon Linux2.7.18-1.amzn2.0.5
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)Siemens3.1.5

12 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected products

VendorProductVersions
n/apythonFixed in python 3.6.14, python 3.7.11, python 3.8.9, python 3.9.3, python 3.10.0
amazon:2python-debug0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)3.1.7, 3.1.0
amazon:2python-tools0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2python-devel0
amazon:2python-libs0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)3.1.7, 3.1.0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2python0
amazon:2python-test0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)3.1.7, 3.1.0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)3.1.0, 3.1.7
amazon:2tkinter0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)3.1.0, 3.1.7
n/apythonFixed in python 3.6.14, python 3.7.11, python 3.8.9, python 3.9.3, python 3.10.0

Timeline

  • Mar 16, 2022 CVE Published
  • Aug 25, 2022 EPSS Score (30 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jun 2, 2026 Security Advisory (21 in total, the first dated here)
  • Jul 20, 2026 Coalition ESS Score
  • Aug 12, 2026 Distribution Patch (14 in total, the first dated here)
  • Oct 7, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-4189
vulnetix vdb fixes CVE-2021-4189

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-4189/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›