CVE-2026-126644 Ansible.posix: authorized_key module follows a parent-directory symlink allowing writes outside the intended directory

Low 3.9 Published Updated

A local user can plant a symlink so the authorized_key module writes or changes permissions in an attacker-chosen directory when run as root.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Harmful if only installed
No
Needs a specific call
No
Fix
None listed

What is CVE-2026-126644?

CVE-2026-126644 is a low-severity path traversal vulnerability in Red Hat Enterprise Linux 10, published on 12 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-59

Which versions are affected by CVE-2026-126644?

An affected version is exposed as installed. No special setting or call is needed.

How do I fix CVE-2026-126644?

No fix has been published for CVE-2026-126644 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-126644 being exploited?

There is no known exploitation of CVE-2026-126644 in the wild and no public exploit code.

Sources

Also known as GHSA-396m-42gr-rgx7.

Is CVE-2026-126644 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free