Ansible.posix: authorized_key module follows a parent-directory symlink allowing writes outside the intended directory
CVE-2026-126644Published 12 Nov 2026, 10:50 UTC
Real-world risk
0.9/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
3.9
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from redhat)
A link-following flaw was found in the authorized_key module of the ansible.posix collection, residual to the fix for CVE-2026-11837. That fix guards only the final path component (os.chown with follow_symlinks=False and O_NOFOLLOW in _safe_open_write()). When an unprivileged local user replaces their ~/.ssh directory with a symlink to a directory they do not own, and an operator subsequently runs the authorized_key task as root (a common provisioning pattern), the module resolves its path operations through the symlink: atomic_move() writes the temporary file in the symlink target and renames it to <target>/authorized_keys, creating or overwriting a file in the attacker-chosen directory, and os.chmod(sshdir, 0o700) follows the symlink and changes the target directory's permissions. The written file is chowned to the unprivileged user, so this is not a privilege escalation, but it allows an attacker to create or overwrite files (for example in /etc/apt/apt.conf.d/, which APT reads regardless of file ownership) to cause integrity and availability impacts.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Red Hat Enterprise LinuxUbiquitous | not stated | — |
What to do
Check the vendor advisory in the references below for fixed versions and workarounds.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.1% chance of exploitation in 30 days (percentile 4), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.350
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.35 × threat 0.850.892
- Rounded to one decimal between 0.1 and 100.9
Exploitation and evidence timeline
- 12 Nov 2026 Published
- 3 Dec 2026 Risk 0.9 (cvss fallback)
Weakness
CWE-59
References
- https://access.redhat.com/security/cve/CVE-2026-126644redhat, vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=2571732issue-tracking, redhat
- CVE-2026-126644 on CVE.org