pacman before 5.1.3 allows directory traversal when installing a remote package via a…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:pacman_project:pacman:*:*:*:*:*:*:*:* | before 5.1.3 | Vulnerable | Pacman Project |
- cpe:2.3:a:pacman_project:pacman:*:*:*:*:*:*:*:* Versions before 5.1.3 Vulnerable ·Pacman Project
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2019-9686
- 2026-10-03 Alias added: GHSA-2fr8-9j8m-w8vx
References
More Pacman Project Pacman vulnerabilities
- TI-2019-13205 pacman before 5.2 is vulnerable to arbitrary command injection in lib/libalpm/sync.c in… CVSS 3.1CRITICAL 9.8
- TI-2019-13204 pacman before 5.2 is vulnerable to arbitrary command injection in conf.c in the… CVSS 3.1CRITICAL 9.8
- TI-2016-04709 libalpm, as used in pacman 5.0.1, allows remote attackers to cause a denial of service… CVSS 3.0MEDIUM 5.5
Sources
- CVE-2019-9686 · CVE Program
- CVE-2019-9686 · NVD
- FIRST EPSS
- GHSA-2fr8-9j8m-w8vx · GitHub Advisory Database · CC BY 4.0
- CVE-2019-9686 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences