CVE-2016-4971
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request...
CVE-2016-4971 is a high vulnerability (CVSS 8.8) in Gnu Wget, published June 10, 2016. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 46.1%, the 98th percentile. Fixed in wget 1.17.1-r1.
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
- Record
CVE-2016-4971- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Updated
- 2026-11-02
CVE List No score
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
- Record
CVE-2016-4971- Updated
- 2026-11-02
EUVDEUVD-2016-5944 No score
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
- Record
EUVD-2016-5944- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-5w8p-rj9f-xvj7
8.8
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request...
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
- Record
GHSA-5w8p-rj9f-xvj7- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVALPINE-CVE-2016-4971
8.8
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
- Record
ALPINE-CVE-2016-4971- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
8.8
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
- Record
CVE-2016-4971- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVDEBIAN-CVE-2016-4971
8.8
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
- Record
DEBIAN-CVE-2016-4971- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2016:2587
7.0
Red Hat Security Advisory: wget security and bug fix update
- Record
RHSA-2016:2587- CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-4971
8.8
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource.
- Record
UBUNTU-CVE-2016-4971- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2016-0323 No score
Updated wget packages fix security vulnerability
GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource (CVE-2016-4971).
Fixed a potential race condition by creating files with .tmp ext and making them accessible to the current user only (CVE-2016-7098).
- Record
MGASA-2016-0323- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10263-1 No score
wget-1.18-2.3 on GA media
These are all security issues fixed in the wget-1.18-2.3 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10263-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2226-1 No score
Security update for wget
This update for wget fixes the following issues:
- Fix for HTTP to a FTP redirection file name confusion vulnerability (bsc#984060, CVE-2016-4971).
- Work around a libidn vulnerability (bsc#937096, CVE-2015-2059).
- Fix for wget fails with basicauth: Failed writing HTTP request: Bad file descriptor (bsc#958342)
- Record
SUSE-SU-2016:2226-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2358-1 No score
Security update for wget
This update for wget fixes the following issues:
-
CVE-2016-4971: A HTTP to FTP redirection file name confusion vulnerability was fixed. (bsc#984060).
-
CVE-2016-7098: A potential race condition was fixed by creating files with .tmp ext and making them accessible to the current user only. (bsc#995964)
Bug fixed:
- Wget failed with basicauth: Failed writing HTTP request: Bad file descriptor (bsc#958342)
- Record
SUSE-SU-2016:2358-1- Updated
- 2026-11-02
OSVUSN-3012-1 No score
wget vulnerability
Dawid Golunski discovered that Wget incorrectly handled filenames when being redirected from an HTTP to an FTP URL. A malicious server could possibly use this issue to overwrite local files.
- Record
USN-3012-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
wgetAlpine:v3.4 |
before 1.17.1-r1 | 1.17.1-r1 |
wgetDebian:12 |
before 1.18-1 | 1.18-1 |
wgetDebian:13 |
before 1.18-1 | 1.18-1 |
wgetDebian:14 |
before 1.18-1 | 1.18-1 |
wgetDebian:7 |
before 1.13.4-3+deb7u3, plus listed versions 1.13.4-31.13.4-3+deb7u11.13.4-3+deb7u2 |
1.13.4-3+deb7u3 |
wgetMageia:5 |
before 1.15-5.1.mga5 | 1.15-5.1.mga5 |
wgetRed Hat:enterprise_linux:7::client |
before 0:1.14-13.el7 | 0:1.14-13.el7 |
wget-debuginfoRed Hat:enterprise_linux:7::client |
before 0:1.14-13.el7 | 0:1.14-13.el7 |
wgetRed Hat:enterprise_linux:7::computenode |
before 0:1.14-13.el7 | 0:1.14-13.el7 |
wget-debuginfoRed Hat:enterprise_linux:7::computenode |
before 0:1.14-13.el7 | 0:1.14-13.el7 |
Show 21 moreShow less
| Package | Affected | Fixed |
|---|---|---|
wgetRed Hat:enterprise_linux:7::server |
before 0:1.14-13.el7 | 0:1.14-13.el7 |
wget-debuginfoRed Hat:enterprise_linux:7::server |
before 0:1.14-13.el7 | 0:1.14-13.el7 |
wgetRed Hat:enterprise_linux:7::workstation |
before 0:1.14-13.el7 | 0:1.14-13.el7 |
wget-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:1.14-13.el7 | 0:1.14-13.el7 |
wgetSUSE:Linux Enterprise Desktop 12 SP1 |
before 1.14-10.3 | 1.14-10.3 |
wgetSUSE:Linux Enterprise Server 12 SP1 |
before 1.14-10.3 | 1.14-10.3 |
wgetSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 1.14-10.3 | 1.14-10.3 |
wget-openssl1SUSE:Linux Enterprise Server 11-SECURITY |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetSUSE:OpenStack Cloud 5 |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetSUSE:Manager 2.1 |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetSUSE:Manager Proxy 2.1 |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetSUSE:Linux Enterprise Point of Sale 11 SP3 |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetSUSE:Linux Enterprise Server 11 SP3-LTSS |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wget-openssl1SUSE:Linux Enterprise Server 11 SP3-LTSS |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetSUSE:Linux Enterprise Server 11 SP3-TERADATA |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wget-openssl1SUSE:Linux Enterprise Server 11 SP3-TERADATA |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetSUSE:Linux Enterprise Server 11 SP4 |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetSUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 1.11.4-1.32.1 | 1.11.4-1.32.1 |
wgetUbuntu:14.04:LTS |
before 1.15-1ubuntu1.14.04.2, plus listed versions 1.14-2ubuntu11.14-5ubuntu11.15-1ubuntu11.15-1ubuntu1.14.04.1 |
1.15-1ubuntu1.14.04.2 |
wgetUbuntu:16.04:LTS |
before 1.17.1-1ubuntu1.1, plus listed versions 1.16.1-1ubuntu11.17.1-1ubuntu1 |
1.17.1-1ubuntu1.1 |
wgetopenSUSE:Tumbleweed |
before 1.18-2.3 | 1.18-2.3 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | GNU Wget < 1.18 - Arbitrary File Upload / Remote Code Execution | 2016-07-06 |
| Exploit-DB | GNU Wget < 1.18 - Arbitrary File Upload (2) | 2021-04-30 |
| PoC in GitHub | dinidhu96/IT19013756_-CVE-2016-4971- | 2020-05-12 |
| PoC in GitHub | gitcollect/CVE-2016-4971 | 2016-07-02 |
| PoC in GitHub | mbadanoiu/CVE-2016-4971 | 2019-01-05 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV, PoC in GitHub |
References
lists.gnu.org/archive/html/info-gnu/2016-06/msg00004.html
security.gentoo.org/glsa/201610-11
lists.opensuse.org/opensuse-updates/2016-08/msg00043.html
exploit-db.com/exploits/40064
bugzilla.redhat.com/show_bug.cgi?id=1343666
oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
Show 37 moreShow less
git.savannah.gnu.org/cgit/wget.git/commit?id=e996e322ffd42aaa051602da182d03178d0f13e1
rhn.redhat.com/errata/RHSA-2016-2587.html
securitytracker.com/id/1036133
ubuntu.com/usn/USN-3012-1
securityfocus.com/bid/91530
security.paloaltonetworks.com/CVE-2016-4971
packetstormsecurity.com/files/162395/GNU-wget-Arbitrary-File-Upload-Code-Execution.html
nvd.nist.gov/vuln/detail/CVE-2016-4971
access.redhat.com/errata/RHSA-2016:2587
access.redhat.com/security/cve/CVE-2016-4971
github.com/advisories/GHSA-5w8p-rj9f-xvj7
security.alpinelinux.org/vuln/CVE-2016-4971
security-tracker.debian.org/tracker/CVE-2016-4971
advisories.mageia.org/MGASA-2016-0323.html
bugs.mageia.org/show_bug.cgi?id=18671
ubuntu.com/usn/usn-3012-1
lists.opensuse.org/opensuse-updates/2016-09/msg00044.html
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/7.3_Release_Notes/index.html
bugzilla.redhat.com/show_bug.cgi?id=1147572
security.access.redhat.com/data/csaf/v2/advisories/2016/rhsa-2016_2587.json
cve.org/CVERecord?id=CVE-2016-4971
suse.com/support/update/announcement/2016/suse-su-20162226-1
bugzilla.suse.com/937096
bugzilla.suse.com/958342
bugzilla.suse.com/984060
suse.com/security/cve/CVE-2015-2059
suse.com/security/cve/CVE-2016-4971
suse.com/support/update/announcement/2016/suse-su-20162358-1
bugzilla.suse.com/995964
suse.com/security/cve/CVE-2016-7098
ubuntu.com/security/CVE-2016-4971
ubuntu.com/security/notices/USN-3012-1
suse.com/security/cve/CVE-2010-2252
suse.com/security/cve/CVE-2012-4929
suse.com/security/cve/CVE-2014-4877
suse.com/security/cve/CVE-2015-7665