# CVE-2019-18182: pacman before 5.2 is vulnerable to arbitrary command injection in conf.c in the downloadwithxfercommand() function.

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.67%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-24T14:38:43.000Z
- Modified: 2026-06-17T02:24:25.473Z
- Weaknesses: CWE-78
- Assigned by: mitre

## Description

pacman before 5.2 is vulnerable to arbitrary command injection in conf.c in the download_with_xfercommand() function. This can be exploited when unsigned databases are used. To exploit the vulnerability, the user must enable a non-default XferCommand and retrieve an attacker-controlled crafted database and package.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- pacman_project pacman: before 5.2
- fedoraproject fedora: 30; 31; 32

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://git.archlinux.org/pacman.git/tree/src/pacman/conf.c?h=v5.1.3#n263> (exploit, third-party-advisory)
- <https://git.archlinux.org/pacman.git/commit/?id=808a4f15ce82d2ed7eeb06de73d0f313620558ee> (patch, third-party-advisory)
- <https://github.com/alpinelinux/alpine-secdb/blob/master/v3.11/community.yaml> (release-notes, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K53C45EDWBU3UCN3IRIGR5EZUNWXS7BW/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2TTUXXUW5OCOASIRMJK4RHEPLEA33Y6C/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KIDJ4XKBZRRVRFFGKUA3ZU6NFIP5JUG3/> (vendor-advisory)

## Sources

- CVE List: [CVE-2019-18182](https://www.cve.org/CVERecord?id=CVE-2019-18182), CVE Terms of Use, modified 2024-08-05
- NVD: [CVE-2019-18182](https://nvd.nist.gov/vuln/detail/CVE-2019-18182), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-18182 · Whole record: https://cve.day/CVE-2019-18182.json · Rebuilt by cve.day 2026-11-25T22:57:49.477Z
