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
1.41% (87th 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 Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALPINE315-PACMAN-1929940
  • 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.15 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.15 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 Scores

version 3.1