# CVE-2026-126642: Awx: webhook credential assignment omits use_role check, exposing another user's token

- Severity: Medium 6.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-11-12T08:29:21.412Z
- Modified: 2026-11-12T18:17:26.493Z
- Weaknesses: CWE-862
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- ansible-automation-platform-24/controller-rhel8: no versions given
- ansible-automation-platform-25/controller-rhel8: no versions given
- ansible-automation-platform-26/controller-rhel9: no versions given
- ansible-automation-platform-27/controller-rhel9: no versions given
- automation-controller: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2026-126642> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2571729> (issue-tracking)

## Sources

- CVE List: [CVE-2026-126642](https://www.cve.org/CVERecord?id=CVE-2026-126642), CVE Terms of Use, modified 2026-11-12
- NVD: [CVE-2026-126642](https://nvd.nist.gov/vuln/detail/CVE-2026-126642), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-126642 · Whole record: https://cve.day/CVE-2026-126642.json · Rebuilt by cve.day 2026-11-25T22:59:50.504Z
