# CVE-2021-37533: Apache Commons Net's FTP client trusts the host from PASV response by default

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.17% (percentile 83, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-cgp8-4m63-fhh5
- **Published:** 2022-12-03T00:00:00.000Z
- **Modified:** 2026-09-10T03:49:47.609Z

## Who should check

- Projects that depend on Maven package commons-net:commons-net (\< 3.9.0)
- Anyone running Apache Software Foundation Apache Commons Net \>= Apache Commons Net, \< 3.9.0

## 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 and fixed versions

- Maven `commons-net:commons-net`: affected \< 3.9.0; fixed 3.9.0 (osv)
- Apache Software Foundation Apache Commons Net: \>= Apache Commons Net, \< 3.9.0 (cvelist)

## Mitigation

- Upgrade commons-net:commons-net to 3.9.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-37533. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-37533.md
Affected: commons-net:commons-net < 3.9.0
Fixed in: 3.9.0

Steps:
1. Search this machine and project for commons-net:commons-net (Maven), Apache Software Foundation Apache Commons Net: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-37533 being exploited?

There is no confirmed exploitation: CVE-2021-37533 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-37533?

Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2021-37533?

commons-net:commons-net \< 3.9.0.

### Is there a fix for CVE-2021-37533?

Yes. Fixed in 3.9.0. Upgrade commons-net:commons-net to 3.9.0 or later.

### How do I check if I'm affected by CVE-2021-37533?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/o6yn9r9x6s94v97264hmgol1sf48mvx7>
- vendor: <https://www.debian.org/security/2022/dsa-5307>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2021-37533>
- patch: <https://github.com/apache/commons-net/commit/4fe1bae56e53f32756b1ca3296f3dd2c45e3e060>
- other: <http://www.openwall.com/lists/oss-security/2022/12/03/1>
- other: <https://lists.debian.org/debian-lts-announce/2022/12/msg00038.html>
- other: <https://github.com/apache/commons-net>
- other: <https://issues.apache.org/jira/browse/NET-711>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-37533>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-cgp8-4m63-fhh5> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2021-37533> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-37533>
