CVEfocus › CVE database › CVE-2019-9686

CVE-2019-9686

CVSS 8.8 HighEPSS 3.4% (higher than 89% of CVEs)Published 2019-03-11Updated 2024-08-04Assigner: mitre

pacman before 5.1.3 allows directory traversal when installing a remote package via a specified URL "pacman -U <url>" due to an unsanitized file name received from a Content-Disposition header. pacman renames the downloaded package file to match the name given in this header. However, pacman did not sanitize this name, which may contain slashes, before calling rename(). A malicious server (or a network MitM if downloading over HTTP) can send a Content-Disposition header to make pacman place the file anywhere in the filesystem, potentially leading to arbitrary root code execution. Notably, this bypasses pacman's package signature checking. This occurs in curl_download_internal in lib/libalpm/dload.c.

What to do

Fixed builds are available from Alpine: 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

14Fixed

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.

ReleasePackageStatusFixed versionAdvisory
Alpine Linux 3.24pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.23pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.22pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.21pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.20pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.19pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.18pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.17pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.16pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.15pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.14pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.13pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.12pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686
Alpine Linux 3.11pacmanFixed5.1.3-r0ALPINE-CVE-2019-9686

References

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.