Description
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.
Published: 2026-07-18
Score: 7.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is a heap‑based buffer overflow in the mod_sftp module of ProFTPD, triggered when an authenticated SFTP client sends a packet whose length field is zero. The unsigned underflow allows the allocator to believe a four‑gigabyte block was requested, but only a 512‑byte buffer is allocated; writing the oversized packet body past this buffer overflows heap metadata, causing the per‑connection child process to crash and resulting in a remote denial of service. The overflow may also corrupt heap structures, potentially leading to further exploitation, but the proof of concept demonstrates only denial of service.

Affected Systems

Any installation of ProFTPD that includes the mod_sftp module is affected. The specific product vendor is ProFTPD Project:ProFTPD, and no version range is provided, so all builds containing the vulnerable code may be impacted.

Risk and Exploitability

The CVSS score of 7.7 indicates a high severity, while the EPSS score of < 1 % suggests a very low likelihood of exploitation at present, and the vulnerability is not listed in the CISA KEV catalog. Exploitation requires an authenticated SFTP session; an attacker with SFTP login credentials can craft a malicious packet with length zero and a body larger than 544 bytes to trigger the overflow remotely. Because the attack can be performed over the network by any authenticated user, the overall threat is moderate to high in environments where SFTP access is enabled, though the actual exploitation probability remains low.

Generated by OpenCVE AI on July 30, 2026 at 22:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the patch that fixes the unsigned‑underflow bug, such as the commit linked in the advisory (e.g., 7342836fa98e36209660a4c5805c801476f63936) or upgrade to the latest ProFTPD release containing the fix.
  • If a patched release is not yet available, disable the mod_sftp module in the ProFTPD configuration or block SFTP traffic on the network firewall for untrusted users.
  • In the meantime, monitor the SFTP service logs for sudden crashes and consider limiting SFTP authentication methods to reduce the pool of potential attackers.

Generated by OpenCVE AI on July 30, 2026 at 22:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 28 Jul 2026 02:30:00 +0000

Type Values Removed Values Added
First Time appeared Proftpd
Proftpd proftpd
CPEs cpe:2.3:a:proftpd:proftpd:*:*:*:*:*:*:*:*
Vendors & Products Proftpd
Proftpd proftpd

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 01:45:00 +0000

Type Values Removed Values Added
First Time appeared Proftpd Project
Proftpd Project proftpd
Vendors & Products Proftpd Project
Proftpd Project proftpd

Sat, 18 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
Description 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.
Title ProFTPD mod_sftp Heap Buffer Overflow via Unsigned Integer Underflow and Size Truncation
Weaknesses CWE-122
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Proftpd Proftpd
Proftpd Project Proftpd
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-28T01:49:40.378Z

Reserved: 2026-06-11T16:07:13.001Z

Link: CVE-2026-53994

cve-icon Vulnrichment

Updated: 2026-07-23T19:12:44.540Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T23:00:22Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow