Description
pacman before 5.2 is vulnerable to arbitrary command injection in lib/libalpm/sync.c in the apply_deltas() function. This can be exploited when unsigned databases are used. To exploit the vulnerability, the user must enable the non-default delta feature and retrieve an attacker-controlled crafted database and delta file.
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/lib/libalpm/sync.c?h=v5.1.3#n767
- https://git.archlinux.org/pacman.git/commit/?id=c0e9be7973be6c81b22fde91516fb8991e7bb07b
- 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