Vulnerability · Published Dec 3, 2022 · Assigned by apache
CVE-2021-37533Apache Commons Net's FTP client trusts the host from PASV response by default
Medium 6.5
In plain English
A medium-severity improper input validation in Apache Commons Net from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libcommons-net-java | 3.9.0-1 | DEBIAN-CVE-2021-37533 |
| Debian:13 | libcommons-net-java | 3.9.0-1 | DEBIAN-CVE-2021-37533 |
| Debian:14 | libcommons-net-java | 3.9.0-1 | DEBIAN-CVE-2021-37533 |
| Maven | commons-net:commons-net | 3.9.0 | GHSA-cgp8-4m63-fhh5 |
| Ubuntu:22.04:LTS | libcommons-net-java | 3.6-1+deb11u1build0.22.04.1 | USN-6037-1 |
| Ubuntu:22.04:LTS | libcommons-net-java | 3.6-1+deb11u1build0.22.04.1 | UBUNTU-CVE-2021-37533 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Commons Net | Apache Commons Net – before 3.9.0 |
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
References
- https://lists.apache.org/thread/o6yn9r9x6s94v97264hmgol1sf48mvx7
- [oss-security] 20221203 CVE-2021-37533: Apache Commons Net's FTP client trusts the host from PASV response by default mailing-list
- [debian-lts-announce] 20221229 [SECURITY] [DLA 3251-1] libcommons-net-java security update mailing-list
- DSA-5307 vendor-advisory