CVE-2026-53994: ProFTPD mod_sftp Heap Buffer Overflow via Unsigned Integer Underflow and Size Truncation
ProFTPD modsftp contains a heap-based buffer overflow reachable by an authenticated SFTP user. The fxppacketread() function accepts the attacker-supplied 32-bit big-endian SFTP packet length without a minimum sanity check. A value of 0 causes an unsigned subtraction elsewhere in the read path to underflow to approximately 4 GB. That oversized request reaches the core memory allocator, where the rounded size is computed in sizet but passed to newblock() as a 32-bit int; the low 32 bits of 0x100000000 are 0, so newblock() returns a small (~512-byte) block while the caller is told it received ~4 GB. The subsequent fill loop then streams attacker-controlled bytes past the end of the 544-byte allocation, producing an attacker-controlled heap buffer overflow. An authenticated user can crash the per-connection ProFTPD session child on demand with a single malformed SFTP packet (packetlen=0 followed by a body greater than approximately 544 bytes), producing reliable authenticated remote denial of service. Depending on heap layout and adjacent allocations, heap metadata corruption and further consequences beyond denial of service may be possible, though only denial of service is demonstrated by the supplied proof of concept.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-53994?
The severity of CVE-2026-53994 is rated high with a score of 7.5.
How does CVE-2026-53994 affect ProFTPD mod_sftp?
CVE-2026-53994 affects ProFTPD mod_sftp by allowing a heap buffer overflow through an unsigned integer underflow which can be exploited by authenticated SFTP users.
What is the impact of CVE-2026-53994?
The impact of CVE-2026-53994 includes potential compromise of confidentiality, integrity, and availability due to the buffer overflow.
How do I fix CVE-2026-53994?
To fix CVE-2026-53994, you should update ProFTPD mod_sftp to the latest patched version provided by the maintainers.
Who is affected by CVE-2026-53994?
Authenticated SFTP users are primarily affected by CVE-2026-53994 as they can exploit the vulnerability.