CVE-2008-7262: Directory Traversal Vulnerabilities in pyftpdlib

pyftpdlib Updated 02 Oct 2025

Summary

19/10/2010
Yes i
Moderate
6.3

CVE-2008-7262: Multiple directory traversal vulnerabilities in FTPServer.py in pyftpdlib before 0.3.0 allow remote authenticated users to access arbitrary files and directories via vectors involving a symlink in a pathname to a (1) CWD... Affects pyftpdlib versions < 0.3.0. Fixed in 0.3.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

pyftpdlib is a Python FTP server library that provides a high-level interface for implementing FTP servers. It allows developers to create custom FTP servers with ease. However, versions prior to 0.3.0 are vulnerable to multiple directory traversal vulnerabilities.

Vulnerability Detail

The vulnerability arises due to insufficient input validation in the FTPServer.py file of pyftpdlib. Remote authenticated users can exploit these vulnerabilities by manipulating symlinks in certain commands (CWD, DELE, STOR, or RETR) to access arbitrary files and directories on the server. This can lead to unauthorized access, disclosure of sensitive information, and potential compromise of the server.

How To Fix

Minimum fixed version

0.3.0

This is the first release that contains the fix.

pip install --upgrade "pyftpdlib==0.3.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to the latest version is not immediately feasible, a possible workaround is to implement input validation and sanitization in the affected commands. This can be done by checking the provided path against a whitelist of allowed directories or by using a secure file access mechanism that prevents directory traversal attacks.

Conclusion

The directory traversal vulnerabilities in pyftpdlib versions prior to 0.3.0 can be exploited by remote authenticated users to access arbitrary files and directories on the server. It is crucial to upgrade to the latest version or implement the recommended workarounds to mitigate the risk of unauthorized access and potential compromise. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pyftpdlib →

Share this vulnerability

FAQ

pyftpdlib is a Python FTP server library that allows developers to create custom FTP servers.

Versions prior to 0.3.0 are affected by these directory traversal vulnerabilities.

An attacker with remote authenticated access can manipulate symlinks in certain FTP commands to access arbitrary files and directories on the server.

These vulnerabilities can lead to unauthorized access, disclosure of sensitive information, and potential compromise of the FTP server.

Yes, implementing input validation and sanitization in the affected commands can help mitigate the vulnerabilities.

Related vulnerabilities

Recent vulnerabilities recorded for pyftpdlib.

How To Fix

Minimum fixed version

0.3.0

This is the first release that contains the fix.

pip install --upgrade "pyftpdlib==0.3.0"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback