CVE-2026-123037
Ansible-core: user module generate_ssh_key follows a symlinked ~/.ssh enabling local privilege escalation (incomplete fix of cve-2024-9902)
Check your servers for CVE-2026-123037
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-123037 affects ansible-core, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.61% of all scored CVEs. Scores of 2 Dec 2026.
The assessment of CISA (SSVC, 6 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-59 Improper Link Resolution Before File Access
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Migration Toolkit for Applications 8
package
mta/mta-rhel9-operator |
affected the record does not list versions
|
|
Migration Toolkit for Virtualization
package
migration-toolkit-virtualization/mtv-rhel9-operator |
affected the record does not list versions
|
|
Migration Toolkit for Virtualization
package
mtv-candidate/mtv-rhel9-operator |
affected the record does not list versions
|
|
OpenShift Service Mesh 3
package
openshift-service-mesh/kiali-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Advanced Cluster Management for Kubernetes 2
package
rhacm2/volsync-operator-bundle |
affected the record does not list versions
|
|
Red Hat Advanced Cluster Management for Kubernetes 2
package
rhacm2/volsync-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-24/hub-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-24/lightspeed-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/controller-rhel8-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/de-minimal-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/de-supported-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/eda-controller-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/eda-controller-rhel8-operator |
unaffected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/ee-minimal-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/ee-minimal-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/ee-supported-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/ee-supported-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/gateway-rhel8-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/hub-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/hub-rhel8-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/lightspeed-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/lightspeed-rhel8-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/platform-resource-rhel8-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-25/platform-resource-runner-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/controller-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/de-minimal-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/de-supported-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/eda-controller-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/eda-controller-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/ee-minimal-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/ee-supported-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/gateway-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/hub-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/hub-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/lightspeed-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/lightspeed-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/platform-resource-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-26/platform-resource-runner-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/aap-cloud-billing-operator-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/controller-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/de-minimal-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/de-supported-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/eda-controller-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/eda-controller-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/ee-minimal-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/ee-supported-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/gateway-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/hub-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/hub-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/lightspeed-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/lightspeed-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/metrics-service-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/platform-resource-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-27/platform-resource-runner-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-tech-preview/ansible-devspaces-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-automation-platform-tech-preview/metrics-service-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform 2
package
ansible-core |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform Ansible Core 2
package
ansible-automation-platform/ee-minimal-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform Ansible Core 2
package
ansible-automation-platform/ee-minimal-rhel9 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform Ansible Core 2
package
ansible-automation-platform-tech-preview/ee-minimal-rhel8 |
affected the record does not list versions
|
|
Red Hat Ansible Automation Platform Ansible Core 2
package
ansible-automation-platform-tech-preview/ee-minimal-rhel9 |
affected the record does not list versions
|
|
Red Hat Discovery 2
package
discovery/discovery-server-rhel9 |
affected the record does not list versions
|
|
Red Hat Enterprise Linux 10
package
ansible-core |
affected the record does not list versions
|
|
Red Hat Enterprise Linux 8
package
ansible-core |
affected the record does not list versions
|
|
Red Hat Enterprise Linux 9
package
ansible-core |
affected the record does not list versions
|
|
Red Hat OpenShift Container Platform 4
package
openshift4/ose-ansible-rhel9-operator |
affected the record does not list versions
|
|
Red Hat OpenShift Container Platform 5
package
openshift5/ose-ansible-rhel9-operator |
affected the record does not list versions
|
|
Red Hat Satellite 6
package
ansible-core |
affected the record does not list versions
|
|
Self-service automation portal 2
package
ansible-automation-platform/bootc-automation-portal-rhel9 |
affected the record does not list versions
|
|
Service Telemetry Framework 1.5
package
stf/service-telemetry-rhel9-operator |
affected the record does not list versions
|
|
Service Telemetry Framework 1.5
package
stf/smart-gateway-rhel9-operator |
affected the record does not list versions
|
Is my server affected?
Find the installed version of ansible-core and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i ansible-core
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-123037 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-123037RHEL, Rocky, Alma, Fedora
rpm -q ansible-core
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-123037Alpine
apk list --installed | grep -i ansible-coreWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-123037
trivy image --scanners vuln IMAGE | grep CVE-2026-123037
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://access.redhat.com/security/cve/CVE-2026-123037 access.redhat.com · vdb entry
- RHBZ#2567189 bugzilla.redhat.com · issue tracking
Source: the record CVE-2026-123037 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse