CVE-2020-5204
Last modified
CVE-2020-5204 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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. EPSS estimates a 1.08% chance of exploitation in the next 30 days.
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
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Troglobit | Uftpd | < 2.11 |
References
- https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9ddPatch, Third Party Advisory
- https://github.com/troglobit/uftpd/security/advisories/GHSA-wrpr-xw7q-9wvqThird Party Advisory
- https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9ddPatch, Third Party Advisory
- https://github.com/troglobit/uftpd/security/advisories/GHSA-wrpr-xw7q-9wvqThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2020-5204?
How severe is CVE-2020-5204?
How do I fix CVE-2020-5204?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2020
- CVE-2020-5195Reflected XSS through an IMG element in Cerberus FTP Server …6.1
- CVE-2020-5196Cerberus FTP Server Enterprise Edition prior to versions 11.…8.1
- CVE-2020-5197An issue was discovered in GitLab Community Edition (CE) and…4.3
- CVE-2020-5200Minerbabe through V4.16 ships with SSH host keys baked into …5.9
- CVE-2020-5202apt-cacher-ng through 3.3 allows local users to obtain sensi…5.5
- CVE-2020-5203In Fat-Free Framework 3.7.1, attackers can achieve arbitrary…9.8
- CVE-2020-5205In Pow (Hex package) before 1.0.16, the use of Plug.Session …5.4
- CVE-2020-5206In Opencast before 7.6 and 8.1, using a remember-me cookie w…10
- CVE-2020-5207In Ktor before 1.3.0, request smuggling is possible when run…7.5
- CVE-2020-5208It's been found that multiple functions in ipmitool before 1…8.8
- CVE-2020-5209In NetHack before 3.6.5, unknown options starting with -de a…7.8
- CVE-2020-5210In NetHack before 3.6.5, an invalid argument to the -w comma…7.8
Are you affected by CVE-2020-5204?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
