CVE-2026-126644: Ansible.posix: authorized_key module follows a parent-directory symlink allowing writes outside the intended directory
CVE-2026-126644 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Low
- CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L· base score 3.9, scored by redhatAttack vector: local. Attack complexity: low. Privileges required: low. User interaction: required. Scope: unchanged. Confidentiality impact: none. Integrity impact: low. Availability impact: low.- Weakness
- CWE-59 Improper Link Resolution Before File Access
- EPSS
- 0.11% chance of exploitation in the next 30 days (1st percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: partial. CISA, .
- Vendor advisories
- 1 from Red Hat
- Assigned by
- redhat (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-126644; each belongs to its advisory, not to every product listed. How records are collected and checked.
Description
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.
Text from the CVE.org record (redhat).
How do I fix CVE-2026-126644?
- Workaround: Do not run ansible.posix.authorized_key as root against home or .ssh directories that unprivileged users can modify. Verify that target directories are not attacker-controllable symlinks before running the task. (CVE.org record)
Vendor advisories for CVE-2026-126644
Red Hat
1 advisory- Advisory severityLow3.9
Low [CVE-2026-11837 +1] authorized_key module follows a parent-directory symlink allowing writes outside the intended directory
CVE-2026-126644Source published Source updated
This bulletin covers 2 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
authorized_key module follows a parent-directory symlink allowing writes outside the intended directory. Red Hat rates this low (CVSS 3.9). Weakness: CWE-59. Affected products named by the advisory: Red Hat Enterprise Linux 10; Red Hat Enterprise Linux 9.
- Related products — impact not confirmed
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 9
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- No fixed-version detail extracted. This does not mean no fix exists.
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
- Workarounds
- Do not run ansible.posix.authorized_key as root against home or .ssh directories that unprivileged users can modify. Verify that target directories are not attacker-controllable symlinks before running the task.
References
- CVE-2026-126644 recordCVE.org
- CVE-2026-126644 detailNVD
- access.redhat.com/security/cve/CVE-2026-126644vdb-entry, x_refsource_redhat
- RHBZ#2571732issue-tracking, x_refsource_redhat
Timeline
- CVE record published
- First vendor advisory listed by VulniPulse
- CVE record last updated
More Red Hat advisories
CVE-2026-111497Oct 22, 2026Out-of-Bounds Write in Google Brotli DecoderCVE-2026-109619Oct 21, 2026fatal error handling retains stale request state leading to use-after-freeCVE-2026-109618Oct 21, 2026OOM bailout during request parsing leads to memory corruption and RCECVE-2026-125350Nov 10, 2026Use after free in XMLCVE-2026-114713Nov 8, 2026Command injection via unescaped message tagCVE-2026-90436Nov 6, 2026Remote code execution via insecure deserialization of SOAP fault messages
Get an email when Red Hat publishes the next one.
See Red Hat's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.