SecurityContext

CVE-2020-5204: uftpd - Buffer Overflow

  • Cve: CVE-2020-5204
  • Name: uftpd - Buffer Overflow
  • 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
  • Impact: Attackers can cause buffer overflow, potentially leading to arbitrary code execution or system crashes.
  • Remediation: Update to version 2.11 or later.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01079
  • Epss percentile: 0.65971
  • Assignee: [email protected]
  • Published at: 2020-01-06T20:15:12Z
  • Age in days: 2514
  • Modified at: 2026-06-17T03:21:01Z
  • Patch available: yes
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-5204
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-121Stack-based Buffer Overflow
CWE-120Buffer Copy without Checking Size of Input

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/troglobit/uftpd/commit/0fb2c031ce0ace07cc19cd2cb2143c4b5a63c9ddPatch, Third Party Advisory
https://github.com/troglobit/uftpd/security/advisories/GHSA-wrpr-xw7q-9wvqThird Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00034.html

Products

ProductAffectedPlatform boundSourcesUrl
troglobit:uftpd< 2.11nonvd/v1/products/troglobit/uftpd

Projects

RepositoryLink kindsIndexedUrl
troglobit/uftpdcommit, fix, security_advisoryyes/v1/repositories/troglobit/uftpd

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts