VYPR
Moderate severityNVD Advisory· Published Dec 3, 2022· Updated Apr 24, 2025

Apache Commons Net's FTP client trusts the host from PASV response by default

CVE-2021-37533

Description

Apache Commons Net FTP client prior to 3.9.0 trusts the host from the PASV response, allowing a malicious server to redirect traffic and leak information about the client's private network.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Apache Commons Net FTP client prior to 3.9.0 trusts the host from the PASV response, allowing a malicious server to redirect traffic and leak information about the client's private network.

Root

Cause

CVE-2021-37533 is a vulnerability in Apache Commons Net's FTP client where, prior to version 3.9.0, the client blindly trusts the host address returned in the PASV response [1][3]. This allows a malicious FTP server to redirect the client to a different IP address.

Exploitation

An attacker must first convince the user to connect to a malicious FTP server. Once connected, the server can send a crafted PASV response with a host pointing to an internal or otherwise restricted network. The FTP client then attempts to connect to that host, potentially probing services [1][3].

Impact

Successful exploitation can lead to information leakage about services running on the client's private network. This is a form of FTP bounce scan or server-side request forgery (SSRF) within the FTP protocol context [1][3].

Mitigation

The issue is fixed in Apache Commons Net 3.9.0, where the default behavior is changed to ignore the host from the PASV response, aligning with curl's approach [4]. Users can restore the old behavior by setting the system property org.apache.commons.net.ftp.ipAddressFromPasvResponse to true or calling FTPClient#setIpAddressFromPasvResponse(true) [4].

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
commons-net:commons-netMaven
< 3.9.03.9.0

Affected products

5

Patches

1
4fe1bae56e53

[NET-711] Add FTP option to toggle use of return host like CURL

https://github.com/apache/commons-netGary GregoryNov 7, 2022via ghsa
1 file changed · +2 2
  • src/changes/changes.xml+2 2 modified
    @@ -74,8 +74,8 @@ The <action> type attribute can be add,update,fix,remove.
           <action type="fix" dev="ggregory" due-to="Arturo Bernal">
             Use Math.min and Math.max method instead of manual calculations. #104.
           </action>
    -      <action type="fix" dev="ggregory" due-to="Jochen Wiedmann, Gary Gregory">
    -        FTP client trusts the host from PASV response by default.
    +      <action issue="NET-711" type="fix" dev="ggregory" due-to="Jochen Wiedmann, Gary Gregory">
    +        Add FTP option to toggle use of return host like CURL.
           </action>
           <!-- ADD -->
           <action type="add" dev="ggregory" due-to="Gary Gregory">
    

Vulnerability mechanics

Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

8

News mentions

0

No linked articles in our index yet.