CVE-2022-24686: HashiCorp Nomad Artifact Download Race Condition
Summary
CVE-2022-24686: HashiCorp Nomad Artifact Download Race Condition. Affects github.com/hashicorp/nomad across 3 version ranges.
>= 0.3.0, < 1.0.18
>= 1.1.0, < 1.1.12
>= 1.2.0, < 1.2.6
Fixed in 1.0.18, 1.1.12 or 1.2.6, depending on the release line you run. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
HashiCorp Nomad is an open-source cluster manager and scheduler designed for deploying and managing applications across a distributed infrastructure. It is written in Go and provides a range of features to facilitate efficient workload management. However, Nomad versions 0.3.0 through 1.0.17, 1.1.11, and 1.2.5 are vulnerable to a race condition in the artifact download functionality. This race condition can result in the Nomad client agent downloading the wrong artifact into the wrong destination.
Vulnerability Detail
The race condition in HashiCorp Nomad's artifact download functionality allows for the possibility of incorrect artifact downloads. This means that the Nomad client agent may retrieve and save an artifact to an unintended location, potentially leading to the execution of incorrect or malicious code. The vulnerability has a CVSS score of 5.9, indicating a moderate severity level. It was assigned the CVE identifier CVE-2022-24686 and is classified under CWE-362.
How To Fix
Latest published version: v1.11.3 as of 22 Oct 2026
go get github.com/hashicorp/nomad@v1.11.3
Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.
If you can't move to the latest
The minimum fixed version depends on the release line you run.
-
>= 0.3.0, < 1.0.181.0.18go get github.com/hashicorp/nomad@v1.0.18 -
>= 1.1.0, < 1.1.121.1.12go get github.com/hashicorp/nomad@v1.1.12 -
>= 1.2.0, < 1.2.61.2.6go get github.com/hashicorp/nomad@v1.2.6
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
There is no known workaround for this vulnerability. It is essential to apply the provided fix by upgrading to the patched versions of HashiCorp Nomad.
Conclusion
The race condition vulnerability in HashiCorp Nomad's artifact download functionality can lead to incorrect artifact downloads, potentially resulting in the execution of incorrect or malicious code. It is crucial to upgrade to the latest patched versions of HashiCorp Nomad (1.0.18, 1.1.12, or 1.2.6) to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/hashicorp/nomad →
FAQ
HashiCorp Nomad is an open-source cluster manager and scheduler used for deploying and managing applications across a distributed infrastructure.
Versions 0.3.0 through 1.0.17, 1.1.11, and 1.2.5 of HashiCorp Nomad are affected by this vulnerability.
The vulnerability can result in the Nomad client agent downloading the wrong artifact into the wrong destination, potentially leading to the execution of incorrect or malicious code.
This vulnerability has a CVSS score of 5.9, indicating a moderate severity level.
To fix this vulnerability, it is recommended to upgrade to the latest patched versions of HashiCorp Nomad (1.0.18, 1.1.12, or 1.2.6).
Related vulnerabilities
Recent vulnerabilities recorded for github.com/hashicorp/nomad.