Arbitrary Command Execution Affecting anchorecli package, versions [0.7.0,0.7.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (64th 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 Arbitrary Command Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-ANCHORECLI-6150842
  • published11 Jan 2024
  • disclosed1 Jan 2024
  • creditUnknown

Introduced: 1 Jan 2024

CVE-2020-11075  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade anchorecli to version 0.7.1 or higher.

Overview

anchorecli is an Anchore Service CLI

Affected versions of this package are vulnerable to Arbitrary Command Execution. A specially crafted container image manifest, fetched from a registry, can be used to trigger a shell escape flaw in the anchore engine analyzer service during an image analysis process.

Note:

The image analysis operation can only be executed by an authenticated user via a valid API request to anchore engine, or if an already added image that anchore is monitoring has its manifest altered to exploit the same flaw.

Impact:

A successful attack can be used to execute commands that run in the analyzer environment, with the same permissions as the user that anchore engine is run as - including access to the credentials that Engine uses to access its own database which have read-write ability, as well as access to the running engien analyzer service environment.

By default Anchore Engine is released and deployed as a container where the user is non-root, but if users run Engine directly or explicitly set the user to 'root' then that level of access may be gained in the execution environment where Engine runs.

References

CVSS Scores

version 3.1