Critical File Write Vulnerability in wget Package

wget Updated 02 Oct 2025

Summary

30/06/2016
N/A
Yes i
High
8.8

ALPINE-CVE-2016-4971: GNU wget before 1.18 allows remote servers to write to arbitrary files by redirecting a request from HTTP to a crafted FTP resource. Affects wget versions < 1.17.1-r1. Fixed in 1.17.1-r1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The wget package is a widely used command-line utility for downloading files from the web. It supports HTTP, HTTPS, and FTP protocols, allowing users to retrieve content from various sources. Despite its robust functionality, wget has been found vulnerable to a critical issue that allows remote servers to manipulate file writing, posing significant security risks.

Vulnerability Detail

GNU wget before version 1.18 is susceptible to a vulnerability that allows remote servers to redirect HTTP requests to malicious FTP resources. This flaw can lead to unauthorized file writing on the user's system, potentially compromising sensitive data and system integrity. The vulnerability is classified under CVE-2016-4971 and has a CVSS score of 8.8, indicating a high severity level.

How To Fix

Minimum fixed version

1.17.1-r1

This is the first release that contains the fix.

sudo apk add --upgrade wget

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, users can avoid using wget for downloading files from untrusted sources or disable FTP support if not needed. Additionally, consider using alternative tools that do not exhibit this vulnerability.

Conclusion

The wget package has a critical vulnerability that allows remote file writing through manipulated requests. Users are strongly advised to update to the latest patched version to mitigate risks. Utilizing tools like Vulert can further enhance security by monitoring for vulnerabilities in real-time.

See every vulnerability recorded for wget →

Share this vulnerability

FAQ

CVE-2016-4971 is a security vulnerability in GNU wget that allows remote servers to write to arbitrary files by redirecting HTTP requests to crafted FTP resources.

You can check your wget version by running 'wget --version' in your terminal. If it is below 1.18, it is vulnerable.

The risks include unauthorized file writing, potential data breaches, and system compromise, which can lead to further exploitation.

Yes, tools like Vulert can monitor your applications for open-source vulnerabilities in real-time using a manifest file like package-lock.json.

Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for wget.

How To Fix

Minimum fixed version

1.17.1-r1

This is the first release that contains the fix.

sudo apk add --upgrade wget

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback