# CVE-2026-123037: Ansible-core: user module generate_ssh_key follows a symlinked ~/.ssh enabling local privilege escalation (incomplete fix of cve-2024-9902)

- Severity: Medium 6.7 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-11-06T05:38:54.180Z
- Modified: 2026-11-24T11:17:08.063Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- mta/mta-rhel9-operator: no versions given
- migration-toolkit-virtualization/mtv-rhel9-operator: no versions given
- mtv-candidate/mtv-rhel9-operator: no versions given
- openshift-service-mesh/kiali-rhel9-operator: no versions given
- rhacm2/volsync-operator-bundle: no versions given
- rhacm2/volsync-rhel9: no versions given
- ansible-automation-platform-24/hub-rhel8: no versions given
- ansible-automation-platform-24/lightspeed-rhel8: no versions given
- ansible-automation-platform-25/controller-rhel8-operator: no versions given
- ansible-automation-platform-25/de-minimal-rhel8: no versions given
- ansible-automation-platform-25/de-supported-rhel8: no versions given
- ansible-automation-platform-25/eda-controller-rhel8: no versions given
- ansible-automation-platform-25/eda-controller-rhel8-operator: no versions given
- ansible-automation-platform-25/ee-minimal-rhel8: no versions given
- ansible-automation-platform-25/ee-minimal-rhel9: no versions given
- ansible-automation-platform-25/ee-supported-rhel8: no versions given
- ansible-automation-platform-25/ee-supported-rhel9: no versions given
- ansible-automation-platform-25/gateway-rhel8-operator: no versions given
- ansible-automation-platform-25/hub-rhel8: no versions given
- ansible-automation-platform-25/hub-rhel8-operator: no versions given
- ansible-automation-platform-25/lightspeed-rhel8: no versions given
- ansible-automation-platform-25/lightspeed-rhel8-operator: no versions given
- ansible-automation-platform-25/platform-resource-rhel8-operator: no versions given
- ansible-automation-platform-25/platform-resource-runner-rhel8: no versions given
- ansible-automation-platform-26/controller-rhel9-operator: no versions given
- ansible-automation-platform-26/de-minimal-rhel9: no versions given
- ansible-automation-platform-26/de-supported-rhel9: no versions given
- ansible-automation-platform-26/eda-controller-rhel9: no versions given
- ansible-automation-platform-26/eda-controller-rhel9-operator: no versions given
- ansible-automation-platform-26/ee-minimal-rhel9: no versions given
- ansible-automation-platform-26/ee-supported-rhel9: no versions given
- ansible-automation-platform-26/gateway-rhel9-operator: no versions given
- ansible-automation-platform-26/hub-rhel9: no versions given
- ansible-automation-platform-26/hub-rhel9-operator: no versions given
- ansible-automation-platform-26/lightspeed-rhel9: no versions given
- ansible-automation-platform-26/lightspeed-rhel9-operator: no versions given
- ansible-automation-platform-26/platform-resource-rhel9-operator: no versions given
- ansible-automation-platform-26/platform-resource-runner-rhel9: no versions given
- ansible-automation-platform-27/aap-cloud-billing-operator-rhel9: no versions given
- ansible-automation-platform-27/controller-rhel9-operator: no versions given
- ansible-automation-platform-27/de-minimal-rhel9: no versions given
- ansible-automation-platform-27/de-supported-rhel9: no versions given
- ansible-automation-platform-27/eda-controller-rhel9: no versions given
- ansible-automation-platform-27/eda-controller-rhel9-operator: no versions given
- ansible-automation-platform-27/ee-minimal-rhel9: no versions given
- ansible-automation-platform-27/ee-supported-rhel9: no versions given
- ansible-automation-platform-27/gateway-rhel9-operator: no versions given
- ansible-automation-platform-27/hub-rhel9: no versions given
- ansible-automation-platform-27/hub-rhel9-operator: no versions given
- ansible-automation-platform-27/lightspeed-rhel9: no versions given
- ansible-automation-platform-27/lightspeed-rhel9-operator: no versions given
- ansible-automation-platform-27/metrics-service-rhel9-operator: no versions given
- ansible-automation-platform-27/platform-resource-rhel9-operator: no versions given
- ansible-automation-platform-27/platform-resource-runner-rhel9: no versions given
- ansible-automation-platform-tech-preview/ansible-devspaces-rhel9: no versions given
- ansible-automation-platform-tech-preview/metrics-service-rhel9-operator: no versions given
- ansible-core: no versions given
- ansible-automation-platform/ee-minimal-rhel8: no versions given
- ansible-automation-platform/ee-minimal-rhel9: no versions given
- ansible-automation-platform-tech-preview/ee-minimal-rhel8: no versions given
- and 7 more: see the JSON

## References

- <https://access.redhat.com/security/cve/CVE-2026-123037> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2567189> (issue-tracking)

## Sources

- CVE List: [CVE-2026-123037](https://www.cve.org/CVERecord?id=CVE-2026-123037), CVE Terms of Use, modified 2026-11-24
- NVD: [CVE-2026-123037](https://nvd.nist.gov/vuln/detail/CVE-2026-123037), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-123037 · Whole record: https://cve.day/CVE-2026-123037.json · Rebuilt by cve.day 2026-11-25T22:59:49.219Z
