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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | pacman | 5.2.0-r0 | — |
| Alpine v3.23 | pacman | 5.2.0-r0 | — |
| Alpine v3.22 | pacman | 5.2.0-r0 | — |
| Alpine v3.21 | pacman | 5.2.0-r0 | — |
| Alpine v3.20 | pacman | 5.2.0-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | pacman | 5.2.0-r0 | — |
| Alpine v3.18 | pacman | 5.2.0-r0 | — |
| Alpine v3.17 | pacman | 5.2.0-r0 | — |
| Alpine v3.16 | pacman | 5.2.0-r0 | — |
| Alpine v3.15 | pacman | 5.2.0-r0 | — |
| Alpine v3.14 | pacman | 5.2.0-r0 | — |
| Alpine v3.13 | pacman | 5.2.0-r0 | — |
| Alpine v3.12 | pacman | 5.2.0-r0 | — |
| Alpine v3.11 | pacman | 5.2.0-r0 | — |
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
- FEDORA-2020-096fbcc91f vendor-advisory
- FEDORA-2020-781d0b2efe vendor-advisory
- FEDORA-2020-419a75aef6 vendor-advisory