Gentoo Logo

GNUMP3d: Directory traversal and insecure temporary file creation


1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200511-16 / GNUMP3d
Release Date November 21, 2005
Latest Revision August 21, 2007: 02
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
media-sound/gnump3d < 2.9_pre7 >= 2.9_pre7 All supported architectures

Related bugreports: #111990


Two vulnerabilities have been identified in GNUMP3d allowing for limited directory traversal and insecure temporary file creation.

2.  Impact Information


GNUMP3d is a streaming server for MP3s, OGG vorbis files, movies and other media formats.


Ludwig Nussel from SUSE Linux has identified two vulnerabilities in GNUMP3d. GNUMP3d fails to properly check for the existence of /tmp/index.lok before writing to the file, allowing for local unauthorized access to files owned by the user running GNUMP3d. GNUMP3d also fails to properly validate the "theme" GET variable from CGI input, allowing for unauthorized file inclusion.


An attacker could overwrite files owned by the user running GNUMP3d by symlinking /tmp/index.lok to the file targeted for overwrite. An attacker could also include arbitrary files by traversing up the directory tree (at most two times, i.e. "../..") with the "theme" GET variable.

3.  Resolution Information


There is no known workaround at this time.


All GNUMP3d users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=media-sound/gnump3d-2.9_pre7"

4.  References


Page updated November 21, 2005

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.