Ansible-core: user module generate_ssh_key follows a symlinked ~/.ssh enabling local privilege escalation (incomplete fix of cve-2024-9902)
CVSS score
6.7
EPSS probability
%0.1
Risk score
0.0
Published
1 d ago
Resmî kaynaklarda yeterli kanıt bulunamadı. Bu sonuç “yama yok” anlamına gelmez.
Impact on My Inventory
Only the personal products you have added to your account are assessed; an organisation's inventory does not appear here.
Checking session…
Vulnerability description
DayBreach CVE AI Research
CVE-2026-123037 has vendor, distribution, patch and security-source records on file. We can compare them and prepare an explanation linked to the evidence.
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.
IMPACT: Affected Products and Software
Affected Products
The following products are affected by CVE-2026-123037 vulnerability. Where our threat engine knows the exact affected versions, they are listed below.
| ID | VENDOR | PRODUCT | ACTION |
|---|---|---|---|
| 1 | Red Hat | Migration Toolkit for Applications 8 | View |
| 2 | Red Hat | Migration Toolkit for Virtualization | View |
| 3 | Red Hat | OpenShift Service Mesh 3 | View |
| 4 | Red Hat | Red Hat Advanced Cluster Management for Kubernetes 2 | View |
| 5 | Red Hat | Red Hat Ansible Automation Platform 2 | View |
| 6 | Red Hat | Red Hat Ansible Automation Platform Ansible Core 2 | View |
| 7 | Red Hat | Red Hat Discovery 2 | View |
| 8 | Red Hat | Red Hat Enterprise Linux 10 | View |
| 9 | Red Hat | Red Hat Enterprise Linux 8 | View |
| 10 | Red Hat | Red Hat Enterprise Linux 9 | View |
| 11 | Red Hat | Red Hat OpenShift Container Platform 4 | View |
| 12 | Red Hat | Red Hat OpenShift Container Platform 5 | View |
| 13 | Red Hat | Red Hat Satellite 6 | View |
| 14 | Red Hat | Self-service automation portal 2 | View |
| 15 | Red Hat | Service Telemetry Framework 1.5 | View |
RED HAT CSAF/VEX: Product Impact Check
SCORING: CVSS from Multiple Sources
CVSS Scores
The Common Vulnerability Scoring System is a standardised framework for assessing the severity of vulnerabilities in software and systems. We collect and display CVSS scores from several sources for each CVE.
| SCORE | VERSION | SEVERITY | VECTOR | SOURCE |
|---|---|---|---|---|
| 6.7 | CVSS V3_1 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H | CVE CNA |
| 6.7 | CVSS V31 | MEDIUM | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H | NVD |
Patch and Remediation Guide
Solution & Remediation Advisory
İncelenen resmî kaynaklarda yama durumu doğrulanamadı. Bu sonuç “yama yok” anlamına gelmez.
Public exploit and active exploitation status
Verified exploit intelligence
No verified public PoC, exploit repository or Metasploit module has been found for this CVE yet.
Weakness Classification and Attack Patterns (CWE & CAPEC)
CWE - Common Weakness Enumeration
While CVE identifies specific instances of vulnerabilities, CWE categorises the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-123037 is associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-123037 weaknesses.
Attack Vector and Accessibility
Official Sources and Advisories
Similar Vulnerabilities
Get this vulnerability through the API
Affected products, version ranges, exploitation status and patch information in a single request, with a free key.
curl -H "x-api-key: $DAYBREACH_API_KEY" \ "https://api.daybreach.dev/api/v1/intel/cves/CVE-2026-123037"