Buffer Overflow Affecting troglobit/uftpd package, versions [,2.11)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.08% (61st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-TROGLOBITUFTPD-2365573
  • published26 Jan 2022
  • disclosed6 Jan 2020
  • creditUnknown

Introduced: 6 Jan 2020

CVE-2020-5204  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade troglobit/uftpd to version 2.11 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow. 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

CVSS Base Scores

version 3.1