6.7

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

Awaiting analysis
AliasesDEBIAN-CVE-2026-123037UBUNTU-CVE-2026-123037
Published 06-11-2026Last modified 24-11-2026

Vulnerability summary

CVE-2026-123037 is a medium (CVSS 6.7) vulnerability in ansible-core. EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 3.5% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 6.7, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.7/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.14%
0%100%
Low · Change unavailable
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 06-11-2026
    PublishedVulnerability first disclosed.
  2. 24-11-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.14%

Chance of exploitation in the next 30 days

Percentile

4%

Versus all other CVEs

30-day change

Change unavailable

Change unavailable

06-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu2 products
  • ansibleAll versions (No fix recorded)
  • ansible-coreAll versions (No fix recorded)
Debian1 product
  • ansible-coreAll versions (No fix recorded)

2 vendors · 3 products

References

5 links