Privilege Escalation Vulnerability in linux-ftpd: Directory Listing Exploit

linux-ftpd Updated 02 Oct 2025

Summary

02/03/2007
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2006-7094: ftpd, as used by Gentoo and Debian Linux, sets the gid to the effective uid instead of the effective group id before executing /bin/ls, which allows remote authenticated users to list arbitrary directories with the privi... Affects linux-ftpd versions < 0.17-23. Fixed in 0.17-23. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

linux-ftpd is an FTP server implementation used in Debian-based systems, providing file transfer capabilities over the Internet. It allows users to upload and download files securely. However, due to a flaw in its handling of group IDs, it is vulnerable to privilege escalation, allowing unauthorized directory access.

Vulnerability Detail

The vulnerability identified as DEBIAN-CVE-2006-7094 occurs in the ftpd service used by Gentoo and Debian Linux. It improperly sets the group ID (gid) to the effective user ID (uid) instead of the effective group ID before executing the /bin/ls command. This flaw allows remote authenticated users to list arbitrary directories with the privileges of gid 0 (root), potentially exposing sensitive information and enabling further attacks.

How To Fix

Minimum fixed version

0.17-23

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux-ftpd

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

Workaround

As a temporary workaround, consider restricting access to the FTP service or disabling it until the package can be updated. You can stop the service with the command:

sudo systemctl stop linux-ftpd

Conclusion

The linux-ftpd package has a significant vulnerability that can lead to unauthorized directory access. It is crucial to update to the latest patched version to mitigate this risk. Users should also consider temporary workarounds while awaiting updates.

See every vulnerability recorded for linux-ftpd →

Share this vulnerability

FAQ

The vulnerability allows authenticated users to list directories they should not have access to, potentially exposing sensitive files.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Yes, a patched version of linux-ftpd (0.17-23) is available. Updating to this version will resolve the vulnerability.

If immediate updating is not possible, consider restricting access to the FTP service or disabling it temporarily.

Detailed information can be found in the Debian CVE database or by visiting the Vulert website.

Related vulnerabilities

Recent vulnerabilities recorded for linux-ftpd.

How To Fix

Minimum fixed version

0.17-23

This is the first release that contains the fix.

sudo apt-get install --only-upgrade linux-ftpd

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