CVE-2021-4189: Medium severity IBM Cloud Pak for Security vulnerability

Published Dec 21, 2021
·
Updated

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.

Other sources

Python could allow a remote attacker to obtain sensitive information, caused by a flaw when using the FTP client library in PASV (passive) mode. By using a specially-crafted FTP server, an attacker could exploit this vulnerability to obtain service banner information from private network., and use this information to launch further attacks against the affected system.

IBM

The problem is ftp client trust the host from PASV response by default, A malicious server can trick ftp client into connecting back to a given IP address and port. This may make ftp client scan ports and extract service banner from private network.

References: https://bugs.python.org/issue43285

Red Hat

Affected Software

29 affected componentsFixes available
redhat/python3<0:3.6.8-45.el8
0:3.6.8-45.el8
redhat/rh-python38-babel<0:2.7.0-12.el7
0:2.7.0-12.el7
redhat/rh-python38-python<0:3.8.11-2.el7
0:3.8.11-2.el7
redhat/rh-python38-python-cryptography<0:2.8-5.el7
0:2.8-5.el7
redhat/rh-python38-python-jinja2<0:2.10.3-6.el7
0:2.10.3-6.el7
redhat/rh-python38-python-lxml<0:4.4.1-7.el7
0:4.4.1-7.el7
redhat/rh-python38-python-pip<0:19.3.1-2.el7
0:19.3.1-2.el7
redhat/rh-python38-python-urllib3<0:1.25.7-7.el7
0:1.25.7-7.el7
redhat/python27-python<0:2.7.18-4.el7
0:2.7.18-4.el7
IBM Cloud Pak for Security<=1.10.0.0 - 1.10.11.0
IBM QRadar Suite Software<=1.10.12.0 - 1.10.16.0
Python Python>=3.6.0<3.6.14
Python Python>=3.7.0<3.7.11
Python Python>=3.8.0<3.8.9
Python Python>=3.9.0<3.9.3
Python Python=3.10.0
Debian Debian Linux=10.0
Debian Debian Linux=11.0
redhat Software Collections
redhat Enterprise Linux=8.0
NetApp ONTAP Select Deploy administration utility
redhat/python<3.6.14
3.6.14
redhat/python<3.7.11
3.7.11
redhat/python<3.8.9
3.8.9
redhat/python<3.9.3
3.9.3
redhat/python<3.10.0
3.10.0
debian/pypy3
7.3.5+dfsg-2+deb11u27.3.5+dfsg-2+deb11u57.3.11+dfsg-2+deb12u37.3.19+dfsg-27.3.20+dfsg-4
debian/python2.7<=2.7.18-8+deb11u1
debian/python3.9<=3.9.2-1
3.9.2-1+deb11u3

Event History

Dec 21, 2021
CVE Published
12:00 AM
Dec 29, 2021
Data Sourced
via Red Hat·10:28 AM
DescriptionSeverityAffected Software
Aug 24, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 15, 2024
Data Sourced
via Launchpad·12:45 PM
Description
Sep 13, 2024
Data Sourced
via Ubuntu·12:55 PM
RemedyDescriptionSeverityAffected Software
Nov 3, 2025
Data Sourced
via Debian·09:53 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2021-4189?

CVE-2021-4189 is a vulnerability found in Python's FTP (File Transfer Protocol) client library in PASV (passive) mode.

2

How does the vulnerability in CVE-2021-4189 affect Python?

The vulnerability in CVE-2021-4189 allows an attacker to set up a malicious FTP server that can trick FTP clients into connecting to it.

3

What is the severity level of CVE-2021-4189?

The severity level of CVE-2021-4189 is medium, with a CVSS score of 5.3.

4

Which versions of Python are affected by CVE-2021-4189?

The versions affected by CVE-2021-4189 are Python 3.6.14, Python 3.7.11, Python 3.8.9, Python 3.9.3, and Python 3.10.0.

5

How can I fix the vulnerability in Python identified as CVE-2021-4189?

To fix the vulnerability in Python identified as CVE-2021-4189, you should update to Python versions 3.6.14, 3.7.11, 3.8.9, 3.9.3, or 3.10.0, depending on the version you are currently using.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203