CVE-2026-123037Medium· 6.7▾ SunlitA 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 no…
▾ Sunlit zone — Low / medium · no exploitation signal
impact 36.9 · likelihood 0 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
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.
ansible-automation-platform-24/hub-rhel8 (all versions)ansible-automation-platform-24/lightspeed-rhel8 (all versions)ansible-automation-platform-25/controller-rhel8-operator (all versions)ansible-automation-platform-25/de-minimal-rhel8 (all versions)ansible-automation-platform-25/de-supported-rhel8 (all versions)ansible-automation-platform-25/eda-controller-rhel8 (all versions)ansible-automation-platform-25/eda-controller-rhel8-operatoransible-automation-platform-25/ee-minimal-rhel8 (all versions)ansible-automation-platform-25/ee-minimal-rhel9 (all versions)ansible-automation-platform-25/ee-supported-rhel8 (all versions)ansible-automation-platform-25/ee-supported-rhel9 (all versions)ansible-automation-platform-25/gateway-rhel8-operator (all versions)ansible-automation-platform-25/hub-rhel8 (all versions)ansible-automation-platform-25/hub-rhel8-operator (all versions)ansible-automation-platform-25/lightspeed-rhel8 (all versions)ansible-automation-platform-25/lightspeed-rhel8-operator (all versions)ansible-automation-platform-25/platform-resource-rhel8-operator (all versions)ansible-automation-platform-25/platform-resource-runner-rhel8 (all versions)ansible-automation-platform-26/controller-rhel9-operator (all versions)ansible-automation-platform-26/de-minimal-rhel9 (all versions)ansible-automation-platform-26/de-supported-rhel9 (all versions)ansible-automation-platform-26/eda-controller-rhel9 (all versions)ansible-automation-platform-26/eda-controller-rhel9-operator (all versions)ansible-automation-platform-26/ee-minimal-rhel9 (all versions)ansible-automation-platform-26/ee-supported-rhel9 (all versions)ansible-automation-platform-26/gateway-rhel9-operator (all versions)ansible-automation-platform-26/hub-rhel9 (all versions)ansible-automation-platform-26/hub-rhel9-operator (all versions)ansible-automation-platform-26/lightspeed-rhel9 (all versions)ansible-automation-platform-26/lightspeed-rhel9-operator (all versions)ansible-automation-platform-26/platform-resource-rhel9-operator (all versions)ansible-automation-platform-26/platform-resource-runner-rhel9 (all versions)ansible-automation-platform-27/aap-cloud-billing-operator-rhel9 (all versions)ansible-automation-platform-27/controller-rhel9-operator (all versions)ansible-automation-platform-27/de-minimal-rhel9 (all versions)ansible-automation-platform-27/de-supported-rhel9 (all versions)ansible-automation-platform-27/eda-controller-rhel9 (all versions)ansible-automation-platform-27/eda-controller-rhel9-operator (all versions)ansible-automation-platform-27/ee-minimal-rhel9 (all versions)ansible-automation-platform-27/ee-supported-rhel9 (all versions)ansible-automation-platform-27/gateway-rhel9-operator (all versions)ansible-automation-platform-27/hub-rhel9 (all versions)ansible-automation-platform-27/hub-rhel9-operator (all versions)ansible-automation-platform-27/lightspeed-rhel9 (all versions)ansible-automation-platform-27/lightspeed-rhel9-operator (all versions)ansible-automation-platform-27/metrics-service-rhel9-operator (all versions)ansible-automation-platform-27/platform-resource-rhel9-operator (all versions)ansible-automation-platform-27/platform-resource-runner-rhel9 (all versions)ansible-automation-platform-tech-preview/ansible-devspaces-rhel9 (all versions)ansible-automation-platform-tech-preview/metrics-service-rhel9-operator (all versions)Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
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.
Connected by shared product, vendor, weakness, or advisory.
CVE-2026-79717Medium· 6.4Galaxy_ng: galaxy_ng: blind ssrf via namespace avatar_url with no private-address restriction
CVE-2024-45770Medium· 4.4Pcp: pmpost symlink attack allows escalating pcp to root user
CVE-2013-0261High· 8.8Packstack: packstack: arbitrary file overwrite via symlink attack
CVE-2026-103868Medium· 6.5A flaw was found in pulp-container when it authenticates to an upstream registry
CVE-2026-103869Medium· 6.5A flaw was found in pulp-ansible's bearer-token refresh for collection remotes
CVE-2026-90959High· 8.1A path traversal vulnerability was found in pulpcore