Skip to main content

ansible-core CVE-2026-123037

| EUVDEUVD-2026-117890 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-11-06 redhat GHSA-cvj4-ggf5-jg54
6.7
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain unprivileged local account on managed node
  2. Delivery
    Replace ~/.ssh with symlink to /etc/cron.daily
  3. Exploit
    Operator runs user module with generate_ssh_key
  4. Execution
    Privileged module writes key pair through symlink as root
  5. Persist
    Scheduler/MOTD executes attacker-controlled file
  6. Impact
    Escalate to root on managed node

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires: (1) an existing unprivileged local account on the managed node (PR:L); (2) an administrator/automation running the ansible-core user module with the generate_ssh_key option enabled against that account (the UI:R / operator-triggered action); and (3) the attacker having pre-replaced that user's ~/.ssh with a symlink pointing to a root-writable directory that is processed by a privileged scheduler or dynamic MOTD, e.g. /etc/cron.daily or /etc/update-motd.d. The flaw is that ssh_key_gen() guards the key files against symlinks but validates the ~/.ssh directory only with os.path.exists(), so the privileged module writes the generated key pair through the symlink and chowns both files to the user. Limiting factors that reduce real-world risk: it is not remotely exploitable (AV:L, local account needed), it depends on a non-default module configuration (generate_ssh_key enabled), it depends on a privileged operator actually running that module against the attacker-controlled account (UI:R), and conditions are partly outside the attacker's control (AC:H).

Impact

The signals are consistent and point to a real but conditional local privilege-escalation issue rather than a mass-exploitation emergency. The supplied CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:R, 6.7 Medium) describes a locally-exploitable flaw that requires an existing unprivileged account on the managed node (PR:L), a separate privileged action by an operator (UI:R), and conditions outside the attacker's direct control (AC:H), but it yields full root compromise (C:H/I:H/A:H). The vuln.today Decision label is 'this_month' - a near-term but non-emergency priority - which aligns with the Medium CVSS and the absence of urgent exploitation signals. No EPSS score is provided and the CVE is not listed in CISA KEV, so there is no confirmed active exploitation. The two references are a Red Hat advisory page and a Red Hat Bugzilla entry; neither is verified working exploit code, so no public exploit is identified. Noteworthy is that this is explicitly an incomplete fix of CVE-2024-9902 (the earlier symlink guard checked key files but validated the ~/.ssh directory only with os.path.exists()), which modestly raises the likelihood that exploitation technique details are already understood by researchers. Net: a legitimate root-escalation risk worth patching this month, gated by local access and operator-triggered conditions rather than a widespread remote threat.

Exploit ScenarioDerived

An unprivileged user on an Ansible-managed node replaces their ~/.ssh with a symlink pointing at a root-writable scheduler directory such as /etc/cron.daily or /etc/update-motd.d. When an administrator later runs the ansible-core user module with generate_ssh_key enabled against that account, the privileged module follows the symlink, writes the generated key pair into that directory, and chowns the files to the user, letting the attacker control a file executed as root. No public, verified exploit code is identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Local privilege escalation in ansible-core’s user module allows an unprivileged account on a managed node to obtain root-level file writes when an administrator runs the module with generate_ssh_key enabled against that account. This is an incomplete fix of CVE-2024-9902: User.ssh_key_gen() guards the key files against symlinks but checks ~/.ssh only with os.path.exists(), so a user who replaces ~/.ssh with a symlink to a root-writable directory such as /etc/cron.daily or /etc/update-motd.d can have the generated key pair written through the link and chowned to them, enabling escalation via files processed by privileged schedulers or dynamic MOTD. Exploitation requires a local authenticated account (PR:L), operator-triggered module execution (UI:R), and specific preconditions (AC:H); no public exploit was identified at time of analysis, and CVSS 3.1 score is 6.7.

RemediationAI

No vendor-released patch or fixed version is identified in the supplied data; check the Red Hat advisory https://access.redhat.com/security/cve/CVE-2026-123037 and Bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=2567189 for updated ansible-core / Ansible Automation Platform packages. Until fixed packages are available, disable the non-default generate_ssh_key option in user-module tasks (trade-off: accounts no longer receive automatically generated SSH keys). If generate_ssh_key must be used, verify immediately before execution that the target user’s ~/.ssh is a real directory and not a symlink, avoid running the privileged user module with key generation against accounts whose home directories are attacker-controlled, and remove or block symlinks from user home directories to privileged scheduler or MOTD paths such as /etc/cron.daily and /etc/update-motd.d; these checks reduce exposure but do not replace a vendor fix.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-59 (Improper Link Resolution Before File Access) in the ansible-core user module’s SSH key generation path. The module runs with elevated privileges on the managed node to manage local accounts; when generate_ssh_key is enabled, User.ssh_key_gen() creates a key pair in the target user’s ~/.ssh. The fix for CVE-2024-9902 added symlink protections for the key files themselves but left the directory check as os.path.exists(), which follows symlinks and returns true for a symlinked ~/.ssh. An attacker with an existing local account can pre-position ~/.ssh as a symlink to a root-writable directory that is consumed by a privileged process, such as /etc/cron.daily or /etc/update-motd.d; the privileged module then writes the generated key files through that link and chowns them to the unprivileged user, placing user-controlled files in a privileged execution path. The supplied CPE data identifies Red Hat Ansible Automation Platform 2 components with wildcard versions, so no specific affected version range is stated in the input; the flaw is not remotely reachable (AV:L) and depends on the non-default generate_ssh_key option.

Know when Red Hat Ansible Automation Platform 2 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 6.7 MEDIUM
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 6.7 MEDIUM

Local account required (AV:L, PR:L); success depends on an operator running the module with generate_ssh_key against the planted symlink (UI:R, AC:H); outcome is full root compromise (C:H/I:H/A:H).

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.7 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

A flaw was found in the ansible-core user module. When generate_ssh_key is enabled, User.ssh_key_gen() guards the key files against symlinks but checks the ~/.ssh directory only with os.path.exists(). An unprivileged user on a managed node who replaces their ~/.ssh with a symlink to an existing root-writable directory causes the privileged module to write the generated key pair through the symlink and then chown both files to that user. Because such files can be dropped into directories processed by schedulers (e.g. /etc/cron.daily) or dynamic MOTD (/etc/update-motd.d), the user can escalate to root on the managed node. This is an incomplete fix of CVE-2024-9902.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
High
ansible-core is widely deployed enterprise configuration-management software
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Total

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Affected Products (CPE)CVE.org

cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_ansible_automation_platform_2:*:*:*:*:*:*:*:*
+ 36 more
CVE-2026-84474 CRITICAL
9.9 Sep 23

Privilege escalation and remote code execution on managed hosts is possible in Red Hat Ansible Automation Platform 2 bec

CVE-2026-84502 CRITICAL
9.9 Sep 23

Authenticated users who hold permission to create or modify a project within a single organization can execute arbitrary

CVE-2026-84719 CRITICAL
9.9 Sep 23

Missing authorization checks in the Red Hat Ansible Automation Platform 2 automation-controller allow an authenticated o

CVE-2026-11807 CRITICAL
9.6 Jun 23

Credential disclosure in Red Hat Ansible Automation Platform 2.5 and 2.6 allows any authenticated user to retrieve plain

CVE-2026-12564 CRITICAL
9.6 Aug 18

Server-side request forgery in the Red Hat Ansible Automation Platform 2 Controller's HashiCorp Vault credential plugin

CVE-2026-75884 CRITICAL
9.1 Sep 23

Privilege escalation in Red Hat Ansible Automation Platform 2 (built on the AWX upstream project) lets an authenticated

CVE-2026-12701 CRITICAL
9.0 Jul 20

Arbitrary file write in pulpcore's FilesystemExport feature allows an authenticated administrator to escape the intended

CVE-2026-89091 HIGH
8.8 Oct 08

Symlink-following file overwrite on the Ansible control node is possible in ansible-core when a user runs `ansible-galax

CVE-2026-84683 HIGH
8.7 Sep 23

Stored cross-site scripting in the automation-controller component of Red Hat Ansible Automation Platform 2 lets an auth

CVE-2026-84691 HIGH
8.7 Sep 23

An authenticated automation-controller administrator in Red Hat Ansible Automation Platform 2 can turn the administrator

CVE-2026-92982 HIGH
8.5 Oct 15

Jinja2 template injection in Ansible Operator Plugins (CWE-1336) lets an authenticated Kubernetes user who can create or

CVE-2026-76648 HIGH
8.5 Sep 23

Missing object-level authorization in the JobTemplate copy endpoint (CopyAPIView) of AWX and Red Hat Ansible Automation

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy