cvelo
P3 · MediumCVSS 6.7EPSS 0.1%

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

  • CVE-2026-123037
  • GHSA-cvj4-ggf5-jg54
  • EUVD-2026-117890

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.

Text from the CVE.org record.

Recommendation

Cvelo has no version information for this record. Check the vendor advisory.

Affected

  • Red Hat Migration Toolkit for Applications 8

    No versions listed

  • Red Hat Migration Toolkit for Virtualization

    No versions listed

  • Red Hat OpenShift Service Mesh 3

    No versions listed

  • Red Hat Red Hat Advanced Cluster Management for Kubernetes 2

    No versions listed

  • Red Hat Red Hat Ansible Automation Platform 2

    No versions listed

  • Red Hat Red Hat Ansible Automation Platform Ansible Core 2

    No versions listed

  • Red Hat Red Hat Discovery 2

    No versions listed

  • Red Hat Red Hat Enterprise Linux 10

    No versions listed

  • Red Hat Red Hat Enterprise Linux 8

    No versions listed

  • Red Hat Red Hat Enterprise Linux 9

    No versions listed

  • Red Hat Red Hat OpenShift Container Platform 4

    No versions listed

  • Red Hat Red Hat OpenShift Container Platform 5

    No versions listed

  • Red Hat Red Hat Satellite 6

    No versions listed

  • Red Hat Self-service automation portal 2

    No versions listed

  • Red Hat Service Telemetry Framework 1.5

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.