PT-2026-145760
CVE-2026-126641
·
Published
2026-11-12
·
Updated
2026-11-13
Description by
CVSS 3.1
6.5
MediumMetricsAV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Name of the Vulnerable Software and Affected Versions
ansible-pylibssh (affected versions not specified)
ansible.netcommon libssh connection plugin (affected versions not specified)
Description
A host key verification flaw exists when trust-on-first-use is enabled via
host key auto add in the libssh connection plugin or AutoAddPolicy in ansible-pylibssh. The Session.verify knownhost() function incorrectly handles SSH KNOWN HOSTS CHANGED and SSH KNOWN HOSTS OTHER states by passing them to the same policy hook used for unknown hosts. Consequently, if a host already present in known hosts presents a different key, the system accepts the changed key and continues the connection instead of aborting. This can allow a machine-in-the-middle attacker to intercept connection credentials by posing as a substitute host.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Disable the
host key auto add setting in the libssh connection plugin.
Avoid using AutoAddPolicy in ansible-pylibssh. Found an issue in the description? Have something to add? Feel free to write us 👾