Descriptionset_file_metadata in xattr.c in GNU Wget before 1.20.1 stores a file's origin URL in the user.xdg.origin.url metadata attribute of the extended attributes of the downloaded file, which allows local users to obtain sensitive information (e.g., credentials contained in the URL) by reading this attribute, as demonstrated by getfattr. This also applies to Referer information in the user.xdg.referrer.url metadata attribute. According to 2016-07-22 in the Wget ChangeLog, user.xdg.origin.url was partially based on the behavior of fwrite_xattr in tool_xattr.c in curl.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
Debian Bugs917375

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
wget (PTS)jessie (security), jessie1.16-1+deb8u5fixed
stretch (security), stretch1.18-5+deb9u2fixed
buster, sid1.20.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
wgetsourcejessie(not affected)
wgetsourcestretch(not affected)


[stretch] - wget <not-affected> (Vulnerable code introduced in 1.19)
[jessie] - wget <not-affected> (Vulnerable code introduced in 1.19)
Fixed by:
Don't use extended attributes by default:
Introduced by: (v1.19)

Search for package or bug name: Reporting problems