#1153374 ansible-core: CVE-2026-123037

Package:
src:ansible-core
Source:
src:ansible-core
Submitter:
Moritz Mühlenhoff
Date:
2026-11-07 20:13:02 UTC
Severity:
normal
Tags:
#1153374#5
Date:
2026-11-07 19:55:50 UTC
From:
To:
Hi,

The following vulnerability was published for ansible-core.

CVE-2026-123037[0]:
| 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.

https://bugzilla.redhat.com/show_bug.cgi?id=2567189


If you fix the vulnerability please also make sure to include the
CVE (Common Vulnerabilities & Exposures) id in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-123037
https://www.cve.org/CVERecord?id=CVE-2026-123037

Please adjust the affected versions in the BTS as needed.