Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. commons-net/commons-net
  4. ›
  5. CVE-2021-37533

CVE-2021-37533: Improper Input Validation

December 3, 2022 (updated December 6, 2022)

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.

References

  • www.openwall.com/lists/oss-security/2022/12/03/1
  • github.com/advisories/GHSA-cgp8-4m63-fhh5
  • github.com/apache/commons-net/commit/4fe1bae56e53f32756b1ca3296f3dd2c45e3e060
  • issues.apache.org/jira/browse/NET-711
  • lists.apache.org/thread/o6yn9r9x6s94v97264hmgol1sf48mvx7
  • nvd.nist.gov/vuln/detail/CVE-2021-37533

Code Behaviors & Features

Detect and mitigate CVE-2021-37533 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.9.0

Fixed versions

  • 3.9.0

Solution

Upgrade to version 3.9.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

maven/commons-net/commons-net/CVE-2021-37533.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.