# CVE-2007-6741: Improper privilege management in pyftpdlib

Source: https://junglewise.ai/threats/cve-2007-6741-improper-privilege-management-in-pyftpdlib  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2010-10-19  
License: CC BY 4.0 with a link back

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

The ftp_PORT function in FTPServer.py in pyftpdlib before 0.2.0 does not prevent TCP connections to privileged ports if the destination IP address matches the source IP address of the connection from the FTP client, which might allow remote authenticated users to conduct FTP bounce attacks via crafted FTP data, as demonstrated by an FTP bounce attack against a NAT server, a related issue to CVE-1999-0017.

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

## Quick answers

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

**How severe is CVE-2007-6741?** 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.2.0.

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

**Am I affected by CVE-2007-6741?** 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.2.0 or later

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


## Affected products

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

## Identifiers

- CVE-2007-6741
- GHSA-8xgx-75qw-6268
- PYSEC-2010-25

## Related threats

- [pyftpdlib Use of Insufficiently Random Values of port selection on PASV command](https://junglewise.ai/threats/cve-2007-6738-pyftpdlib-use-of-insufficiently-random-values-of-port-selection-on)
- [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 Access Control in pyftpdlib](https://junglewise.ai/threats/cve-2009-5012-improper-access-control-in-pyftpdlib)
