# CVE-2007-6738: pyftpdlib Use of Insufficiently Random Values of port selection on PASV command

Source: https://junglewise.ai/threats/cve-2007-6738-pyftpdlib-use-of-insufficiently-random-values-of-port-selection-on  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2010-10-19  
License: CC BY 4.0 with a link back

CVE-2007-6738 · Severity: low · CVSS 3.1 · Published 2010-10-19

pyftpdlib before 0.1.1 does not choose a random value for the port associated with the PASV command, which makes it easier for remote attackers to obtain potentially sensitive information about the number of in-progress data connections by reading the response to this command.

Technologies: [pyftpdlib (PyPI)](https://junglewise.ai/threats/technologies/pyftpdlib). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2007-6738 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2007-6738 being exploited in the wild.

**How severe is CVE-2007-6738?** Low severity, with a CVSS score of 3.1, published 19 October 2010.

**Which products and versions are affected?** pyftpdlib (PyPI) ECOSYSTEM:introduced=0,fixed=0.1.1.

**Is there a fix for CVE-2007-6738?** Yes. pyftpdlib (PyPI): upgrade to 0.1.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2007-6738?** Check whether you run pyftpdlib (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- pyftpdlib (PyPI): upgrade to 0.1.1 or later

  ```sh
  pip install "pyftpdlib>=0.1.1"
  ```


## Affected products

- pyftpdlib (PyPI) ECOSYSTEM:introduced=0,fixed=0.1.1

## Identifiers

- CVE-2007-6738
- GHSA-gh7c-cg3x-pmcr
- PYSEC-2010-22

## Related threats

- [Improper Authentication in pyftpdlib](https://junglewise.ai/threats/cve-2007-6737-improper-authentication-in-pyftpdlib)
- [Directory traversal in pyftpdlib](https://junglewise.ai/threats/cve-2008-7262-directory-traversal-in-pyftpdlib)
- [PYSEC-2010-23 - FTPServer.py in pyftpdlib before 0.2.0 allows remote attackers to cause a denial of service via a long command.](https://junglewise.ai/threats/cve-2007-6739-improper-input-validation-in-pyftpdlib)
- [Improper privilege management in pyftpdlib](https://junglewise.ai/threats/cve-2007-6741-improper-privilege-management-in-pyftpdlib)
- [Improper Access Control in pyftpdlib](https://junglewise.ai/threats/cve-2009-5012-improper-access-control-in-pyftpdlib)
