1. Archivio CVE
  2. 2026
  3. CVE-2026-126641

CVE-2026-126641

6.5 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N 6.5 – Media

Descrizione

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.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
redhat ansible automation platform 2 –
Tutte le 141 vulnerabilità di Redhat Ansible Automation Platform

Tipo di vulnerabilità

CWE-322 Key Exchange without Entity Authentication

The product performs a key exchange with an actor without verifying the identity of that actor.

Impatto sui sistemi

AmbitoImpatto
Controllo degli accessi Aggirare i meccanismi di protezione
Riservatezza Leggere i dati dell’applicazione

Come si previene

Architettura e progettazione Ensure that proper authentication is included in the system design.
Sviluppo Understand and properly implement all checks necessary to ensure the identity of entities involved in encrypted communications.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 25 CVE di tipo CWE-322, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org