Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain unprivileged local account on managed node
-
DeliveryReplace ~/.ssh with symlink to /etc/cron.daily
-
ExploitOperator runs user module with generate_ssh_key
-
ExecutionPrivileged module writes key pair through symlink as root
-
PersistScheduler/MOTD executes attacker-controlled file
-
ImpactEscalate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
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).
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
Privilege escalation and remote code execution on managed hosts is possible in Red Hat Ansible Automation Platform 2 bec
Authenticated users who hold permission to create or modify a project within a single organization can execute arbitrary
Missing authorization checks in the Red Hat Ansible Automation Platform 2 automation-controller allow an authenticated o
Credential disclosure in Red Hat Ansible Automation Platform 2.5 and 2.6 allows any authenticated user to retrieve plain
Server-side request forgery in the Red Hat Ansible Automation Platform 2 Controller's HashiCorp Vault credential plugin
Privilege escalation in Red Hat Ansible Automation Platform 2 (built on the AWX upstream project) lets an authenticated
Arbitrary file write in pulpcore's FilesystemExport feature allows an authenticated administrator to escape the intended
Symlink-following file overwrite on the Ansible control node is possible in ansible-core when a user runs `ansible-galax
Stored cross-site scripting in the automation-controller component of Red Hat Ansible Automation Platform 2 lets an auth
An authenticated automation-controller administrator in Red Hat Ansible Automation Platform 2 can turn the administrator
Jinja2 template injection in Ansible Operator Plugins (CWE-1336) lets an authenticated Kubernetes user who can create or
Missing object-level authorization in the JobTemplate copy endpoint (CopyAPIView) of AWX and Red Hat Ansible Automation
EUVD-2026-117890
GHSA-cvj4-ggf5-jg54
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB