CVE-2010-20049

CRITICAL

LeapFTP < 3.1.x - Stack-based Buffer Overflow via Long Filename in Directory Listing

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2010-20049. PoCs published by Metasploit, including Metasploit module exploits/windows/ftp/leapftp_list_reply.

AI-analyzed exploit summary This is a Metasploit module exploiting a stack buffer overflow in LeapFTP 3.0.1 via a long filename in a directory listing. It uses an egghunter and SEH overwrite to achieve remote code execution.

Description

LeapFTP < 3.1.x contains a stack-based buffer overflow vulnerability in its FTP client parser. When the client receives a directory listing containing a filename longer than 528 bytes, the application fails to properly bound-check the input and overwrites the Structured Exception Handler (SEH) chain. This allows an attacker operating a malicious FTP server to execute arbitrary code on the victim’s machine when the file is listed or downloaded.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotewindows
https://www.exploit-db.com/exploits/16704

This is a Metasploit module exploiting a stack buffer overflow in LeapFTP 3.0.1 via a long filename in a directory listing. It uses an egghunter and SEH overwrite to achieve remote code execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: LeapFTP 3.0.1
No auth needed
Prerequisites: Network access to the target · LeapFTP client connecting to a malicious FTP server
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC GOOD
rubypocwin
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/windows/ftp/leapftp_list_reply.rb

This Metasploit module exploits a stack buffer overflow in LeapFTP 3.0.1 by sending a maliciously crafted directory listing with an overly long filename, triggering remote code execution via an egghunter and payload.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: LeapFTP 3.0.1
No auth needed
Prerequisites: Network access to the target · LeapFTP client initiating a connection to the malicious FTP server
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v4 9.3
EPSS 0.0074
EPSS Percentile 49.8%
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-121
Status published
Products (2)
LeapWare/LeapFTP < 3.1.*
LeapWare/LeapFTP < 3.1.x
Published Aug 20, 2025
Tracked Since Feb 18, 2026