CVE-2021-37533Apache Commons Net's FTP client trusts the host from PASV response by default
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.
What to do
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | libcommons-net-java | Fixed | 3.6-1+deb11u1build0.22.04.1 | UBUNTU-CVE-2021-37533 |
| Ubuntu 20.04 | libcommons-net-java | Fixed | 3.6-1+deb11u1build0.20.04.1 | UBUNTU-CVE-2021-37533 |
| Ubuntu 18.04 | libcommons-net-java | Fixed | 3.6-1+deb11u1build0.18.04.1 | UBUNTU-CVE-2021-37533 |
| Ubuntu 16.04 | libcommons-net-java | Fix pending | 3.4-2ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2021-37533 |
| Debian 14 | libcommons-net-java | Fixed | 3.9.0-1 | DEBIAN-CVE-2021-37533 |
| Debian 13 | libcommons-net-java | Fixed | 3.9.0-1 | DEBIAN-CVE-2021-37533 |
| Debian 12 | libcommons-net-java | Fixed | 3.9.0-1 | DEBIAN-CVE-2021-37533 |
| Red Hat Enterprise Linux 9 | apache-commons-net | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j-jcl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 9 | log4j-slf4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | apache-commons-net | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | apache-commons-net-javadoc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | log4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | log4j-jcl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | log4j-slf4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | log4j-web | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | apache-commons-net | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | apache-commons-net-javadoc | Will not fix Will not fix | ||
| Maven library | commons-net:commons-net | Fixed | 3.9.0 | GHSA-cgp8-4m63-fhh5 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Commons Net: affected: Apache Commons Net to before 3.9.0; fixed in
3.9.0
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5307 (vendor-advisory)
References
- https://lists.apache.org/thread/o6yn9r9x6s94v97264hmgol1sf48mvx7
- http://www.openwall.com/lists/oss-security/2022/12/03/1
- https://lists.debian.org/debian-lts-announce/2022/12/msg00038.html
- https://www.debian.org/security/2022/dsa-5307
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.