CVE-2023-0821: Github.com/hashicorp/nomad Remote Code Execution Vulnerability
MODERATECVE-2023-0821 is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/hashicorp/nomad libraries in the Go ecosystem. The issue involves uncontrolled resource consumption in hashicorp nomad. Remediation is available by upgrading affected packages to version 1.2.16, 1.3.9, 1.4.4.
CVE-2023-0821 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2023-0821
To remediate this vulnerability, upgrade all affected Github.com/hashicorp/nomad dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/hashicorp/nomad to 1.2.16
Upgrade github.com/hashicorp/nomad to 1.3.9
Upgrade github.com/hashicorp/nomad to 1.4.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/hashicorp/nomad
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-0821, inspect your project dependencies for Github.com/hashicorp/nomad:
inspect dependencies for github.com/hashicorp/nomad
Analyze the terminal output to locate any version of Github.com/hashicorp/nomad in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.16), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/hashicorp/nomad, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-0821 Affected Github.com/hashicorp/nomad Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/hashicorp/nomad
|
Go |
≥ 1.2.15
< 1.2.16
|
1.2.16
|
|
github.com/hashicorp/nomad
|
Go |
≥ 1.3.0
< 1.3.9
|
1.3.9
|
|
github.com/hashicorp/nomad
|
Go |
≥ 1.4.0
< 1.4.4
|
1.4.4
|
References
Frequently Asked Questions
What is CVE-2023-0821?
Which Github.com/hashicorp/nomad versions are affected?
What version fixes CVE-2023-0821?
Is github.com/hashicorp/nomad affected?
What is the CVSS score of CVE-2023-0821?
What CWE is associated with CVE-2023-0821?
How can I check Go dependencies for CVE-2023-0821?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w479-w22g-cffh",
"modified" : "2023-02-28T00:05:48Z",
"published" : "2023-02-17T00:30:28Z",
"aliases" : [ "CVE-2023-0821" ],
"summary" : "Uncontrolled Resource Consumption in Hashicorp Nomad",
"details" : "HashiCorp Nomad and Nomad Enterprise 1.2.15 up to 1.3.8, and 1.4.3 jobs using a maliciously compressed artifact stanza source can cause excessive disk usage. Fixed in 1.2.16, 1.3.9, and 1.4.4.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/nomad"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.2.15"
}, {
"fixed" : "1.2.16"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/nomad"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.0"
}, {
"fixed" : "1.3.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/nomad"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4.0"
}, {
"fixed" : "1.4.4"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-0821"
}, {
"type" : "WEB",
"url" : "https://discuss.hashicorp.com/t/hcsec-2023-05-nomad-client-vulnerable-to-decompression-bombs-in-artifact-block/50292"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-02-17T14:00:26Z",
"nvd_published_at" : "2023-02-16T22:15:00Z"
}
}