CVE-2021-37533
Apache Commons Net's FTP client trusts the host from PASV response by default
Reported by apache · Published December 3, 2022
commons-net is fixed in 3.9.0 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| commons-net:commons-net | Maven Central | 3.9.0 |
| druid | Wolfi | 37.0.0-r56, 37.0.0-r14 |
| spark-3.5 | Chainguard | 3.5.7-r2 |
| druid | Chainguard | 37.0.0-r56, 37.0.0-r14 |
| commons_net | apache | 3.9.0 |
| Apache Commons Net | Apache Software Foundation | 3.9.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Commons Net | Apache Commons Net |
| wolfi | druid | 0, 0 |
| Apache Software Foundation | Apache Commons Net | * |
| chainguard | spark-3.5 | 0 |
| Maven | commons-net:commons-net | 0 |
| chainguard | druid | 0, 0 |
Timeline
- Dec 3, 2022 CVE Published
- Dec 4, 2022 EPSS Score (30 in total, the first dated here)
- Jun 1, 2026 Security Advisory (32 in total, the first dated here)
- Jul 26, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch (31 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-37533
vulnetix vdb fixes CVE-2021-37533
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-37533/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [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
- https://nvd.nist.gov/vuln/detail/CVE-2021-37533 advisory
- https://github.com/apache/commons-net/commit/4fe1bae56e53f32756b1ca3296f3dd2c45e3e060 patch
- https://issues.apache.org/jira/browse/NET-711 url
- https://github.com/advisories/GHSA-cgp8-4m63-fhh5 advisory
- Multiples vulnérabilités dans Juniper Networks Secure Analytics advisory