CVE-2026-126642
Last modified
CVE-2026-126642 is a medium-severity vulnerability rated 6.5/10 on the CVSS scale. 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. EPSS estimates a 0.28% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Ansible Automation Platform 2 | All versions |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-126642?
How severe is CVE-2026-126642?
How do I fix CVE-2026-126642?
How Strix Helps
- Uncovering a hidden BOLA in Appsmith's snapshot logicStrix autonomously discovered a BOLA/IDOR vulnerability in Appsmith's snapshot deletion path.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-126625Incorrect default permissions in the Windows installer of Pr…6.7
- CVE-2026-126626The web services listener of Progressive Robot hMailServer 6…5.3
- CVE-2026-126627Creation of Temporary File With Insecure Permissions vulnera…
- CVE-2026-12663A security issue exists within ControlFLASH™, where the inst…7
- CVE-2026-12664GitLab has remediated an issue in GitLab CE/EE affecting all…6.8
- CVE-2026-126641A host key verification flaw was found in ansible-pylibssh a…6.5
- CVE-2026-126643A cleartext storage flaw was found in the AAP Gateway Operat…6.5
- CVE-2026-126644A link-following flaw was found in the authorized_key module…3.9
- CVE-2026-12665IBM MQ could allow a remote attacker to execute arbitrary co…9.8
- CVE-2026-126658ByteStash 1.5.10 before 1.6.2 contains an insufficient sessi…5.4
- CVE-2026-126659BlueprintUE Self-Hosted Edition 1.0.0 before 4.3.5 contains …7.5
- CVE-2026-12666IBM MQ 9.1.0.0 through 9.1.0.37 LTS, 9.2.0.0 through 9.2.0.4…8.1
Are you affected by CVE-2026-126642?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
