
CVE catalog
CVE-2026-123037
ansible-core affected and fixed versions
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
- Medium · CVSS 6.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.11% · Nov 17, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | ansible-core | Not reported | AffectedDistribution reports no fix | [CVE-2026-123037] |
| Debiantrixie | ansible-core | 2.19.11-0+deb13u1 | Affected | [CVE-2026-123037] |
| Debiansid | ansible-core | Not reported | AffectedDistribution reports no fix | [CVE-2026-123037] |
| Debiansid | ansible-core | 2.22.0-1 | Affected | [CVE-2026-123037] |
| Ubuntupro | ansible | 2.10.7+merged+base+2.10.8+dfsg-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntupro | ansible | 2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntupro | ansible | 2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4 | Affected | [UBUNTU-CVE-2026-123037] |
| Debianforky | ansible-core | Not reported | AffectedDistribution reports no fix | [CVE-2026-123037] |
| Debianforky | ansible-core | 2.22.0-1 | Affected | [CVE-2026-123037] |
| Debianbookworm | ansible-core | Not reported | AffectedDistribution reports no fix | [CVE-2026-123037] |
| Debianbookworm | ansible-core | 2.14.18-0+deb12u2 | Affected | [CVE-2026-123037] |
| Ubuntu26.10 | ansible | 13.1.0+dfsg-1ubuntu1 | Affected | [UBUNTU-CVE-2026-123037] |
More observations (26)
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Ubuntu22.04 | ansible-core | 2.12.0-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu22.04 | ansible-core | 2.12.0-1ubuntu0.1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible | 7.7.0+dfsg-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible | 7.7.0+dfsg-3 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible | 9.2.0+dfsg-0ubuntu4 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible | 9.2.0+dfsg-0ubuntu5 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible-core | 2.14.11-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible-core | 2.14.11-2 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible-core | 2.14.13-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible-core | 2.14.9-2 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible-core | 2.16.3-0ubuntu1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu24.04 | ansible-core | 2.16.3-0ubuntu2 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.04 | ansible | 12.0.0+dfsg-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.04 | ansible | 12.0.0~b1+dfsg-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.04 | ansible | 12.2.0+dfsg-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.04 | ansible | 13.1.0+dfsg-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.04 | ansible | 13.1.0+dfsg-1ubuntu1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.04 | ansible-core | 2.19.0-1ubuntu1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.04 | ansible-core | 2.19.4-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.04 | ansible-core | 2.20.1-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.10 | ansible | 13.4.0+dfsg-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.10 | ansible-core | 2.20.1-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.10 | ansible-core | 2.21.1~rc1-1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.10 | ansible-core | 2.21.1~rc1-2 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.10 | ansible-core | 2.21.1~rc1-2ubuntu1 | Affected | [UBUNTU-CVE-2026-123037] |
| Ubuntu26.10 | ansible-core | 2.22.0~beta2-1 | Affected | [UBUNTU-CVE-2026-123037] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ansible-core]Affected
Details (2)
2.14.18-0+deb12u2· all · bookwormAffected
dsa · ansible-core · debian · bookworm; pypi · ansible-core · debian · 12
2.14.18-0+deb12u2· all · bookwormAffected
dsa · ansible-core · debian · bookworm; pypi · ansible-core · debian · 12
[Debian 13 (Trixie)]
- [ansible-core]Affected
Details (2)
2.19.4-0+deb13u1· all · trixieAffected
pypi · ansible-core · debian · 13
2.19.4-0+deb13u1· all · trixieAffected
pypi · ansible-core · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-123037]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-123037]
- [https://security-tracker.debian.org/tracker/CVE-2026-123037]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-123037.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]