{"id":"DEBIAN-CVE-2026-126644","details":"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 \u003ctarget\u003e/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.","modified":"2026-11-15T22:00:12.413184609Z","published":"2026-11-12T11:17:11.770Z","upstream":["CVE-2026-126644"],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-126644"}],"affected":[{"package":{"name":"ansible","ecosystem":"Debian:12","purl":"pkg:deb/debian/ansible?arch=source&distro=bookworm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.0.0+dfsg-1","10.0.1+dfsg-1","10.1.0+dfsg-1","10.5.0+dfsg-1","10.5.0+dfsg-2","10.6.0+dfsg-1","11.1.0+dfsg-1","11.2.0+dfsg-1","12.0.0+dfsg-1","12.0.0~a1+dfsg-1","12.0.0~a2+dfsg-1","12.0.0~a4+dfsg-1","12.0.0~a6+dfsg-1","12.0.0~b1+dfsg-1","12.0.0~b2+dfsg-1","12.0.0~b3+dfsg-1","12.0.0~b5+dfsg-1","12.2.0+dfsg-1","13.1.0+dfsg-1","13.4.0+dfsg-1","14.0.0+dfsg-1","14.0.0~a4+dfsg-1","14.4.0+dfsg-1","15.0.0~b1+dfsg-1","7.3.0+dfsg-1","7.7.0+dfsg-1","7.7.0+dfsg-2","7.7.0+dfsg-3","7.7.0+dfsg-3+deb12u1","9.4.0+dfsg-1","9.5.1+dfsg-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-126644.json"}},{"package":{"name":"ansible","ecosystem":"Debian:13","purl":"pkg:deb/debian/ansible?arch=source&distro=trixie"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["12.0.0+dfsg-0+deb13u1","12.0.0+dfsg-1","12.0.0~a6+dfsg-1","12.0.0~b1+dfsg-1","12.0.0~b2+dfsg-1","12.0.0~b3+dfsg-1","12.0.0~b5+dfsg-0+deb13u1","12.0.0~b5+dfsg-1","12.2.0+dfsg-1","13.1.0+dfsg-1","13.4.0+dfsg-1","14.0.0+dfsg-1","14.0.0~a4+dfsg-1","14.4.0+dfsg-1","15.0.0~b1+dfsg-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-126644.json"}},{"package":{"name":"ansible","ecosystem":"Debian:14","purl":"pkg:deb/debian/ansible?arch=source&distro=forky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["12.0.0+dfsg-1","12.0.0~a6+dfsg-1","12.0.0~b1+dfsg-1","12.0.0~b2+dfsg-1","12.0.0~b3+dfsg-1","12.0.0~b5+dfsg-1","12.2.0+dfsg-1","13.1.0+dfsg-1","13.4.0+dfsg-1","14.0.0+dfsg-1","14.0.0~a4+dfsg-1","14.4.0+dfsg-1","15.0.0~b1+dfsg-1"],"ecosystem_specific":{"urgency":"not yet assigned"},"database_specific":{"source":"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-126644.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L"}]}