{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "state": "PUBLISHED",
        "cveId": "CVE-2021-4189",
        "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "assignerShortName": "redhat",
        "dateUpdated": "2024-08-03T17:16:04.264Z",
        "dateReserved": "2021-12-29T00:00:00",
        "datePublished": "2022-08-24T00:00:00"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
                "shortName": "redhat",
                "dateUpdated": "2023-06-30T00:00:00"
            },
            "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/"
                },
                {
                    "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/05/msg00024.html"
                },
                {
                    "name": "[debian-lts-announce] 20230630 [SECURITY] [DLA 3477-1] python3.7 security update",
                    "tags": [
                        "mailing-list"
                    ],
                    "url": "https://lists.debian.org/debian-lts-announce/2023/06/msg00039.html"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "text",
                            "lang": "en",
                            "description": "Not-Known"
                        }
                    ]
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-03T17:16:04.264Z"
                },
                "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"
                        ]
                    },
                    {
                        "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/05/msg00024.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/2023/06/msg00039.html"
                    }
                ]
            }
        ]
    }
}