Nomad Job Submitter Privilege Escalation Using Workload Identity
High8.8CVE-2023-1299 · Published Mar 14, 2023 · updated Aug 20, 2024
### Summary A vulnerability was identified in Nomad and Nomad Enterprise (“Nomad”) such that a user with the submit-job ACL capability can submit a job that can escalate to management-level privileges. This vulnerability, CVE-2023-1299, was introduced in Nomad 1.5.0 and fixed in Nomad 1.5.1. ### Background Nomad 1.4.0 introduced the concept of workload identity so that tasks can access variables without needing to access them through Nomad HTTP API with an ACL token. In 1.5.0, the identity block was introduced, which exposes the workload identity token to the workload so it can access Nomad HTTP API via a unix domain socket without configuring mTLS. ### Details During internal testing, we discovered it was possible to abuse the workload identity to elevate to management-level privilege if the workload identity did not have any attached ACL policies. ### Remediation Customers should evaluate the risk associated with this issue and consider upgrading to Nomad 1.5.1 or newer. See Nomad’s Upgrading for general guidance on this process.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| github.com/hashicorp/nomad Go | >= 1.5.0, < 1.5.1 | 1.5.1 |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Also known as
- CVE-2023-1299, GO-2023-1633
More Nomad advisories
All Nomad| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jul 202023 | Nomad ACL Policies without Label are Applied to Unexpected Resources | Medium4.1 | 1.4.11+1 more |
| Jul 62023 | Hashicorp Nomad ACLs Cannot Deny Access to Workload’s Own Variables | Medium5.3 | 1.4.6+1 more |
| Apr 52023 | HashiCorp Nomad vulnerable to unauthenticated client agent HTTP request privilege escalation | High8.8 | 1.5.3 |
| Feb 172023 | Uncontrolled Resource Consumption in Hashicorp Nomad | Medium6.5 | 1.2.16+2 more |
| Nov 102022 | HashiCorp Nomad vulnerable to non-sensitive metadata exposure | Medium5.0 | 1.4.2 |
| Nov 102022 | HashiCorp Nomad vulnerable to Insufficient Session Expiration | Low2.7 | 1.4.2 |