CVE-2021-4189
CVE-2021-4189
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
CVSS 5.3 · Moyenne · EPSS 3,4% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: system · python
Produits et versions concernés
python
- Versions du logiciel
- Fixed in python 3.6.14, python 3.7.11, python 3.8.9, python 3.9.3, python 3.10.0: Concernée
Aucun correctif publié
pypy3 Debian:12
- Plages de versions concernées
- ECOSYSTEM: < 7.3.5+dfsg-2
Mettez à jour vers 7.3.5+dfsg-2
pypy3 Debian:13
- Plages de versions concernées
- ECOSYSTEM: < 7.3.5+dfsg-2
Mettez à jour vers 7.3.5+dfsg-2
pypy3 Debian:14
- Plages de versions concernées
- ECOSYSTEM: < 7.3.5+dfsg-2
Mettez à jour vers 7.3.5+dfsg-2
python2.7 Ubuntu:Pro:14.04:LTS
- Versions du logiciel
- 2.7.5-8ubuntu3
- 2.7.5-8ubuntu4
- 2.7.6-2
- 2.7.6-2ubuntu1
- 2.7.6-3
- 2.7.6-3ubuntu1
- 2.7.6-4
- 2.7.6-4ubuntu1
- 2.7.6-5
- 2.7.6-7
- 2.7.6-8
- 2.7.6-8ubuntu0.2
- 2.7.6-8ubuntu0.3
- 2.7.6-8ubuntu0.4
- 2.7.6-8ubuntu0.5
- 2.7.6-8ubuntu0.6+esm2
- 2.7.6-8ubuntu0.6+esm3
- 2.7.6-8ubuntu0.6+esm5
- 2.7.6-8ubuntu0.6+esm6
- 2.7.6-8ubuntu0.6+esm7
- 2.7.6-8ubuntu0.6+esm8
- 2.7.6-8ubuntu0.6+esm9
- 2.7.6-8ubuntu0.6+esm10
- 2.7.6-8ubuntu0.6+esm11
- Plages de versions concernées
- ECOSYSTEM: < 2.7.6-8ubuntu0.6+esm12
Mettez à jour vers 2.7.6-8ubuntu0.6+esm12
python3.4 Ubuntu:Pro:14.04:LTS
- Versions du logiciel
- 3.4~b1-0ubuntu3
- 3.4~b1-4ubuntu4
- 3.4~b1-4ubuntu6
- 3.4~b1-5ubuntu2
- 3.4~b2-1
- 3.4~b3-1ubuntu1
- 3.4~rc1-1build1
- 3.4~rc2-1
- 3.4~rc3-0ubuntu1
- 3.4.0-1
- 3.4.0-2ubuntu1
- 3.4.0-2ubuntu1.1
- 3.4.3-1ubuntu1~14.04.1
- 3.4.3-1ubuntu1~14.04.3
- 3.4.3-1ubuntu1~14.04.4
- 3.4.3-1ubuntu1~14.04.5
- 3.4.3-1ubuntu1~14.04.6
- 3.4.3-1ubuntu1~14.04.7
- 3.4.3-1ubuntu1~14.04.7+esm2
- 3.4.3-1ubuntu1~14.04.7+esm4
- 3.4.3-1ubuntu1~14.04.7+esm6
- 3.4.3-1ubuntu1~14.04.7+esm7
- 3.4.3-1ubuntu1~14.04.7+esm8
- 3.4.3-1ubuntu1~14.04.7+esm10
- 3.4.3-1ubuntu1~14.04.7+esm11
- Plages de versions concernées
- ECOSYSTEM: < 3.4.3-1ubuntu1~14.04.7+esm12
Mettez à jour vers 3.4.3-1ubuntu1~14.04.7+esm12
python3.5 Ubuntu:Pro:14.04:LTS
- Versions du logiciel
- 3.5.2-2ubuntu0~16.04.4~14.04.1
- Plages de versions concernées
- ECOSYSTEM: < 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1
Mettez à jour vers 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1
python2.7 Ubuntu:Pro:16.04:LTS
- Versions du logiciel
- 2.7.10-4ubuntu1
- 2.7.10-4ubuntu2
- 2.7.11-2
- 2.7.11-3
- 2.7.11-4
- 2.7.11-6
- 2.7.11-7
- 2.7.11-7ubuntu1
- 2.7.12-1~16.04
- 2.7.12-1ubuntu0~16.04.1
- 2.7.12-1ubuntu0~16.04.2
- 2.7.12-1ubuntu0~16.04.3
- 2.7.12-1ubuntu0~16.04.4
- 2.7.12-1ubuntu0~16.04.8
- 2.7.12-1ubuntu0~16.04.9
- 2.7.12-1ubuntu0~16.04.11
- 2.7.12-1ubuntu0~16.04.12
- 2.7.12-1ubuntu0~16.04.13
- 2.7.12-1ubuntu0~16.04.14
- 2.7.12-1ubuntu0~16.04.16
- 2.7.12-1ubuntu0~16.04.18
- Plages de versions concernées
- ECOSYSTEM: < 2.7.12-1ubuntu0~16.04.18+esm1
Mettez à jour vers 2.7.12-1ubuntu0~16.04.18+esm1
python3.5 Ubuntu:Pro:16.04:LTS
- Versions du logiciel
- 3.5.0-3
- 3.5.0-3ubuntu1
- 3.5.1~rc1-2ubuntu1
- 3.5.1-1
- 3.5.1-2
- 3.5.1-3
- 3.5.1-5
- 3.5.1-6ubuntu1
- 3.5.1-6ubuntu2
- 3.5.1-9ubuntu1
- 3.5.1-10
- 3.5.2-2~16.01
- 3.5.2-2~16.04
- 3.5.2-2ubuntu0~16.04.1
- 3.5.2-2ubuntu0~16.04.2
- 3.5.2-2ubuntu0~16.04.3
- 3.5.2-2ubuntu0~16.04.4
- 3.5.2-2ubuntu0~16.04.5
- 3.5.2-2ubuntu0~16.04.8
- 3.5.2-2ubuntu0~16.04.9
- 3.5.2-2ubuntu0~16.04.10
- 3.5.2-2ubuntu0~16.04.11
- 3.5.2-2ubuntu0~16.04.12
- 3.5.2-2ubuntu0~16.04.13
- 3.5.2-2ubuntu0~16.04.13+esm1
- Plages de versions concernées
- ECOSYSTEM: < 3.5.2-2ubuntu0~16.04.13+esm2
Mettez à jour vers 3.5.2-2ubuntu0~16.04.13+esm2
python2.7 Ubuntu:18.04:LTS
- Versions du logiciel
- 2.7.14-2ubuntu2
- 2.7.14-4
- 2.7.14-6
- 2.7.14-7
- 2.7.14-8
- 2.7.15~rc1-1
- 2.7.15~rc1-1ubuntu0.1
- 2.7.15-4ubuntu4~18.04
- 2.7.15-4ubuntu4~18.04.1
- 2.7.15-4ubuntu4~18.04.2
- 2.7.17-1~18.04
- 2.7.17-1~18.04ubuntu1
- 2.7.17-1~18.04ubuntu1.1
- 2.7.17-1~18.04ubuntu1.2
- 2.7.17-1~18.04ubuntu1.3
- 2.7.17-1~18.04ubuntu1.5
- 2.7.17-1~18.04ubuntu1.6
- Plages de versions concernées
- ECOSYSTEM: < 2.7.17-1~18.04ubuntu1.7
Mettez à jour vers 2.7.17-1~18.04ubuntu1.7
python3.6 Ubuntu:18.04:LTS
- Versions du logiciel
- 3.6.3-1ubuntu1
- 3.6.4~rc1-1
- 3.6.4~rc1-2
- 3.6.4-1
- 3.6.4-2
- 3.6.4-3build1
- 3.6.4-4
- 3.6.5~rc1-1
- 3.6.5-3
- 3.6.6-1~18.04
- 3.6.7-1~18.04
- 3.6.8-1~18.04.1
- 3.6.8-1~18.04.2
- 3.6.8-1~18.04.3
- 3.6.9-1~18.04
- 3.6.9-1~18.04ubuntu1
- 3.6.9-1~18.04ubuntu1.1
- 3.6.9-1~18.04ubuntu1.3
- 3.6.9-1~18.04ubuntu1.4
- 3.6.9-1~18.04ubuntu1.6
- Plages de versions concernées
- ECOSYSTEM: < 3.6.9-1~18.04ubuntu1.7
Mettez à jour vers 3.6.9-1~18.04ubuntu1.7
python3.7 Ubuntu:Pro:18.04:LTS
- Versions du logiciel
- 3.7.0~a2-1
- 3.7.0~a3-1
- 3.7.0~a3-2
- 3.7.0~a3-3
- 3.7.0~a4-1
- 3.7.0~b1-1
- 3.7.0~b1-1build1
- 3.7.0~b2-1
- 3.7.0~b3-1
- 3.7.0-1~18.04
- 3.7.1-1~18.04
- 3.7.3-2~18.04.1
- 3.7.5-2~18.04
- 3.7.5-2~18.04.4
- 3.7.5-2ubuntu1~18.04.2
- 3.7.5-2ubuntu1~18.04.2+esm1
- 3.7.5-2ubuntu1~18.04.2+esm2
- Plages de versions concernées
- ECOSYSTEM: < 3.7.5-2ubuntu1~18.04.2+esm3
Mettez à jour vers 3.7.5-2ubuntu1~18.04.2+esm3
python3.8 Ubuntu:Pro:18.04:LTS
- Versions du logiciel
- 3.8.0-3~18.04
- 3.8.0-3~18.04.1
- 3.8.0-3ubuntu1~18.04.2
- 3.8.0-3ubuntu1~18.04.2+esm1
- Plages de versions concernées
- ECOSYSTEM: < 3.8.0-3ubuntu1~18.04.2+esm2
Mettez à jour vers 3.8.0-3ubuntu1~18.04.2+esm2
python2.7 Ubuntu:Pro:20.04:LTS
- Versions du logiciel
- 2.7.17~rc1-1
- 2.7.17-1
- 2.7.17-1ubuntu5
- 2.7.17-1ubuntu6
- 2.7.18~rc1-2
- 2.7.18-1~20.04
- 2.7.18-1~20.04.1
- 2.7.18-1~20.04.1+esm1
- 2.7.18-1~20.04.3
- Plages de versions concernées
- ECOSYSTEM: < 2.7.18-1~20.04.3+esm1
Mettez à jour vers 2.7.18-1~20.04.3+esm1
python2.7 Ubuntu:Pro:22.04:LTS
- Versions du logiciel
- 2.7.18-8build1
- 2.7.18-13
- 2.7.18-13ubuntu1
- 2.7.18-13ubuntu1.1
- Plages de versions concernées
- ECOSYSTEM: < 2.7.18-13ubuntu1.1+esm2
Mettez à jour vers 2.7.18-13ubuntu1.1+esm2
Sources originales
- 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
- https://nvd.nist.gov/vuln/detail/CVE-2021-4189