Description
A flaw was found in the AAP Controller's HashiCorp Vault credential plugin. The kubernetes_auth() function in awx_plugins/credentials/hashivault.py reads the controller pod's Kubernetes service account token and sends it to an attacker-controlled URL when a HashiCorp Vault Secret Lookup credential with kubernetes_role authentication is tested. An authenticated attacker with credential-creation privileges can exfiltrate the service account token, gaining Kubernetes API access to the control plane namespaces with full pod CRUD and secret read permissions, including database credentials and the Django SECRET_KEY.
Published: 2026-08-18
Score: 9.6 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability resides in the HashiCorp Vault credential plugin of the Ansible Automation Platform controller. When a kubernetes_role authentication Vault credential is tested, the controller reads the pod’s service account token and inappropriately sends it to an attacker‑controlled URL. This Server Side Request Forgery flaw (CWE‑918) allows an authenticated user with credential‑creation rights to exfiltrate the token. Exfiltrated tokens grant full CRUD permissions on the control‑plane namespaces, including reading pod secrets such as database credentials and the Django SECRET_KEY. Therefore, the flaw can lead to remote code execution or complete compromise of the platform. The impact is direct and critical because the attacker obtains privileged access to the Kubernetes API, enabling arbitrary changes to the automation environment.

Affected Systems

This issue affects Red Hat Ansible Automation Platform version 2, specifically the automation‑controller component’s hashivault credential plugin. All installations of AAP 2 that expose the controller pod in a Kubernetes cluster are potentially vulnerable, regardless of the specific patch level.

Risk and Exploitability

The CVSS score of 9.6 marks the flaw as critical. EPSS is not provided, but the absence of a published exploitation index does not lessen the risk; the vulnerability is easy to exploit for anyone with credential‑creation privileges inside the platform. The flaw is not yet listed in CISA KEV, yet the attack path requires no external resources beyond an attacker‑controlled URL, so the potential for widespread exploitation remains high. The most likely attack vector is an internal or compromised account with the ability to create and test credentials, which is a legitimate privilege in many operational contexts.

Generated by OpenCVE AI on August 18, 2026 at 17:19 UTC.

Remediation

Vendor Workaround

The following practices would help for avoiding exposure and mitigate this flaw: - Restrict network egress from controller pods using Kubernetes NetworkPolicy to prevent outbound connections to untrusted destinations. Only allow connections to known Vault server endpoints. - Review and restrict the RBAC permissions of the automation-controller service account to follow the principle of least privilege. Remove unnecessary secret read access. - In AAP Cloud environments, audit credential-creation activity for suspicious HashiCorp Vault credentials with external or unusual URLs. - Monitor Kubernetes audit logs for unexpected API calls using the automation-controller service account, particularly secret reads and pod operations from EE pods. - Rotate the automation-controller service account token if unauthorized access is suspected. - Consider restricting the "create credential" privilege to only trusted administrators until the fix is available.


OpenCVE Recommended Actions

  • Restrict outbound traffic from controller pods by configuring Kubernetes NetworkPolicy to allow connections only to known Vault server endpoints.
  • Limit the RBAC permissions of the automation‑controller service account to the principle of least privilege, removing unnecessary secret‑read access.
  • Rotate the automation‑controller service account token if unauthorized access is suspected.
  • Reduce the “create credential” privilege to trusted administrators until a fix is available.
  • Audit credential‑creation activity for suspicious HashiCorp Vault credentials with external URLs.
  • Monitor Kubernetes audit logs for unexpected API calls from the automation‑controller service account, especially secret reads and pod operations from EE pods.

Generated by OpenCVE AI on August 18, 2026 at 17:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 16:00:00 +0000

Type Values Removed Values Added
Description A flaw was found in the AAP Controller's HashiCorp Vault credential plugin. The kubernetes_auth() function in awx_plugins/credentials/hashivault.py reads the controller pod's Kubernetes service account token and sends it to an attacker-controlled URL when a HashiCorp Vault Secret Lookup credential with kubernetes_role authentication is tested. An authenticated attacker with credential-creation privileges can exfiltrate the service account token, gaining Kubernetes API access to the control plane namespaces with full pod CRUD and secret read permissions, including database credentials and the Django SECRET_KEY.
Title Automation-controller: automation-controller: kubernetes service account token exfiltration via hashicorp vault credential ssrf
First Time appeared Redhat
Redhat ansible Automation Platform
Weaknesses CWE-918
CPEs cpe:/a:redhat:ansible_automation_platform:2
Vendors & Products Redhat
Redhat ansible Automation Platform
References
Metrics cvssV3_1

{'score': 9.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N'}


Subscriptions

Redhat Ansible Automation Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-08-18T15:50:54.646Z

Reserved: 2026-06-17T20:56:28.490Z

Link: CVE-2026-12564

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T16:17:01.917

Modified: 2026-08-18T16:17:01.917

Link: CVE-2026-12564

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:30:15Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)