CVE-2022-3866: Github.com/hashicorp/nomad HashiCorp Nomad Vulnerable To Non-sensitive Vulnerability
MODERATECVE-2022-3866 is a MODERATE (CVSS 5.0) hashicorp nomad vulnerable to non-sensitive vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Github.com/hashicorp/nomad libraries in the Go ecosystem. The issue involves hashicorp nomad vulnerable to non-sensitive metadata exposure. Remediation is available by upgrading affected packages to version 1.4.2.
CVE-2022-3866 at a Glance
Security Impact
CVSS: 5.0
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:C/C:L/I:N/A:N).
How to Fix CVE-2022-3866
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.4.2
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-2022-3866, 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.4.2), 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-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the 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-2022-3866 Affected Github.com/hashicorp/nomad Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/hashicorp/nomad
|
Go |
≥ 1.4.0
< 1.4.2
|
1.4.2
|
References
Frequently Asked Questions
What is CVE-2022-3866?
Which Github.com/hashicorp/nomad versions are affected?
What version fixes CVE-2022-3866?
Is github.com/hashicorp/nomad affected?
What is the CVSS score of CVE-2022-3866?
What CWE is associated with CVE-2022-3866?
How can I check Go dependencies for CVE-2022-3866?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7wg4-8m5p-hrfg",
"modified" : "2023-05-22T18:33:41Z",
"published" : "2022-11-10T12:01:03Z",
"aliases" : [ "CVE-2022-3866" ],
"summary" : "HashiCorp Nomad vulnerable to non-sensitive metadata exposure",
"details" : "HashiCorp Nomad and Nomad Enterprise 1.4.0 up to 1.4.1 workload identity token can list non-sensitive metadata for paths under `nomad/` that belong to other jobs in the same namespace. Fixed in 1.4.2.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/hashicorp/nomad"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.4.0"
}, {
"fixed" : "1.4.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-3866"
}, {
"type" : "WEB",
"url" : "https://github.com/hashicorp/nomad/commit/3b24f26603e2b116ba324101afa8a7e3a7a769a5"
}, {
"type" : "WEB",
"url" : "https://discuss.hashicorp.com/t/hcsec-2022-25-nomad-s-workload-identity-token-can-list-non-sensitive-metadata-for-nomad-paths/46167"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/hashicorp/nomad"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-668" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-10T23:51:44Z",
"nvd_published_at" : "2022-11-10T06:15:00Z"
}
}