CVE-2026-123037
published medium CVSS 3.1 · 6.7Ansible-core: user module generate_ssh_key follows a symlinked ~/.ssh enabling local privilege escalation (incomplete fix of cve-2024-9902)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | mta/mta-rhel9-operatorMigration Toolkit for Applications 8 | Affected | Not stated | redhat |
| Red Hat | — | migration-toolkit-virtualization/mtv-rhel9-operatorMigration Toolkit for Virtualization | Affected | Not stated | redhat |
| Red Hat | — | mtv-candidate/mtv-rhel9-operatorMigration Toolkit for Virtualization | Affected | Not stated | redhat |
| Red Hat | — | openshift-service-mesh/kiali-rhel9-operatorOpenShift Service Mesh 3 | Affected | Not stated | redhat |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Red Hat | — | rhacm2/volsync-operator-bundleRed Hat Advanced Cluster Management for Kubernetes 2 | Affected | Not stated | redhat |
| Red Hat | — | rhacm2/volsync-rhel9Red Hat Advanced Cluster Management for Kubernetes 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-24/hub-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
Show 62 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | ansible-automation-platform-24/lightspeed-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/controller-rhel8-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/de-minimal-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/de-supported-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/eda-controller-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/eda-controller-rhel8-operatorRed Hat Ansible Automation Platform 2 | Unaffected | Not required | redhat |
| Red Hat | — | ansible-automation-platform-25/ee-minimal-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/ee-minimal-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/ee-supported-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/ee-supported-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/gateway-rhel8-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/hub-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/hub-rhel8-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/lightspeed-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/lightspeed-rhel8-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/platform-resource-rhel8-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-25/platform-resource-runner-rhel8Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/controller-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/de-minimal-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/de-supported-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/eda-controller-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/eda-controller-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/ee-minimal-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/ee-supported-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/gateway-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/hub-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/hub-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/lightspeed-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/lightspeed-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/platform-resource-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-26/platform-resource-runner-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/aap-cloud-billing-operator-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/controller-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/de-minimal-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/de-supported-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/eda-controller-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/eda-controller-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/ee-minimal-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/ee-supported-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/gateway-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/hub-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/hub-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/lightspeed-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/lightspeed-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/metrics-service-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/platform-resource-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-27/platform-resource-runner-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-tech-preview/ansible-devspaces-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-tech-preview/metrics-service-rhel9-operatorRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-coreRed Hat Ansible Automation Platform 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform/ee-minimal-rhel8Red Hat Ansible Automation Platform Ansible Core 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform/ee-minimal-rhel9Red Hat Ansible Automation Platform Ansible Core 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-tech-preview/ee-minimal-rhel8Red Hat Ansible Automation Platform Ansible Core 2 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform-tech-preview/ee-minimal-rhel9Red Hat Ansible Automation Platform Ansible Core 2 | Affected | Not stated | redhat |
| Red Hat | — | discovery/discovery-server-rhel9Red Hat Discovery 2 | Affected | Not stated | redhat |
| Red Hat Enterprise Linux | 8, 9, 10 | ansible-core | Affected | Not stated | redhat |
| Red Hat | — | openshift4/ose-ansible-rhel9-operatorRed Hat OpenShift Container Platform 4 | Affected | Not stated | redhat |
| Red Hat | — | openshift5/ose-ansible-rhel9-operatorRed Hat OpenShift Container Platform 5 | Affected | Not stated | redhat |
| Red Hat | — | ansible-coreRed Hat Satellite 6 | Affected | Not stated | redhat |
| Red Hat | — | ansible-automation-platform/bootc-automation-portal-rhel9Self-service automation portal 2 | Affected | Not stated | redhat |
| Red Hat | — | stf/service-telemetry-rhel9-operatorService Telemetry Framework 1.5 | Affected | Not stated | redhat |
| Red Hat | — | stf/smart-gateway-rhel9-operatorService Telemetry Framework 1.5 | Affected | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.7 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Migration Toolkit for Applications 8 | Default: affected | redhat · cna |
| Red Hat | Migration Toolkit for Virtualization | Default: affected | redhat · cna |
| Red Hat | Migration Toolkit for Virtualization | Default: affected | redhat · cna |
| Red Hat | OpenShift Service Mesh 3 | Default: affected | redhat · cna |
| Red Hat | Red Hat Advanced Cluster Management for Kubernetes 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Advanced Cluster Management for Kubernetes 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Discovery 2 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 10 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 8 | Default: affected | redhat · cna |
| Red Hat | Red Hat Enterprise Linux 9 | Default: affected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: affected | redhat · cna |
| Red Hat | Red Hat OpenShift Container Platform 5 | Default: affected | redhat · cna |
| Red Hat | Red Hat Satellite 6 | Default: affected | redhat · cna |
| Red Hat | Self-service automation portal 2 | Default: affected | redhat · cna |
| Red Hat | Service Telemetry Framework 1.5 | Default: affected | redhat · cna |
| Red Hat | Service Telemetry Framework 1.5 | Default: affected | redhat · cna |
Weaknesses
1- CWE-59 Improper Link Resolution Before File Access
References
2- https://access.redhat.com/security/cve/CVE-2026-123037
- RHBZ#2567189 https://bugzilla.redhat.com/show_bug.cgi?id=2567189
Provider assertions
2redhat · cna
Ansible-core: user module generate_ssh_key follows a symlinked ~/.ssh enabling local privilege escalation (incomplete fix of cve-2024-9902)
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 80e0c5c1baa8cbc589f6ca3f6aa8963744a835a5d04d5e56d68f2d18894653fc
- Ingested
- 24 Nov 2026, 10:48:13 UTC
- Source record
- Official CVE record