CVE-2018-20483
set_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.
What to do
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | wget | Fixed | 1.19.4-1ubuntu2.2 | UBUNTU-CVE-2018-20483 |
| Ubuntu 16.04 | wget | Not affected vulnerable_code_not_present | ||
| Debian 14 | wget | Fixed | 1.20.1-1 | DEBIAN-CVE-2018-20483 |
| Debian 13 | wget | Fixed | 1.20.1-1 | DEBIAN-CVE-2018-20483 |
| Debian 12 | wget | Fixed | 1.20.1-1 | DEBIAN-CVE-2018-20483 |
| Red Hat Enterprise Linux 8 | curl | Fixed | 0:7.61.1-11.el8 | RHSA-2019:3701 |
| Red Hat Enterprise Linux 8 | libcurl | Fixed | 0:7.61.1-11.el8 | RHSA-2019:3701 |
| Red Hat Enterprise Linux 8 | libcurl-devel | Fixed | 0:7.61.1-11.el8 | RHSA-2019:3701 |
| Red Hat Enterprise Linux 8 | libcurl-minimal | Fixed | 0:7.61.1-11.el8 | RHSA-2019:3701 |
| Red Hat Enterprise Linux 8 | wget | Not affected | ||
| Red Hat Enterprise Linux 7 | curl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libcurl | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | libcurl-devel | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | wget | Not affected | ||
| Red Hat Enterprise Linux 6 | curl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl | Not affected | ||
| Red Hat Enterprise Linux 6 | libcurl-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | wget | Not affected | ||
| Red Hat Enterprise Linux 5 | curl | Not affected | ||
| Red Hat Enterprise Linux 5 | wget | Not affected | ||
| Alpine Linux 3.24 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.23 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.22 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.21 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.20 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.19 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.18 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.17 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.16 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.15 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.14 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.13 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.12 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.11 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.10 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.9 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.8 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.7 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
| Alpine Linux 3.6 | wget | Fixed | 1.20.1-r0 | ALPINE-CVE-2018-20483 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/201903-08 (vendor-advisory)
- https://usn.ubuntu.com/3943-1/ (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:3701 (vendor-advisory)
References
- https://security.gentoo.org/glsa/201903-08
- http://www.securityfocus.com/bid/106358
- https://twitter.com/marcan42/status/1077676739877232640
- http://git.savannah.gnu.org/cgit/wget.git/tree/NEWS
- https://security.netapp.com/advisory/ntap-20190321-0002/
- https://usn.ubuntu.com/3943-1/
- https://access.redhat.com/errata/RHSA-2019:3701
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.