CVEfocus › CVE database › CVE-2026-126642

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

CVSS 6.5 MediumEPSS 0.4% (higher than 24% of CVEs)Published 2026-11-12Updated 2026-11-12Assigner: redhat

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.

CWE-862

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

7Fix pending
5Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ansibleFix pendingUBUNTU-CVE-2026-126642
Ubuntu 26.10ansible-coreFix pendingUBUNTU-CVE-2026-126642
Ubuntu 26.04ansibleUnder investigationUBUNTU-CVE-2026-126642
Ubuntu 26.04ansible-coreUnder investigationUBUNTU-CVE-2026-126642
Ubuntu 24.04ansibleUnder investigationUBUNTU-CVE-2026-126642
Ubuntu 24.04ansible-coreUnder investigationUBUNTU-CVE-2026-126642
Ubuntu 22.04ansibleFix pendingUBUNTU-CVE-2026-126642
Ubuntu 22.04ansible-coreUnder investigationUBUNTU-CVE-2026-126642
Ubuntu 20.04ansibleFix pendingUBUNTU-CVE-2026-126642
Ubuntu 18.04ansibleFix pendingUBUNTU-CVE-2026-126642
Ubuntu 16.04ansibleFix pendingUBUNTU-CVE-2026-126642
Ubuntu 14.04ansibleFix pendingUBUNTU-CVE-2026-126642

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Grant the Job Template and Workflow Job Template administrator role only to trusted users, and avoid storing webhook token credentials in organizations where untrusted users hold template-admin rights. There is no complete configuration-only mitigation; apply the fix when it becomes available.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.