CVE catalog

CVE-2026-123037

ansible-core affected and fixed versions

[CVE catalog]

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.7CVSS: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 / releasePackageVersionStatusSource
Debiantrixieansible-coreNot reportedAffectedDistribution reports no fix[CVE-2026-123037]
Debiantrixieansible-core2.19.11-0+deb13u1Affected[CVE-2026-123037]
Debiansidansible-coreNot reportedAffectedDistribution reports no fix[CVE-2026-123037]
Debiansidansible-core2.22.0-1Affected[CVE-2026-123037]
Ubuntuproansible2.10.7+merged+base+2.10.8+dfsg-1Affected[UBUNTU-CVE-2026-123037]
Ubuntuproansible2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm1Affected[UBUNTU-CVE-2026-123037]
Ubuntuproansible2.10.7+merged+base+2.10.8+dfsg-1ubuntu0.1~esm4Affected[UBUNTU-CVE-2026-123037]
Debianforkyansible-coreNot reportedAffectedDistribution reports no fix[CVE-2026-123037]
Debianforkyansible-core2.22.0-1Affected[CVE-2026-123037]
Debianbookwormansible-coreNot reportedAffectedDistribution reports no fix[CVE-2026-123037]
Debianbookwormansible-core2.14.18-0+deb12u2Affected[CVE-2026-123037]
Ubuntu26.10ansible13.1.0+dfsg-1ubuntu1Affected[UBUNTU-CVE-2026-123037]
More observations (26)
Distribution / releasePackageVersionStatusSource
Ubuntu22.04ansible-core2.12.0-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu22.04ansible-core2.12.0-1ubuntu0.1Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible7.7.0+dfsg-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible7.7.0+dfsg-3Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible9.2.0+dfsg-0ubuntu4Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible9.2.0+dfsg-0ubuntu5Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible-core2.14.11-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible-core2.14.11-2Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible-core2.14.13-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible-core2.14.9-2Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible-core2.16.3-0ubuntu1Affected[UBUNTU-CVE-2026-123037]
Ubuntu24.04ansible-core2.16.3-0ubuntu2Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.04ansible12.0.0+dfsg-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.04ansible12.0.0~b1+dfsg-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.04ansible12.2.0+dfsg-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.04ansible13.1.0+dfsg-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.04ansible13.1.0+dfsg-1ubuntu1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.04ansible-core2.19.0-1ubuntu1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.04ansible-core2.19.4-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.04ansible-core2.20.1-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.10ansible13.4.0+dfsg-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.10ansible-core2.20.1-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.10ansible-core2.21.1~rc1-1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.10ansible-core2.21.1~rc1-2Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.10ansible-core2.21.1~rc1-2ubuntu1Affected[UBUNTU-CVE-2026-123037]
Ubuntu26.10ansible-core2.22.0~beta2-1Affected[UBUNTU-CVE-2026-123037]

[Debian bug #1153374]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [ansible-core]Affected
    Details (2)
    • 2.14.18-0+deb12u2 · all · bookworm

      Affected

      dsa · ansible-core · debian · bookworm; pypi · ansible-core · debian · 12

    • 2.14.18-0+deb12u2 · all · bookworm

      Affected

      dsa · ansible-core · debian · bookworm; pypi · ansible-core · debian · 12

[Debian 13 (Trixie)]

  • [ansible-core]Affected
    Details (2)
    • 2.19.4-0+deb13u1 · all · trixie

      Affected

      pypi · ansible-core · debian · 13

    • 2.19.4-0+deb13u1 · all · trixie

      Affected

      pypi · ansible-core · debian · 13

Observed:

References