Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2023-1782 Nomad Unauthenticated Client Agent HTTP Request Privilege Escalation #16775

Closed
tgross opened this issue Apr 3, 2023 · 0 comments

Comments

@tgross
Copy link
Member

tgross commented Apr 3, 2023

A vulnerability was identified in Nomad and Nomad Enterprise (“Nomad”) such that an unauthenticated request sent to a client agent’s HTTP endpoint bypasses intended ACL authorizations when processed on server through internal RPCs. In doing so, unauthenticated HTTP requests can be used to submit a job to the cluster if there is no mTLS enabled. This vulnerability, CVE-2023-1782, affects Nomad from 1.5.0 up to 1.5.2 and was fixed in 1.5.3.

Background:

Nomad server and client agents provide HTTP and RPC endpoints (ports 4646 and 4647 respectively). The RPC endpoints are exclusively used for internal Nomad communication and are secured using mTLS. The HTTP endpoints are used both internally by Nomad, and externally by administrators or operators to interact with the cluster, and are also secured using mTLS.

Details:

Automated tooling by our security team identified it was possible to bypass ACL restrictions when submitting unauthenticated requests to a Nomad client agent’s HTTP endpoint. This behavior may be used by a malicious operator or third party with access to this endpoint.

Nomad administrators should always use mTLS for HTTP and RPC endpoints. More requirements and recommendations for a secure Nomad deployment can be found in the security model.

Remediation:

Customers should evaluate the risk associated with this issue and consider upgrading to Nomad 1.5.3, or newer.

See Nomad’s Upgrading for general guidance on this process.

@tgross tgross added the type/bug label Apr 3, 2023
@tgross tgross changed the title (placeholder) CVE-2023-1782 Nomad Unauthenticated Client Agent HTTP Request Privilege Escalation Apr 5, 2023
@tgross tgross closed this as completed Apr 5, 2023
@tgross tgross added this to the 1.5.3 milestone Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant