CVE-2021-37533 Apache Commons Net's FTP client trusts the host from PASV response by default
MediumCVSS 6.5
EPSS 2.2%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
Prior to Apache Commons Net 3.9.0, Net's FTP client trusts the host from PASV response by default. A malicious server can redirect the Commons Net code to use a different host, but the user has to connect to the malicious server in the first place. This may lead to leakage of information about services running on the private network of the client. The default in version 3.9.0 is now false to ignore such hosts, as cURL does. See https://issues.apache.org/jira/browse/NET-711.
Upgrade path
11 packages: 10 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Apache Commons Net | >= Apache Commons Net, < 3.9.0 | 3.9.0 | Fixed |
| apache commons net | < 3.9.0 | 3.9.0 | Fixed |
| commons-net/commons-net(Maven) | < 3.9.0; = 1.0.0; = 1.1.0; = 1.2.0 +19 more | 3.9.0 | Fixed |
| debian/libcommons-net-java(Debian 12) | < 3.9.0-1 | 3.9.0-1 | Fixed |
| debian/libcommons-net-java(Debian 13) | < 3.9.0-1 | 3.9.0-1 | Fixed |
| debian/libcommons-net-java(Debian 14) | < 3.9.0-1 | 3.9.0-1 | Fixed |
| ubuntu/libcommons-net-java(Ubuntu 18.04) | < 3.6-1+deb11u1build0.18.04.1; = 3.6-1 | 3.6-1+deb11u1build0.18.04.1 | Fixed |
| ubuntu/libcommons-net-java(Ubuntu 20.04) | < 3.6-1+deb11u1build0.20.04.1; = 3.6-1 | 3.6-1+deb11u1build0.20.04.1 | Fixed |
| ubuntu/libcommons-net-java(Ubuntu 22.04) | < 3.6-1+deb11u1build0.22.04.1; = 3.6-1 | 3.6-1+deb11u1build0.22.04.1 | Fixed |
| ubuntu/libcommons-net-java(Ubuntu Pro 16.04) | < 3.4-2ubuntu2+esm1; = 3.3-2; = 3.4-1; = 3.4-2 +1 more | 3.4-2ubuntu2+esm1 | Fixed |
| debian linux | = 10.0; = 11.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| commons-net/commons-net(Maven) | < 3.9.0 | 3.9.0 |
| commons-net/commons-net(Maven) | = 1.0.0 | No fix listed |
| commons-net/commons-net(Maven) | = 1.1.0 | No fix listed |
| commons-net/commons-net(Maven) | = 1.2.0 | No fix listed |
| commons-net/commons-net(Maven) | = 1.2.1 | No fix listed |
| commons-net/commons-net(Maven) | = 1.2.2 | No fix listed |
| commons-net/commons-net(Maven) | = 1.3.0 | No fix listed |
| commons-net/commons-net(Maven) | = 1.4.0 | No fix listed |
| commons-net/commons-net(Maven) | = 1.4.1 | No fix listed |
| commons-net/commons-net(Maven) | = 2.0 | No fix listed |
| commons-net/commons-net(Maven) | = 2.2 | No fix listed |
| commons-net/commons-net(Maven) | = 3.0 | No fix listed |
| commons-net/commons-net(Maven) | = 3.0.1 | No fix listed |
| commons-net/commons-net(Maven) | = 3.1 | No fix listed |
| commons-net/commons-net(Maven) | = 3.2 | No fix listed |
| commons-net/commons-net(Maven) | = 3.3 | No fix listed |
| commons-net/commons-net(Maven) | = 3.4 | No fix listed |
| commons-net/commons-net(Maven) | = 3.5 | No fix listed |
| commons-net/commons-net(Maven) | = 3.6 | No fix listed |
| commons-net/commons-net(Maven) | = 3.7 | No fix listed |
| commons-net/commons-net(Maven) | = 3.7.1 | No fix listed |
| commons-net/commons-net(Maven) | = 3.7.2 | No fix listed |
| commons-net/commons-net(Maven) | = 3.8.0 | No fix listed |
| debian/libcommons-net-java(Debian:12) | < 3.9.0-1 | 3.9.0-1 |
| debian/libcommons-net-java(Debian:13) | < 3.9.0-1 | 3.9.0-1 |
Show 16 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libcommons-net-java(Debian:14) | < 3.9.0-1 | 3.9.0-1 |
| ubuntu/libcommons-net-java(Ubuntu:22.04) | < 3.6-1+deb11u1build0.22.04.1 | 3.6-1+deb11u1build0.22.04.1 |
| apache commons net | < 3.9.0 | 3.9.0 |
| debian linux | = 10.0 | No fix listed |
| debian linux | = 11.0 | No fix listed |
| Apache Commons Net | >= Apache Commons Net, < 3.9.0 | 3.9.0 |
| ubuntu/libcommons-net-java(Ubuntu:Pro:16.04) | < 3.4-2ubuntu2+esm1 | 3.4-2ubuntu2+esm1 |
| ubuntu/libcommons-net-java(Ubuntu:Pro:16.04) | = 3.3-2 | No fix listed |
| ubuntu/libcommons-net-java(Ubuntu:Pro:16.04) | = 3.4-1 | No fix listed |
| ubuntu/libcommons-net-java(Ubuntu:Pro:16.04) | = 3.4-2 | No fix listed |
| ubuntu/libcommons-net-java(Ubuntu:Pro:16.04) | = 3.4-2ubuntu2 | No fix listed |
| ubuntu/libcommons-net-java(Ubuntu:18.04) | < 3.6-1+deb11u1build0.18.04.1 | 3.6-1+deb11u1build0.18.04.1 |
| ubuntu/libcommons-net-java(Ubuntu:18.04) | = 3.6-1 | No fix listed |
| ubuntu/libcommons-net-java(Ubuntu:20.04) | < 3.6-1+deb11u1build0.20.04.1 | 3.6-1+deb11u1build0.20.04.1 |
| ubuntu/libcommons-net-java(Ubuntu:20.04) | = 3.6-1 | No fix listed |
| ubuntu/libcommons-net-java(Ubuntu:22.04) | = 3.6-1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- lists.apache.org issue-tracking mailing-list vendor-advisory
- github.com patch
- issues.apache.org issue-tracking
- [oss-security] 20221203 CVE-2021-37533: Apache Commons Net's FTP client trusts the host from PASV response by default issue-tracking mailing-list third-party-advisory
- [debian-lts-announce] 20221229 [SECURITY] [DLA 3251-1] libcommons-net-java security update mailing-list third-party-advisory
- DSA-5307 third-party-advisory vendor-advisory
- github.com
- github.com product
- Debian Security Tracker CVE-2021-37533 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6037-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- github.com issue-tracking