1. Archivio CVE
  2. 2021
  3. CVE-2021-4189

CVE-2021-4189

5.3 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N 5.3 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
debian debian linux 10.0 –
debian debian linux 11.0 –
netapp ontap select deploy administration utility tutte –
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 –
redhat enterprise linux 8.0 –
redhat software collections tutte –
Tutte le 143 vulnerabilità di Python

Tipo di vulnerabilità

CWE-252 Unchecked Return Value

The product does not check the return value from a method or function.

Impatto sui sistemi

AmbitoImpatto
Disponibilità, Integrità Stato imprevisto, Dipende dal contesto, Interruzione del servizio: arresto o riavvio
Controllo degli accessi Aggirare i meccanismi di protezione

Come si previene

Sviluppo Check the results of all functions that return a value and verify that the value is expected.
Sviluppo For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished.
Sviluppo Ensure that you account for all possible return values from the function.
Sviluppo When designing a function, make sure you return a value or throw an exception in case of an error.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 200 CVE di tipo CWE-252, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org