CVE-2019-9686
publishedpacman: directory traversal vulnerability in lib/libalpm/dload.c
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.11 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.12 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.13 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.14 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.15 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.16 | pacman | Fixed | 5.1.3-r0 | Package fix record |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.17 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.18 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.19 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.20 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.21 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.22 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.23 | pacman | Fixed | 5.1.3-r0 | Package fix record |
| Alpine Linux | v3.24 | pacman | Fixed | 5.1.3-r0 | Package fix record |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
3Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 646ec5464ce776e2ed3092347bfbeba8f9866775ad90c33a536caebc3ae5eba9
- Ingested
- 23 Sep 2026, 07:47:50 UTC
- Source record
- Official CVE record