IM
IronMonkey Threat Research

CVE-2021-4189 MEDIUM

Published: 2022-08-24 | Last Modified: 2025-12-17 | Status: Modified

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.

Additional Descriptions (1)

Se ha encontrado un fallo en Python, concretamente en la biblioteca del cliente FTP (File Transfer Protocol) en modo PASV (pasivo). El problema radica en cómo el cliente FTP confía en el host a partir de la respuesta PASV por defecto. Este fallo permite a un atacante configurar un servidor FTP malicioso que puede engañar a los clientes FTP para que sean conectados a una dirección IP y un puerto determinados. Esta vulnerabilidad podría conllevar a que los clientes FTP escanearan los puertos, lo que de otro modo no habría sido posible.

CVSS Metrics

Base Score: 5.3 (MEDIUM)

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Attack VectorNETWORK
Attack ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
ScopeUNCHANGED
Confidentiality ImpactLOW
Integrity ImpactNONE
Availability ImpactNONE

Source: [email protected]

Type: Primary

Exploitability Score: 3.9

Impact Score: 1.4

Weaknesses

Source Type Description
[email protected] Primary
en CWE-252
134c704f-9b21-4f2e-91b3-4a467353bcc0 Secondary
en CWE-252

Affected Products

Vendor Product Version Update Type
python python * <built-in method update of dict object at 0x7fd34927f680> Application
python python * <built-in method update of dict object at 0x7fd370224e00> Application
python python * <built-in method update of dict object at 0x7fd289ced780> Application
python python * <built-in method update of dict object at 0x7fd3606e1140> Application
python python 3.10.0 <built-in method update of dict object at 0x7fd289cec140> Application
debian debian_linux 10.0 <built-in method update of dict object at 0x7fd289cee4c0> Operating System
debian debian_linux 11.0 <built-in method update of dict object at 0x7fd3606e0640> Operating System
redhat software_collections - <built-in method update of dict object at 0x7fd385645440> Application
redhat enterprise_linux 8.0 <built-in method update of dict object at 0x7fd370224a00> Operating System
netapp ontap_select_deploy_administration_utility - <built-in method update of dict object at 0x7fd289cec480> Application

Affected Configurations

Operator: OR

Vulnerable CPE
Yes cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:python:python:*:*:*:*:*:*:*:*
Yes cpe:2.3:a:python:python:3.10.0:-:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
Yes cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:a:redhat:software_collections:-:*:*:*:*:*:*:*
Yes cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*

Operator: OR

Vulnerable CPE
Yes cpe:2.3:a:netapp:ontap_select_deploy_administration_utility:-:*:*:*:*:*:*:*

References