Wget: User-assisted file creation or overwrite
Gentoo Linux Security Advisory
||GLSA 201110-10 / Wget
||October 13, 2011
||October 13, 2011: 1
All supported architectures
Insecure usage of server provided filenames may allow the creation
or overwriting of local files.
GNU Wget is a free software package for retrieving files using HTTP,
HTTPS and FTP, the most widely-used Internet protocols.
It was discovered that Wget was unsafely trusting server-provided
filenames. This allowed attackers to overwrite or create files on the
user's system by sending a redirect from the expected URL to another URL
specifying the targeted file.
An unauthenticated remote attacker may be able to create or overwrite
local files by enticing the user to open an attacker controlled URL,
possibly leading to execution of arbitrary code.
There is no known workaround at this time.
All Wget users should upgrade to the latest version:
Code Listing 3.1: Resolution
# emerge --sync
# emerge --ask --oneshot --verbose ">=net-misc/wget-1.12-r2"
NOTE: This is a legacy GLSA. Updates for all affected architectures are
available since September 19, 2010. It is likely that your system is
already no longer affected by this issue.