CVE Tools

CVE-2021-4189

Published: Aug 24, 2022Updated: Dec 17, 2025 Sources: CVE List NVD BDU csafCWE-252
5.3CVSSMEDIUM

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.

CVSS Vector Breakdown

AV:NAC:LPR:NUI:NS:UC:LI:NA:N
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:LConfidentiality
Low
I:NIntegrity
None
A:NAvailability
None

Weaknesses

Affected Products

pythonoss-projectUSOSS Libraries
debianoss-projectGBOperating Systemsaka debian gnu/linux
redhatcommercialUSOperating Systemsaka red hat
and 11 more affected products View all →

Exploitability

Official Patch Available

References

and 33 more references View all →

Timeline

Published
Aug 24, 2022
Last Updated
Dec 17, 2025

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2021-4189 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows