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 made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (77th 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 Input Validation vulnerabilities in an interactive lesson.

Start learning
  • 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 Scores

version 3.1