#VU24401 Buffer overflow in uftpd


Published: 2020-01-20

Vulnerability identifier: #VU24401

Vulnerability risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2020-5204

CWE-ID: CWE-119

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
uftpd
Server applications / File servers (FTP/HTTP)

Vendor: Joachim Nilsson

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in "handle_PORT" in "ftpcmd.c" file when a buffer that is 16 bytes large being filled via "sprintf()" with user input based on the format specifier string %d.%d.%d.%d. A remote attacker can trigger memory corruption and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

uftpd: 0.1 - 2.10


External links
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00034.html
http://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd
http://github.com/troglobit/uftpd/security/advisories/GHSA-wrpr-xw7q-9wvq


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability