Skip to content
VulniPulse
Low 1 vendor · 1 advisory

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

Timeline

  1. CVE record published
  2. First vendor advisory listed by VulniPulse
  3. CVE record last updated

All Red Hat advisories

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.

Alert me about Red Hat