Skip to content
OpenAdvisories
Medium · 6.5 CVE-2020-5204 EUVD-2020-26447GHSA-4g9j-24m6-cjw4

Buffer overflow vulnerability in uftpd

Published Jan 6, 2020 · Updated Aug 4, 2024 · Assigned by GitHub_M

Description

In uftpd before 2.11, there is a buffer overflow vulnerability in handle_PORT in ftpcmd.c that is caused by a buffer that is 16 bytes large being filled via sprintf() with user input based on the format specifier string %d.%d.%d.%d. The 16 byte size is correct for valid IPv4 addresses (len('255.255.255.255') == 16), but the format specifier %d allows more than 3 digits. This has been fixed in version 2.11

Affected products

VendorProductAffectedFixed
troglobit uftpd < 2.11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 15.1 uftpd 2.11-lp151.2.3.1 openSUSE-SU-2020:0069-1

Advisories 1

References