Improper Input Validation Affecting github.com/hashicorp/nomad/command/agent package, versions >=1.0.0-beta2 <1.0.17>=1.1.0-beta1 <1.1.12>=1.2.0-beta1 <1.2.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.55% (73rd 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-GITHUBCOMHASHICORPNOMADCOMMANDAGENT-2400725
  • published14 Feb 2022
  • disclosed14 Feb 2022
  • creditUnknown

Introduced: 14 Feb 2022

CVE-2022-24685  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/nomad/command/agent to version 1.0.17, 1.1.12, 1.2.6 or higher.

Overview

github.com/hashicorp/nomad/command/agent is a package part of hashicorp's nomad.

Affected versions of this package are vulnerable to Improper Input Validation due to insufficient validation of user-supplied input within the HCL configuration, which allows anyone with access to Nomad’s API to submit HCL formatted jobs for parsing to return the equivalent JSON. This endpoint allowed a malformed HCL configuration to be evaluated, resulting in excessive CPU usage on Nomad server agents.

CVSS Base Scores

version 3.1