Gentoo Logo

oftpd DoS vulnerability


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200403-08 / oftpd
Release Date March 29, 2004
Latest Revision May 22, 2006: 02
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
net-ftp/oftpd <= 0.3.6 >= 0.3.7 All supported architectures

Related bugreports: #45738


A remotely-exploitable overflow exists in oftpd, allowing an attacker to crash the oftpd daemon.

2.  Impact Information


Quote from

"oftpd is designed to be as secure as an anonymous FTP server can possibly be. It runs as non-root for most of the time, and uses the Unix chroot() command to hide most of the systems directories from external users - they cannot change into them even if the server is totally compromised! It contains its own directory change code, so that it can run efficiently as a threaded server, and its own directory listing code (most FTP servers execute the system "ls" command to list files)."


Issuing a port command with a number higher than 255 causes the server to crash. The port command may be issued before any authentication takes place, meaning the attacker does not need to know a valid username and password in order to exploit this vulnerability.


This exploit causes a denial of service.

3.  Resolution Information


While a workaround is not currently known for this issue, all users are advised to upgrade to the latest version of the affected package.


All users should upgrade to the current version of the affected package:

Code Listing 3.1: Resolution

# emerge sync

# emerge -pv ">=net-ftp/oftpd-0.3.7"
# emerge ">=net-ftp/oftpd-0.3.7"

4.  References


Page updated March 29, 2004

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2015 Gentoo Foundation, Inc. Questions, Comments? Contact us.