Improper Input Validation Affecting github.com/hashicorp/nomad/jobspec2 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.34% (72nd 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-GITHUBCOMHASHICORPNOMADJOBSPEC2-2400726
  • 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/jobspec2 to version 1.0.17, 1.1.12, 1.2.6 or higher.

Overview

github.com/hashicorp/nomad/jobspec2 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 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