# CVE-2020-5204: Buffer overflow vulnerability in uftpd

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.08%, higher than 66% of CVEs (2026-12-01)
- Published: 2020-01-06T19:10:12.000Z
- Modified: 2026-06-17T03:21:01.160Z
- Weaknesses: CWE-120, CWE-121
- 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(&#39;255.255.255.255&#39;) == 16), but the format specifier %d allows more than 3 digits. This has been fixed in version 2.11

(As written by CVE List.)

## Affected

- troglobit uftpd: < 2.11; before 2.11

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P`

## References

- <https://github.com/troglobit/uftpd/security/advisories/GHSA-wrpr-xw7q-9wvq> (third-party-advisory)
- <https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd> (patch, third-party-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00034.html> (vendor-advisory)

## Sources

- CVE List: [CVE-2020-5204](https://www.cve.org/CVERecord?id=CVE-2020-5204), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-5204](https://nvd.nist.gov/vuln/detail/CVE-2020-5204), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-5204 · Whole record: https://cve.day/CVE-2020-5204.json · Rebuilt by cve.day 2026-11-25T22:57:50.486Z
