glFTPd: Local buffer overflow vulnerability — GLSA 200409-27

glFTPd is vulnerable to a local buffer overflow which may allow arbitrary code execution.

Affected packages

net-ftp/glftpd on all architectures
Affected versions < 1.32-r1
Unaffected versions >= 1.32-r1

Background

glFTPd is a highly configurable FTP server with many features.

Description

The glFTPd server is vulnerable to a buffer overflow in the 'dupescan' program. This vulnerability is due to an unsafe strcpy() call which can cause the program to crash when a large argument is passed.

Impact

A local user with malicious intent can pass a parameter to the dupescan program that exceeds the size of the buffer, causing it to overflow. This can lead the program to crash, and potentially allow arbitrary code execution with the permissions of the user running glFTPd, which could be the root user.

Workaround

There is no known workaround at this time.

Resolution

All glFTPd users should upgrade to the latest version:

 # emerge sync

 # emerge -pv ">=net-ftp/glftpd-1.32-r1"
 # emerge ">=net-ftp/glftpd-1.32-r1"

References

Release date
September 21, 2004

Latest revision
September 21, 2004: 01

Severity
normal

Exploitable
local

Bugzilla entries