Race Condition Affecting github.com/hashicorp/nomad/client/allocrunner/taskrunner/getter package, versions <1.0.18>=1.1.0-beta1 <1.1.12>=1.2.0-beta1 <1.2.6


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.14% (52nd 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-GOLANG-GITHUBCOMHASHICORPNOMADCLIENTALLOCRUNNERTASKRUNNERGETTER-2400668
  • published13 Feb 2022
  • disclosed13 Feb 2022
  • creditNomad engineering team

Introduced: 13 Feb 2022

CVE-2022-24686  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/nomad/client/allocrunner/taskrunner/getter to version 1.0.18, 1.1.12, 1.2.6 or higher.

Overview

github.com/hashicorp/nomad/client/allocrunner/taskrunner/getter is a simple and flexible workload orchestrator to deploy and manage containers (docker, podman), non-containerized applications (executable, Java), and virtual machines (qemu) across on-prem and clouds at scale.

Nomad is supported on Linux, Windows, and macOS. A commercial version of Nomad, Nomad Enterprise, is also available.

Affected versions of this package are vulnerable to Race Condition due to the usage of the go-getter library to download artifacts, which can be used in a way that is unsafe if shared between goroutines. In such a case a Nomad client agent could download the wrong artifact into the wrong destination.

CVSS Scores

version 3.1