{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-4189","id":"CVE-2021-4189","title":"Python, specifically in the FTP (File Transfer Protocol) client library in PASV (passive) mode: set up a malicious FT…","description":"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,","descriptionLong":"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":"2022-08-24T00:00:00.000Z","updated":"2026-11-12T02:45:08.520857033Z","reserved":"2021-12-29T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["python"],"affectedProducts":[{"vendor":"n/a","product":"python","defaultStatus":null,"versions":[{"version":"Fixed in python 3.6.14, python 3.7.11, python 3.8.9, python 3.9.3, python 3.10.0","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-252"],"aliases":["BIT-libpython-2021-4189","BIT-python-2021-4189","BIT-python-min-2021-4189"],"references":[{"url":"https://bugs.python.org/issue43285","tags":["x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://python-security.readthedocs.io/vuln/ftplib-pasv.html","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-4189","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2036020","tags":["x_transferred","Issue Tracking","Patch","Third Party Advisory","fix"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-4189","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20221104-0004/","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html","tags":["mailing-list","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html","tags":["mailing-list","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.03607,"epssPercentile":0.89714,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-4189","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-4189","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-4189","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-4189","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}