CVEfocus › CVE database › CVE-2021-37533

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

CVSS 6.5 MediumEPSS 2.2% (higher than 83% of CVEs)Published 2022-12-03Updated 2025-04-24Assigner: apache

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.

CWE-20

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

7Fixed
1Fix pending
12Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04libcommons-net-javaFixed3.6-1+deb11u1build0.22.04.1UBUNTU-CVE-2021-37533
Ubuntu 20.04libcommons-net-javaFixed3.6-1+deb11u1build0.20.04.1UBUNTU-CVE-2021-37533
Ubuntu 18.04libcommons-net-javaFixed3.6-1+deb11u1build0.18.04.1UBUNTU-CVE-2021-37533
Ubuntu 16.04libcommons-net-javaFix pending3.4-2ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-37533
Debian 14libcommons-net-javaFixed3.9.0-1DEBIAN-CVE-2021-37533
Debian 13libcommons-net-javaFixed3.9.0-1DEBIAN-CVE-2021-37533
Debian 12libcommons-net-javaFixed3.9.0-1DEBIAN-CVE-2021-37533
Red Hat Enterprise Linux 9apache-commons-netWill not fix
Will not fix
Red Hat Enterprise Linux 9log4jWill not fix
Will not fix
Red Hat Enterprise Linux 9log4j-jclWill not fix
Will not fix
Red Hat Enterprise Linux 9log4j-slf4jWill not fix
Will not fix
Red Hat Enterprise Linux 8apache-commons-netWill not fix
Will not fix
Red Hat Enterprise Linux 8apache-commons-net-javadocWill not fix
Will not fix
Red Hat Enterprise Linux 8log4jWill not fix
Will not fix
Red Hat Enterprise Linux 8log4j-jclWill not fix
Will not fix
Red Hat Enterprise Linux 8log4j-slf4jWill not fix
Will not fix
Red Hat Enterprise Linux 8log4j-webWill not fix
Will not fix
Red Hat Enterprise Linux 7apache-commons-netWill not fix
Will not fix
Red Hat Enterprise Linux 7apache-commons-net-javadocWill not fix
Will not fix
Maven librarycommons-net:commons-netFixed3.9.0GHSA-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.

Vendor advisories:

References

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.