cve.bz

CVE-2026-123037 Link Following

6.7 mediumEPSS 0.1%

Medium (6.7). EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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 3.1

6.7 medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
0.1% (unchanged from 0.1% a week ago) estimated probability of exploitation activity in the next 30 days; 1st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-11-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-123037 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-123037?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-123037?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-123037 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14ansible-coreno fix listedDEBIAN-CVE-2026-123037
Ubuntu22.04:LTSansible-coreno fix listedUBUNTU-CVE-2026-123037
Ubuntu24.04:LTS, 26.04:LTS, 26.10ansible, ansible-coreno fix listedUBUNTU-CVE-2026-123037
UbuntuPro:14.04:LTS, Pro:16.04:LTS, Pro:18.04:LTS and 2 moreansibleno fix listedUBUNTU-CVE-2026-123037
Azure Linux3ansibleno fix listedAZL-113113

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This affects the ansible-core user module and is an incomplete fix of CVE-2024-9902. Exploitation requires a pre-existing unprivileged account on the managed node, that the attacker controls their own home directory, and that an administrator subsequently runs the user module with generate_ssh_key against that account; impact further depends on a scheduler (cron.daily) or dynamic MOTD being active. It does not require control of the Ansible control node or any playbook modification.

Red Hat's mitigation

Do not use generate_ssh_key: yes against accounts whose home directory is controlled by an untrusted user; pre-create ~/.ssh as a real directory owned appropriately before running the module, or generate the key as the target account itself (dropping to its uid/gid) rather than as root.

ProductPackageStateAdvisory
Migration Toolkit for Applications 8mta/mta-rhel9-operatorFix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-rhel9-operatorFix deferred
Migration Toolkit for Virtualizationmtv-candidate/mtv-rhel9-operatorFix deferred
OpenShift Service Mesh 3openshift-service-mesh/kiali-rhel9-operatorFix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-operator-bundleFix deferred
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/volsync-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/hub-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/lightspeed-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/controller-rhel8-operatorFix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-minimal-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/de-supported-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/eda-controller-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/eda-controller-rhel8-operatorNot affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-minimal-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-minimal-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-supported-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ee-supported-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/gateway-rhel8-operatorFix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/hub-rhel8Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/hub-rhel8-operatorFix deferred
51 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-123037.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON