ProFTPD Heap-Based Buffer Overflow Vulnerability in mod_sftp Module Allowing Arbitrary Code Execution

Vulnerability

A heap-based buffer overflow vulnerability has been identified in the ProFTPD FTP server software, specifically in versions prior to 1.3.9c and between 1.3.10rc1 and 1.3.10rc3. This vulnerability resides within the mod_sftp module and allows authenticated low-privilege attackers to execute arbitrary code. The issue arises when crafted SFTP packet fragments exceeding 16 KB are sent, exploiting an improperly managed reallocation process. This leads to corruption of the memory pool's metadata, overwriting critical pointers to redirect function calls to system commands, effectively allowing code execution.

Impact

Exploitation of this vulnerability could lead to unauthorized arbitrary code execution on the server.

Reproduction

The vulnerability can be reproduced by sending fragmented SFTP packets that collectively exceed the 16 KB buffer limit. After the initial fragmentation is acknowledged, a follow-up packet can be sent that triggers the buffer overflow by exceeding the allocated buffer size. This can be done by manipulating the SFTP 'RENAME' request to execute arbitrary commands on the server.

Remediation

Users can upgrade to ProFTPD versions 1.3.9c or 1.3.10rc3 and later, where this vulnerability has been fixed.

Added: Jul 20, 2026, 3:26 PM
Updated: Jul 20, 2026, 3:26 PM

Vulnerability Rating

Custom Algorithm
spread
6.4
impact
7.5
exploitability
5.8
remediation
7.7
relevance
10.0
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.