Skip to content
OpenAdvisories
Medium · 6.5 CVE-2021-37533 EUVD-2022-7599GHSA-cgp8-4m63-fhh5

Apache Commons Net's FTP client trusts the host from PASV response by default

Published Dec 3, 2022 · Updated Apr 24, 2025 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Commons Net Apache Commons Net – < 3.9.0 3.9.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libcommons-net-java 3.9.0-1 —
Debian 13 libcommons-net-java 3.9.0-1 —
Debian 12 libcommons-net-java 3.9.0-1 —
Debian 11 libcommons-net-java 3.6-1+deb11u1 DSA-5307-1
Debian 10 libcommons-net-java 3.6-1+deb10u1 DLA-3251-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS libcommons-net-java 3.6-1+deb11u1build0.22.04.1 USN-6037-1
Ubuntu 20.04 LTS libcommons-net-java 3.6-1+deb11u1build0.20.04.1 USN-6037-1
Ubuntu 18.04 LTS libcommons-net-java 3.6-1+deb11u1build0.18.04.1 USN-6037-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS libcommons-net-java 3.4-2ubuntu2+esm1 USN-6037-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache-commons-net 3.9.0-1.1 openSUSE-SU-2024:12549-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling druid 35.0.1-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven commons-net:commons-net < 3.9.0 3.9.0 GHSA-cgp8-4m63-fhh5

Advisories 37

References