OS Command Injection Affecting pacman package, versions <5.2.0-r0


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
3.67% (89th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE313-PACMAN-1069078
  • published4 Feb 2020
  • disclosed24 Feb 2020

Introduced: 4 Feb 2020

CVE-2019-18182  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Alpine:3.13 pacman to version 5.2.0-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pacman package and not the pacman package as distributed by Alpine. See How to fix? for Alpine:3.13 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1