Improper Control of Generation of Code ('Code Injection') Affecting github.com/moby/moby/pkg/chrootarchive package, versions <20.10.0-beta1


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
2.16% (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 Learn

Learn about Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMMOBYMOBYPKGCHROOTARCHIVE-6226525
  • published2 Feb 2024
  • disclosed24 May 2022
  • creditUnknown

Introduced: 24 May 2022

CVE-2019-14271  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade github.com/moby/moby/pkg/chrootarchive to version 20.10.0-beta1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') via the nsswitch facility which dynamically loads a library inside a chroot that contains the contents of the container. An attacker can inject code and execute arbitrary commands by exploiting the way libraries are loaded.

CVSS Scores

version 3.1