Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2015-3306: Unauthenticated Arbitrary File Copy in ProFTPD mod_copy

Published May 18, 2015 · Updated 12 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days7 mentions · peak 2 in a dayToday
CVSS10.0Critical · v3.1
EPSS99.5%100th percentile
CISA KEVYesAdded Oct 8, 2026
In the wildActivePer CISA KEV
Vendors
Debian ProjectFedora ProjectOpensuseProftpdSuse
IdentifiersCVE-2015-3306CWE-284 · Improper Access Control

CVE-2015-3306 is an improper access-control vulnerability in the mod_copy module of ProFTPD 1.3.5. The module accepts SITE CPFR and SITE CPTO commands before authentication, allowing remote attackers to copy arbitrary server files with the privileges of the ProFTPD process. This permits unauthorized file disclosure and file creation or modification within the service's filesystem permissions. If an executable web directory is writable, attackers can place a webshell and achieve remote code execution.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can expose sensitive files and compromise file integrity through unauthorized copying and overwriting. On systems where ProFTPD can write to a web-served directory that executes scripts, exploitation can lead to arbitrary code execution in the web server's execution context. The scope of file access is constrained by the ProFTPD process's privileges and filesystem permissions; code execution is conditional on a suitable execution mechanism.

Mitigation

If you can’t patch tonight, do this now.

If patching is unavailable, disable mod_copy or explicitly deny SITE_CPFR and SITE_CPTO using ProFTPD command restrictions, then restart the service. Restrict FTP access to trusted systems and remove unnecessary external exposure. Ensure the ProFTPD service account cannot write to executable web directories and apply least-privilege filesystem permissions. Review FTP logs for copy commands issued before authentication and investigate unexpected web scripts, web-server child processes, and outbound connections.

Remediation

Patch, then assume compromise.

Upgrade to a supported ProFTPD release containing the fix. ProFTPD 1.3.5a fixes this vulnerability; a distribution-provided package with the backported correction is also suitable. Verify that the running service uses the corrected package. For potentially compromised systems, investigate unauthorized file copies, unexpected web scripts, and subsequent execution or persistence, because patching does not remove previously established attacker access.

Public exploits

Exploits

6 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 3 not yet analyzed, such as Exploit-DB entries.

View more in app →
proftpd_modcopy_exec.rbThis repository contains a single Metasploit module (modules/exploits/unix/ftp/proftpd_modcopy_exec.rb) targeting ProFTPD 1.3.5 servers with the mod_copy module enabled (CVE-2015-3306). The exploit leverages unauthenticated SITE CPFR/CPTO FTP commands to copy arbitrary files on the server, allowing an attacker to write a PHP webshell into the web root directory. The module then triggers the webshell via HTTP to execute arbitrary commands, ultimately running a Metasploit payload. The exploit requires both FTP and HTTP access to the target, and the web root must be writable by the ProFTPD process. The code is operational and provides remote code execution as the web server user. The main endpoints involved are the FTP (port 21), HTTP (port 80), and file paths such as /proc/self/cmdline, /tmp, and /var/www.Disclosed Apr 22, 2015 · Framework: metasploit · ruby · networkWeaponizedexploit-CVE-2015-3306This repository provides a working exploit for CVE-2015-3306, a remote command execution vulnerability in ProFTPD 1.3.5 with the mod_copy module enabled. The repository includes a Dockerfile to build a vulnerable environment (ProFTPD 1.3.5 with mod_copy and Apache), a Python exploit script (exploit.py), and a shell script (main.sh) to start the services. The exploit works by abusing the 'site cpfr' and 'site cpto' FTP commands to copy a PHP payload into the web server's root directory, resulting in a webshell (backdoor.php) accessible via HTTP. The exploit.py script automates this process, connecting to the FTP service, issuing the necessary commands, and then providing the user with access to the webshell for arbitrary command execution. The README.md provides clear instructions for setting up the environment and running the exploit. The main attack vector is network-based, targeting the FTP service on port 21 and resulting in a webshell accessible on port 80. The exploit is operational and provides a real, working payload.t0kx · Disclosed Jan 8, 2017 · python · bash · networkOperationalCVE-2015-3306Repository contains a single Python exploit script and a README. The exploit targets CVE-2015-3306 in ProFTPd 1.3.5 with mod_copy enabled. It opens a raw TCP socket to the target FTP service on port 21 and issues `SITE CPFR <path>` followed by `SITE CPTO <path>` to copy an arbitrary file on the target filesystem to an attacker-chosen location (commonly copying an SSH private key into a web/NFS-accessible directory such as /var/tmp). After deploying the copy operation, the script runs local OS commands to create `/mnt/testdir` and attempts to mount `<target>:/var` to `/mnt/testdir` (suggesting the intended lab scenario includes an NFS export of /var), enabling the attacker to retrieve the copied file. The script is operational but environment-specific (assumes sudo access for mount and an NFS-exported /var) and does not implement robust error handling or a full RCE payload despite the header claiming 'Remote Command Execution'.Z3R0space · Disclosed May 14, 2025 · python · markdown · network (FTP mod_copy abuse over TCP/21) + local privilege usage (sudo mount)OperationalCVE-2015-3306This repository provides a Python proof-of-concept exploit for CVE-2015-3306, a directory traversal vulnerability in ProFTPD 1.3.5b and earlier. The main file, 'exploit-ftp.py', connects to a target FTP server and abuses the 'SITE CPFR/CPTO' commands to copy a PHP webshell ('backdoor.php') into a specified webroot directory. Once deployed, the backdoor allows arbitrary shell command execution via HTTP requests to the webshell. The exploit requires the attacker to specify the target host, FTP port, webroot path, and the command to execute. The repository includes a README with usage instructions and a license file. The exploit is operational, providing a working payload and clear instructions for use against vulnerable ProFTPD installations.donmedfor · Disclosed Aug 23, 2025 · python · networkOperationalcve-2015-3306-labThis six-file repository is a reproducible educational lab and Python proof-of-concept for CVE-2015-3306 in ProFTPD's mod_copy module. The primary entry point, exploit.py, uses raw Python sockets to connect to a hard-coded local FTP service at 127.0.0.1:2121. It sends SITE CPFR and SITE CPTO before USER/PASS, exploiting the missing authentication check in vulnerable mod_copy handlers to copy /etc/segredo.txt into /home/ftp under a nanosecond-derived unique filename. It subsequently logs in as the configured anonymous FTP user, uses PASV and RETR to exfiltrate the copied content, handles the FTP 150/226 transfer state sequence, prints the recovered data, and attempts DELE cleanup. Dockerfile builds ProFTPD 1.3.5 with mod_copy from source and provisions the secret source file; proftpd.conf enables anonymous access and constrains passive ports to 30000-30010. patch.diff documents the upstream remediation: authentication checks for CPFR/CPTO plus a CopyEngine control directive. This is functional exploit code rather than a detector, but its target, source path, destination, and exfiltration credentials are basic hard-coded lab defaults.diegslva · Disclosed Sep 7, 2026 · python · c · networkOperationalhackviser_labs_CVE-2015-3306This repository contains a Python exploit script (exploit.py) and a README.md. The exploit targets ProFTPd 1.3.5 servers with the 'mod_copy' module enabled (CVE-2015-3306). The script connects to the target's FTP service on port 21, issues FTP commands to copy the file /secret.txt to the web server directory (/var/www/html/secret.txt), and then checks via HTTP if the file is accessible. The exploit demonstrates remote file copy and disclosure, allowing an attacker to retrieve sensitive files from the target system. The code is a proof-of-concept and requires the attacker to specify the target IP address as a command-line argument.cybersensei-EH · Disclosed Nov 2, 2025 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Debian ProjectDebian Linuxoperating_system
Fedora ProjectFedoraoperating_system
OpensuseOpensuse Tumbleweedoperating_system
ProftpdProftpdapplication
SuseSuse Linux Enterprise Serveroperating_system
FAQ

Frequently asked questions

Is CVE-2015-3306 exploited in the wild?
Yes. As of Nov 9, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 8, 2026.
Is there a public exploit for CVE-2015-3306?
Yes. Mallory tracks 6 public exploits or proofs of concept for CVE-2015-3306, the earliest disclosed Apr 22, 2015.
Is there a patch for CVE-2015-3306?
Upgrade to a supported ProFTPD release containing the fix. ProFTPD 1.3.5a fixes this vulnerability; a distribution-provided package with the backported correction is also suitable.
What products are affected by CVE-2015-3306?
Proftpd, Debian Project Debian Linux, Fedora Project Fedora, Opensuse Tumbleweed, and Suse Linux Enterprise Server.
How severe is CVE-2015-3306?
CVE-2015-3306 has a CVSS v3.1 score of 10.0 (Critical) and an EPSS score of 99.5% (100th percentile) as of Nov 9, 2026.
Activity feed

Recent activity

36 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+10 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence6Every report linking this CVE to a named adversary.
Associated malware3Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity20Community discussion across Reddit, Mastodon, and other social sources.