MEDIUMCVSS v3.1 6.5Vulnerability

CVE-2026-126641

A host key verification flaw was found in ansible-pylibssh and in the ansible.netcommon libssh connection plugin. When trust-on-first-use is enabled (host_key_auto_add on the libssh connection plugin, or AutoAddPolicy in ansible-pylibssh), a host that is already present in known_hosts but now presents a different key is accepted without warning. The pylibssh Session.verify_knownhost() method passes the SSH_KNOWN_HOSTS_CHANGED and SSH_KNOWN_HOSTS_OTHER states to the same missing_host_key() policy hook used for unknown hosts, and the bundled AutoAddPolicy/RejectPolicy classes (as well as ansible.netcommon's MyAddPolicy, which is modeled on paramiko's AutoAddPolicy) therefore add the changed key and continue the connection rather than aborting as paramiko's BadHostKeyException path would. As a result the controller authenticates to the substitute host, runs the play there, and appends the new key to known_hosts, which can disclose connection credentials to an attacker performing a machine-in-the-middle attack. Default configurations (host_key_checking enabled, host_key_auto_add unset) are not affected; non-interactive runs fail closed.

Properties

Severity
MEDIUM
Nvd fetched at
2026-11-14T00:40:25.638091+00:00
Epss score
0.00333
Cvss score
6.5
Cvss severity
MEDIUM
Retrieved at
2026-11-14T00:51:03+00:00
Score
6.5
Last source
FIRST EPSS
Cvss version
3.1
Cve id
CVE-2026-126641
Cvss vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
First seen by Signal
2026-11-12T11:54:41+00:00
Name
CVE-2026-126641
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Published at
2026-11-12T11:17:11.317
Last modified
2026-11-13T02:18:52.430
Epss percentile
0.26872

Related Entities (1)

HAS_WEAKNESS (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-126641 (CVSS v3.1 6.5) — Ninja Signal Threat Intelligence | Ninja Signal