{"id":"CVE-2020-5204","details":"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","modified":"2026-03-13T22:00:31.323386Z","published":"2020-01-06T20:15:12.523Z","related":["GHSA-wrpr-xw7q-9wvq","openSUSE-SU-2020:0069-1"],"references":[{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00034.html"},{"type":"ADVISORY","url":"https://github.com/troglobit/uftpd/security/advisories/GHSA-wrpr-xw7q-9wvq"},{"type":"FIX","url":"https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/troglobit/uftpd","events":[{"introduced":"0"},{"fixed":"6927628afa0d3ade8feb9fadd9672420cd2fbeb5"},{"fixed":"0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.11"}]}}],"versions":["v0.1","v1.0","v1.1","v1.2","v1.3","v1.4","v1.5","v1.6","v1.7","v1.8","v1.9","v1.9.1","v2.0","v2.0-rc1","v2.0.1","v2.0.2","v2.1","v2.10","v2.2","v2.3","v2.4","v2.5","v2.6","v2.7","v2.8","v2.9"],"database_specific":{"vanir_signatures":[{"digest":{"line_hashes":["305627866150381828683865241657895014322","12937131316666879073544403319990601086","173866264394877993175631420443797992491","250823014807152732547613692800473923267"],"threshold":0.9},"target":{"file":"src/ftpcmd.c"},"signature_version":"v1","id":"CVE-2020-5204-a2bfc361","signature_type":"Line","deprecated":false,"source":"https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd"},{"digest":{"function_hash":"73284893654735530245356761491877463198","length":898},"target":{"function":"handle_PORT","file":"src/ftpcmd.c"},"signature_version":"v1","id":"CVE-2020-5204-d12c122b","signature_type":"Function","deprecated":false,"source":"https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9dd"}],"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-5204.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}