{"id":"CVE-2021-4189","state":"PUBLISHED","title":"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 re","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, which otherwise would not have been possible.","publishedAt":"2022-08-24T00:00:00.000Z","updatedAt":"2026-10-14T10:04:06.190Z","severity":{"score":5.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","source":"CISA-ADP"},"assigner":"redhat","products":["n/a python"],"affected":[{"vendor":"n/a","product":"python","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"}]}],"references":["https://bugs.python.org/issue43285","https://python-security.readthedocs.io/vuln/ftplib-pasv.html","https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e","https://security-tracker.debian.org/tracker/CVE-2021-4189","https://bugzilla.redhat.com/show_bug.cgi?id=2036020","https://access.redhat.com/security/cve/CVE-2021-4189","https://security.netapp.com/advisory/ntap-20221104-0004/","https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html","https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html","https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html","https://cert-portal.siemens.com/productcert/html/ssa-398330.html"],"weaknesses":["CWE-252"],"ingestedAt":"2026-10-29T19:49:23.890Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/4xxx/CVE-2021-4189.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-4189","state":"PUBLISHED","datePublished":"2022-08-24T00:00:00.000Z","dateUpdated":"2026-10-14T10:04:06.190Z","assignerShortName":"redhat","assignerOrgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateReserved":"2021-12-29T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"python","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"}]}],"references":[{"url":"https://bugs.python.org/issue43285"},{"url":"https://python-security.readthedocs.io/vuln/ftplib-pasv.html"},{"url":"https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-4189"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2036020"},{"url":"https://access.redhat.com/security/cve/CVE-2021-4189"},{"url":"https://security.netapp.com/advisory/ntap-20221104-0004/"},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html","name":"[debian-lts-announce] 20230524 [SECURITY] [DLA 3432-1] python2.7 security update","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html","name":"[debian-lts-announce] 20230630 [SECURITY] [DLA 3477-1] python3.7 security update","tags":["mailing-list"]}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"Not-Known"}]}],"providerMetadata":{"shortName":"redhat","orgId":"53f830b8-0a3f-465b-8143-3b8a9948e749","dateUpdated":"2023-06-30T00:00:00.000Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugs.python.org/issue43285","tags":["x_transferred"]},{"url":"https://python-security.readthedocs.io/vuln/ftplib-pasv.html","tags":["x_transferred"]},{"url":"https://github.com/python/cpython/commit/0ab152c6b5d95caa2dc1a30fa96e10258b5f188e","tags":["x_transferred"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-4189","tags":["x_transferred"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2036020","tags":["x_transferred"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-4189","tags":["x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20221104-0004/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00024.html","name":"[debian-lts-announce] 20230524 [SECURITY] [DLA 3432-1] python2.7 security update","tags":["mailing-list","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html","name":"[debian-lts-announce] 20230630 [SECURITY] [DLA 3477-1] python3.7 security update","tags":["mailing-list","x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:45:21.395Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.3,"attackVector":"NETWORK","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"LOW"}},{"other":{"type":"ssvc","content":{"timestamp":"2025-06-25T14:59:42.470722Z","id":"CVE-2021-4189","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-252","type":"CWE","lang":"en","description":"CWE-252 Unchecked Return Value"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-12-17T21:36:07.876Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]},{"vendor":"Siemens","product":"SIPLUS S7-1500 CPU 1518-4 PN/DP MFP","defaultStatus":"unknown","versions":[{"version":"V3.1.0","status":"affected","lessThan":"V3.1.5","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-10-14T10:04:06.190Z"},"x_adpType":"supplier"}]}}}