CVE-2021-37533
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedPrior 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceApache Commons Net FTP client prior to version 3.9.0 trusts the host address in PASV (passive mode) responses by default. A malicious FTP server can send a crafted PASV response redirecting the client to an arbitrary host (such as internal network addresses), causing the client to leak information about services running on the client's private network.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 3.9.0= 10.0= 11.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Apache Commons Net version in useFor Java applications: check the commons-net jar file name in classpath or dependencies (pom.xml, build.gradle). For Debian systems: run `dpkg -l | grep commons-net` or `apt show libcommons-net-java`Affected if Version is present and less than 3.9.0
-
Confirm passive mode FTP is enabledReview application code or configuration for FTPClient setPassiveMode(true) calls, or FTPConnectionMode.PASSIVE settingAffected if Passive mode is explicitly enabled or used by default in the application
-
Check if custom host verification is implementedSearch codebase for implementations of FTPClient.setAuthoritativeHost(boolean) or similar host validation logic around PASV responsesAffected if No custom host validation exists and the library version is vulnerable (<3.9.0)
-
Inspect FTP connection behaviorMonitor network connections from the client application during FTP passive mode connections using tcpdump or similar toolsAffected if Connections are attempted to hosts other than the original FTP server without explicit configuration
You are affected if Apache Commons Net version is below 3.9.0 and your application uses FTP passive mode without implementing custom host validation for PASV responses.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped3.9.0
Upgrade Apache Commons Net to version 3.9.0 or later, which changes the default behavior to ignore hosts in PASV responses (similar to cURL).
Apache Commons Net 3.9.0
- 1. Identify all applications and dependencies that use Apache Commons Net library
- 2. For each project, check the current version of commons-net dependency (likely in pom.xml, build.gradle, or package manager files)
- 3. Upgrade Apache Commons Net to version 3.9.0 or later in your dependency management
- 4. Rebuild and redeploy all affected applications
- 5. Verify the fix by testing FTP connections with PASV mode to ensure functionality is maintained
- 6. Alternatively, if upgrade is not possible, set the system property 'ftp.disableStrictPassiveMode' to 'true' or programmatically call FTPClientConfig.setStrictParsing(false) to disable trusting the PASV response host
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation1.0 h
- Implementation1.0 h
- Testing2.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,376.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-37533 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-37533 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data