{"id":"CVE-2019-9686","aliases":[],"kind":"cve","tier":"cold","status":"published","title":"pacman before 5.1.3 allows directory traversal when installing a remote package via a specified URL \"pacman -U <url>\" d…","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.","ai_summary":null,"severity":"high","cvss":{"score":8.8,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"NVD"},"scores":[{"score":8.8,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"nvd"},{"score":9.3,"version":"2.0","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","source":"nvd"}],"cwe":["CWE-22"],"remote":true,"remote_unauth":true,"epss":{"score":0.0338,"percentile":0.89146,"date":"2026-12-03"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"https://git.archlinux.org/pacman.git/commit/?id=d197d8ab82cf10650487518fb968067897a12775","kind":"patch"},{"url":"https://git.archlinux.org/pacman.git/commit/?id=9702703633bec2c007730006de2aeec8587dfc84","kind":"patch"},{"url":"https://git.archlinux.org/pacman.git/commit/?h=release/5.1.x&id=1bf767234363f7ad5933af3f7ce267c123017bde","kind":"other"}],"workarounds":null,"vendors":["pacman_project"],"products":["pacman"],"cpes":["cpe:2.3:a:pacman_project:pacman:*:*:*:*:*:*:*:*"],"published_at":"2019-03-11T16:00:00.000Z","modified_at":"2026-06-17T02:44:10.697Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-9686"}],"links":{"html":"https://flawdb.com/CVE-2019-9686","markdown":"https://flawdb.com/CVE-2019-9686.md","json":"https://flawdb.com/api/v1/entries/CVE-2019-9686"}}