CVE-2006-5815

ProFTPD < 1.3.0 - Stack-based Buffer Overflow in sreplace Function

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 3 public exploits for CVE-2006-5815. PoCs published by Metasploit, Evgeny Legerov, including Metasploit module exploits/linux/ftp/proftp_sreplace.

AI-analyzed exploit summary This exploit targets a stack-based buffer overflow in ProFTPD 1.2 through 1.3.0 via the 'sreplace' function. It uploads a malicious '.message' file to a writable directory and triggers the vulnerability by changing to that directory, leading to remote code execution.

Description

Stack-based buffer overflow in the sreplace function in ProFTPD 1.3.0 and earlier allows remote attackers, probably authenticated, to cause a denial of service and execute arbitrary code, as demonstrated by vd_proftpd.pm, a "ProFTPD remote exploit."

Exploits (3)

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

This exploit targets a stack-based buffer overflow in ProFTPD 1.2 through 1.3.0 via the 'sreplace' function. It uploads a malicious '.message' file to a writable directory and triggers the vulnerability by changing to that directory, leading to remote code execution.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: ProFTPD 1.2 - 1.3.0
Auth required
Prerequisites: Write access to a directory on the target FTP server · ProFTPD version 1.2 through 1.3.0
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by Evgeny Legerov · remotelinux
https://www.exploit-db.com/exploits/2856

This is a Metasploit module exploiting a stack overflow in ProFTPD 1.3.0 via the sreplace function. It uploads a malicious .message file to trigger the vulnerability and achieve remote code execution.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: ProFTPD 1.3.0
Auth required
Prerequisites: Writeable directory on the target · Valid FTP credentials
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC GREAT
rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/ftp/proftp_sreplace.rb

This Metasploit module exploits a stack-based buffer overflow in ProFTPD 1.2 through 1.3.0 via the 'sreplace' function. It triggers the vulnerability by uploading a crafted '.message' file to a writable directory and executing a 'CWD' command.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: ProFTPD 1.2 - 1.3.0
Auth required
Prerequisites: Valid FTP credentials · Writable directory on the target
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (25)

Core 25
Core References
Vendor Advisory vendor-advisory x_refsource_trustix
http://www.trustix.org/errata/2006/0070
Vendor Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2006/4451
Various Sources x_refsource_misc
http://gleg.net/vulndisco_meta.shtml
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2006/dsa-1222
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2006:217
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23207
Vendor Advisory vendor-advisory x_refsource_trustix
http://www.trustix.org/errata/2006/0066/
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/452760/100/200/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1017167
Vendor Advisory vendor-advisory x_refsource_openpkg
http://www.openpkg.org/security/advisories/OpenPKG-SA-2006.035-proftpd.html
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23174
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2006:217-1
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/30147
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23069
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23000
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22821
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23184
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23125
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/20992
Various Sources x_refsource_confirm
http://bugs.proftpd.org/show_bug.cgi?id=2858
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/23179
Third Party Advisory vendor-advisory x_refsource_gentoo
http://www.gentoo.org/security/en/glsa/glsa-200611-26.xml
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/22803

Scores

EPSS 0.7408
EPSS Percentile 99.4%

Details

CWE
CWE-119
Status published
Products (1)
proftpd_project/proftpd < 1.3.0
Published Nov 08, 2006
Tracked Since Feb 18, 2026