#VU61681 Server-Side Request Forgery (SSRF)


Published: 2022-03-29

Vulnerability identifier: #VU61681

Vulnerability risk: Medium

CVSSv3.1:

CVE-ID: CVE-2021-4189

CWE-ID: CWE-918

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Python
Universal components / Libraries / Scripting languages

Vendor: Python.org

Description

The disclosed vulnerability allows a remote attacker to perform SSRF attacks.

The vulnerability exists due to insufficient validation of user-supplied input in the FTP (File Transfer Protocol) client library when using it in PASV (passive) mode. A remote attacker can set up a malicious FTP server, trick the FTP client in Python into connecting back to a given IP address and port, which can lead to FTP client scanning ports which otherwise would not have been possible.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Python: 3.6 - 3.9.2


CPE

External links
http://bugzilla.redhat.com/show_bug.cgi?id=2036020
http://bugs.python.org/issue43285
http://github.com/python/cpython/commit/4134f154ae2f621f25c5d698cc0f1748035a1b88


Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?


Latest bulletins with this vulnerability