FTP child-process crash via oversized PORT fields
Published Jan 6, 2020 · Updated Aug 4, 2024
Stack buffer overflow in Troglobit uftpd before 2.11 allows remote attackers to crash an FTP child process via a crafted PORT command. The handle_PORT routine in src/ftpcmd.c parses unrestricted decimal fields and uses sprintf to write the resulting IPv4 text into a 16-byte stack buffer. The FTP service must be enabled and network-reachable; the published proof causes SIGABRT in the child process serving the connection.
Summary
What happened
Stack buffer overflow in Troglobit uftpd before 2.11 allows remote attackers to crash an FTP child process via a crafted PORT command. The handle_PORT routine in src/ftpcmd.c parses unrestricted decimal fields and uses sprintf to write the resulting IPv4 text into a 16-byte stack buffer. The FTP service must be enabled and network-reachable; the published proof causes SIGABRT in the child process serving the connection.
The record
- CVE
- CVE-2020-5204
- Published
- Jan 6, 2020
- Updated
- Aug 4, 2024
- Vendor
- Troglobit
- Product
- uftpd
- Classifications
- CWE-120, CWE-121, T1499.004
- Attack vector
- network
- Privileges
- Unavailable
Timeline
How it unfolded
- Jan 6, 2020CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 2.11
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Malformed PORT command proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo