Apache HTTP Server mod_proxy_ftp
CVE-2026-63045
Untrusted PASV address controls proxy data connection
Low (Apache) · Public source snapshot: November 12, 2026
Original portfolio report · Source reference · Source reference · Source reference · Upstream commit · Source reference · Source reference
Shared credits and the scope of my investigation are documented below.
Mallory controls an FTP server that an Apache HTTP Server forward proxy is allowed to contact. A crafted passive-mode response can make the proxy open its FTP data connection to a different host instead of that FTP server. The affected operation is an outbound TCP connection from the proxy, not execution of attacker-supplied code in httpd.
Apache rates this issue Low, lists 2.4.0–2.4.68 as affected, and released the correction in 2.4.69 on October 1, 2026. I am credited as Charles Vosburgh among multiple finders in the public Apache advisory; this is shared finder credit, not authorship of the upstream patch.
I reviewed the released 2.4.0, 2.4.68 and 2.4.69 source and the public fixing change. This write-up is source-backed analysis; I did not run an exploit or test an external proxy.
FTP separates its control connection from its data connection. In passive mode, the server tells the client where to open the data connection. When httpd handles an FTP URL through mod_proxy_ftp, httpd is that FTP client.
The relevant topology is a configured forward proxy, an untrusted FTP control server, and a separate destination reachable from the proxy. Mallory must control the FTP server's replies and cause an authorized proxy request to reach that server. Any authentication or access restrictions on the forward proxy still apply. This is not a claim that every HTTP server exposes an FTP proxy: ProxyRequests defaults to Off.
The security boundary is the data connection's destination. A reply from the FTP server should not grant it authority to redirect the proxy to an unrelated host.
In modules/proxy/mod_proxy_ftp.c, proxy_ftp_handler, release 2.4.68, httpd first tries extended passive mode (EPSV), then ordinary passive mode (PASV) if no data connection has been established. The EPSV path derives the destination address from the control connection's peer. The vulnerable PASV path instead accepts the address supplied in a 227 reply.
The handler parses six comma-separated numbers from that reply. Four become the IPv4 address, while two form the port:
apr_port_t pasvport = (p1 << 8) + p0;
Later in the same 2.4.68 handler, the four address fields become a socket address, followed directly by the connection attempt:
err = apr_sockaddr_info_get(&pasv_addr, apr_psprintf(p, "%d.%d.%d.%d",
h3, h2, h1, h0),
backend->addr->family, pasvport, 0, p);
rv = apr_socket_connect(data_sock, pasv_addr);
The intervening error handling checks whether address construction succeeded; it does not compare that address with the FTP control peer. Consequently, Mallory's PASV reply selects a third-party destination for this connection attempt. Socket creation failures, network filtering and connection failures can prevent a successful connection, but they do not enforce the missing destination relationship.
The same address construction and connection sequence is present in the inspected 2.4.0 source. That confirms the behavior at the beginning of Apache's stated 2.4 affected range. I did not establish the original pre-2.4 introducing change or individually inspect every intermediate patch release; the complete affected range above is Apache's published assessment, supported here by the endpoint release inspections.
The source establishes an attacker-selected outbound TCP destination in the PASV branch. To reach it, the untrusted FTP server must cause processing to proceed beyond EPSV without establishing an EPSV data connection, then return a parsable PASV response. The proxy must also be able to reach the selected host and port.
This can expose network reachability available to the proxy rather than the original requester. It does not, by itself, establish arbitrary HTTP request construction, credential theft, a general-purpose bidirectional tunnel, or remote code execution. A useful application-level attack would additionally depend on the third-party service and what the subsequent FTP data handling does with the connection.
No runtime positive or negative controls were performed. An isolated regression test should distinguish a normal same-peer PASV connection from an otherwise identical reply naming a separate lab host, and should verify that the fixed release rejects the latter before opening its data socket.
No executable PoC, captured traffic or runtime output is included. The public release source and fixing diff provide the basis for this analysis; they are not presented as a reproduced attack. In particular, I have not claimed that any public proxy or internal service was contacted.
Any further reproduction should use a disposable local forward proxy, a controlled FTP server and a separate controlled listener. Network isolation matters because this mechanism intentionally changes an outbound connection's destination.
Upgrade to Apache HTTP Server 2.4.69 or a vendor package carrying the corresponding fix. The upstream 2.4 fixing change, identified by Apache as SVN revision r1938674, obtains the control connection's remote address and rejects a different PASV host before creating the data socket:
if (apr_socket_addr_get(&ctrl_addr, APR_REMOTE, sock) != APR_SUCCESS
|| apr_sockaddr_ip_get(&ctrl_ip, ctrl_addr) != APR_SUCCESS
|| strcmp(pasv_host, ctrl_ip) != 0) {
return ftp_proxyerror(r, backend, HTTP_FORBIDDEN,
"PASV address does not match FTP server");
}
This comparison is also present in the inspected 2.4.69 release. It binds the PASV data host to the established control peer instead of trusting the server's independent address selection.
Regression coverage should preserve valid same-peer passive transfers, reject third-party addresses, exercise the EPSV-to-PASV fallback, and confirm that a failed peer-address lookup fails closed. Restricting forward-proxy access and outbound network reachability can reduce exposure, but is not a substitute for the shipped destination check.
CVE-2026-63045 is a missing peer-address check in mod_proxy_ftp passive-mode handling. In the forward-proxy configuration described by Apache, an untrusted FTP server can redirect a data connection to another reachable host. Apache identifies 2.4.0–2.4.68 as affected and fixes the issue in 2.4.69. The public source supports that narrow connection-redirection mechanism; this report does not claim an executed exploit or a stronger downstream compromise.