CVE-2026-123037
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.
Weakness
- CWE-59: Improper Link Resolution Before File Access
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-11-06 |
Timeline
- 2026-11-06Published by the CNA05:38 UTC
- 2026-11-06CISA SSVC decision recordedsame day
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| red_hat advanced_cluster_management_for_kubernetes_2 | ||
| red_hat ansible_automation_platform_2 | ||
| red_hat ansible_automation_platform_ansible_core_2 | ||
| red_hat discovery_2 | ||
| red_hat enterprise_linux_10 | ||
| red_hat enterprise_linux_8 | ||
| red_hat enterprise_linux_9 | ||
| red_hat migration_toolkit_for_applications_8 | ||
| red_hat migration_toolkit_for_virtualization | ||
| red_hat openshift_container_platform_4 | ||
| red_hat openshift_container_platform_5 | ||
| red_hat openshift_service_mesh_3 | ||
| red_hat satellite_6 | ||
| red_hat self-service_automation_portal_2 | ||
| red_hat service_telemetry_framework_1.5 | ||
| redhat acm | 2no fix listed | not listed |
| redhat ansible_automation_platform | 2no fix listed | not listed |
| redhat ansible_core | 2no fix listed | not listed |
| redhat ansible_portal | 2no fix listed | not listed |
| redhat discovery | 2no fix listed | not listed |
References
- https://access.redhat.com/security/cve/CVE-2026-123037
- https://bugzilla.redhat.com/show_bug.cgi?id=2567189
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-123037'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-123037'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-123037'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-123037'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).