CVE-2026-126642 — Red Hat Ansible Automation Platform 2
One of 5 Red Hat Ansible Automation Platform 2 vulnerabilities published together by NVD: our article covers all of them.
LinuxDevOps / CIOperating systemsVulnerabilitiesSummary
An incorrect authorization flaw was found in AWX, the automation controller component of Red Hat Ansible Automation Platform. The API access classes for JobTemplate and WorkflowJobTemplate do not check the caller's Credential use_role when assigning the single-valued webhook_credential foreign key: JobTemplateAccess.can_add/can_change and WorkflowJobTemplateAccess.can_change in awx/main/access.py omit the check_related('webhook_credential', Credential, ..., role_field='use_role') call that UnifiedCredentialsMixin.can_attach performs for the normal many-to-many credentials relationship, and the serializer validates only the credential's type and namespace. A user who may administer their own job template (or workflow job template) and use its project and inventory can therefore attach a webhook token credential (for example a GitLab token) that they do not have use permission on. The template administrator can retrieve the template's webhook key; a subsequent webhook event causes AWX to decrypt the attached token and send it in the request header (for GitLab, PRIVATE-TOKEN) to a status URL derived from the event payload, disclosing the victim's token to a destination the attacker can influence. This may disclose another user's personal access token and allow whatever actions that token permits.
Severity breakdown
Medium · 6.5
An attacker with a normal user account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- yes, a normal user account
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, none on integrity and availability
Weakness
- CWE-862: Missing Authorization
References by type
Other references
Affected
- Red Hat Ansible Automation Platform 2
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-126642?
An incorrect authorization flaw was found in AWX, the automation controller component of Red Hat Ansible Automation Platform. The API access classes for JobTemplate and WorkflowJobTemplate do not check the caller's Credential userole when assigning the single-valued webhookcredential foreign key: JobTemplateAccess.canadd/canchange and WorkflowJobTemplateAccess.canchange in awx/main/access.py omit the… Weakness type: Missing Authorization (CWE-862).
How severe is CVE-2026-126642?
CVE-2026-126642 has a CVSS 3.1 base score of 6.5 (medium), from the CNA (redhat.com). An attacker with a normal user account can exploit this over the network, without any user action.
Is CVE-2026-126642 being exploited?
Not as far as is known: CVE-2026-126642 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.4% chance that it is exploited in the next 30 days.
How do I fix CVE-2026-126642?
Follow the advisories and patches linked on this page under References for fixed versions and workarounds.
Timeline & sources
References
Related vulnerabilities & news
- CVE-2026-137941 — Red Hat Enterprise Linux 6
- CVE-2026-137974 — Red Hat Fast Datapath for RHEL 10
- 12-Year-Old Linux Kernel NFS Flaw Allows Unauthenticated Root Takeover
- Privilege Escalation Vulnerability in Linux-PAM Due to Misconfigured Vendor Directories
- CERT-In Rates Linux KVM Memory Flaw High, Warns Guest Users Could Reach Host Memory