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.

Severity
MEDIUM
CVSS v3
6.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
0.111%
chance of exploitation in the next 30 days
higher than 1.4% of scored CVEs · 2026-11-18
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impacttotal
Scored2026-11-06

Timeline

  1. 2026-11-06Published by the CNA05:38 UTC
  2. 2026-11-06CISA SSVC decision recordedsame day

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed 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 acm2no fix listednot listed
redhat ansible_automation_platform2no fix listednot listed
redhat ansible_core2no fix listednot listed
redhat ansible_portal2no fix listednot listed
redhat discovery2no fix listednot listed

27 vulnerable vendor/product pairs in total; the first 20 are shown. The cve_products API lists them page by page, with versions.

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources