CVE-2026-53994ProFTPD mod_sftp Heap Buffer Overflow via Unsigned Integer Underflow and Size Truncation
ProFTPD mod_sftp contains a heap-based buffer overflow reachable by an authenticated SFTP user. The fxp_packet_read() 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 size_t but passed to new_block() as a 32-bit int; the low 32 bits of 0x100000000 are 0, so new_block() 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 (packet_len=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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | proftpd-dfsg | Under investigation | UBUNTU-CVE-2026-53994 | |
| Ubuntu 24.04 | proftpd-dfsg | Under investigation | UBUNTU-CVE-2026-53994 | |
| Ubuntu 22.04 | proftpd-dfsg | Under investigation | UBUNTU-CVE-2026-53994 | |
| Ubuntu 20.04 | proftpd-dfsg | Fix pending | UBUNTU-CVE-2026-53994 | |
| Ubuntu 18.04 | proftpd-dfsg | Fix pending | UBUNTU-CVE-2026-53994 | |
| Ubuntu 16.04 | proftpd-dfsg | Fix pending | UBUNTU-CVE-2026-53994 | |
| Debian 14 | proftpd-dfsg | Fixed | 1.3.9b~dfsg-1 | DEBIAN-CVE-2026-53994 |
| Debian 13 | proftpd-dfsg | Fixed | 1.3.8.c+dfsg-4+deb13u3 | DEBIAN-CVE-2026-53994 |
| Debian 12 | proftpd-dfsg | Fix pending | DEBIAN-CVE-2026-53994 |
What the vendor says
As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ProFTPD Project ProFTPD: affected: before 1.3.10; fixed in
1.3.10
Vendor advisories:
References
- https://github.com/proftpd/proftpd
- https://github.com/proftpd/proftpd/commit/7342836fa98e36209660a4c5805c801476f63936
- https://www.vulncheck.com/advisories/proftpd-mod-sftp-heap-buffer-overflow-via-unsigned-integer-underflow-and-size-truncation
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.