{"id":"CVE-2026-123037","published":"2026-11-06T05:38:54Z","modified":"2026-11-06T18:36:44Z","title":"Ansible-core: user module generate_ssh_key follows a symlinked ~/.ssh enabling local privilege escalation (incomplete…","vendor":"Red Hat","product":"Migration Toolkit for Applications 8","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00141,"percentile":0.03388,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-123037","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2567189","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":0.68},{"name":"CVSS severity","points":4.69}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Migration Toolkit for Applications 8","versions":["all versions"]},{"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","versions":["all versions"]},{"vendor":"Red Hat","product":"Migration Toolkit for Virtualization","versions":["all versions"]},{"vendor":"Red Hat","product":"OpenShift Service Mesh 3","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","versions":["all versions"]}],"workarounds":{"items":["Do not use generate_ssh_key: yes against accounts whose home directory is controlled by an untrusted user; pre-create ~/.ssh as a real directory owned appropriately before running the module, or generate the key as the target account itself (dropping to its uid/gid) rather than as root."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-06T17:36:34.746138Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-117890","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-ansible-automation-platform-exec-cve-2024-9902","parents":[{"from":"CVE-2024-9902","to":"CVE-2026-123037","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is an incomplete fix of CVE-2024-9902.","from":"CVE.org","in":"CVE-2026-123037"}]}]}}