Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-109681 Overview
CVE-2026-109681 is a Server-Side Request Forgery (SSRF) vulnerability in an FTP client implementation. The client accepts the IP address and port returned in a server's 227 Entering Passive Mode response without validating that the address matches the control connection target. A rogue or compromised FTP server can abuse this behavior by returning an attacker-chosen IP:port pair, causing the client machine to initiate a TCP connection to any reachable host.
The flaw is tracked under CWE-918: Server-Side Request Forgery and was documented in a Metasploit Framework pull request.
Critical Impact
A malicious FTP server can pivot operator machines into attacker-chosen internal or external hosts, enabling internal network reconnaissance and interaction with services otherwise unreachable from the attacker.
Affected Products
- FTP client implementations that honor server-supplied PASV IP:port without validation
- Referenced in the Metasploit Framework FTP client component (see pull request #21994)
- Operator workstations running the affected client against untrusted FTP servers
Discovery Timeline
- 2026-10-21 - CVE-2026-109681 published to the National Vulnerability Database
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-109681
Vulnerability Analysis
The FTP protocol defined in RFC 959 supports a passive data transfer mode. A client issues the PASV command, and the server replies with a 227 response containing an IP:port pair that the client then connects to for data transfer. The affected FTP client parses this response and opens a TCP connection to the supplied address without verifying that the IP matches the control connection peer.
Because the attacker controls the FTP server, they also control the contents of the 227 response. Supplying an arbitrary IP:port coerces the client to establish an outbound TCP connection to any host of the attacker's choosing. This primitive turns a user-initiated FTP session into a server-side request forgery vector against the operator's network.
Root Cause
The root cause is missing input validation on the PASV response. A secure implementation compares the IP in the 227 reply against the peer IP of the active control connection and rejects or warns on a mismatch. The affected client omits this check, trusting server-supplied endpoint data as authoritative.
Attack Vector
Exploitation requires an operator to initiate an FTP session against an attacker-controlled or compromised server. User interaction is required to establish the control connection. Once connected, the attacker returns a crafted 227 response pointing the client at an internal address such as 10.0.0.5:22, a cloud metadata service, or an arbitrary external host. The client opens a TCP connection to that endpoint, which the attacker can use for internal port scanning, service fingerprinting, or interaction with firewalled resources.
No exploit code or runnable proof-of-concept has been published in the referenced advisory. See the Metasploit Framework pull request for technical implementation details.
Detection Methods for CVE-2026-109681
Indicators of Compromise
- FTP control sessions where the server's 227 Entering Passive Mode response contains an IP address that does not match the control connection peer
- Outbound TCP connections from operator workstations to internal RFC1918 ranges or cloud metadata endpoints (such as 169.254.169.254) immediately following an FTP session
- Unusual short-lived TCP connections originating from FTP client processes to non-FTP service ports
Detection Strategies
- Inspect FTP traffic at network egress points and alert when the PASV response IP differs from the server IP of the active control connection
- Correlate FTP client process activity with subsequent outbound socket connections to unexpected destinations
- Hunt for FTP sessions terminating in connections to ports commonly associated with SSH, databases, or administrative interfaces
Monitoring Recommendations
- Enable protocol-aware logging on egress firewalls and NDR tools to capture full FTP command and response pairs
- Baseline normal FTP destinations per host and alert on deviations
- Log DNS and TCP connection telemetry from operator endpoints to support post-session correlation
How to Mitigate CVE-2026-109681
Immediate Actions Required
- Restrict FTP client usage to vetted, trusted servers until a patched client version is deployed
- Where possible, use EPSV and reject servers that return non-matching PASV endpoints
- Block or proxy outbound FTP from workstations that do not require it
Patch Information
The fix is tracked in the Metasploit Framework pull request #21994, which adds validation that the IP returned in the PASV response matches the control connection target. Operators should upgrade to a release that incorporates this change and verify validation behavior against a test server.
Workarounds
- Prefer SFTP or FTPS with strict certificate validation over plaintext FTP for all data transfers
- Enforce network segmentation so operator workstations cannot reach sensitive internal services directly
- Egress-filter outbound connections from FTP client hosts to a known allowlist of destinations
- Disable passive mode where active mode is viable and the network topology supports it
# Example egress restriction using iptables to limit FTP client
# connections to a known allowlist of destination hosts
iptables -A OUTPUT -p tcp -m owner --uid-owner ftpuser -d 203.0.113.10 -j ACCEPT
iptables -A OUTPUT -p tcp -m owner --uid-owner ftpuser -j REJECT
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

