NetSight
mittel4.7

CVE-2020-1740

Exposure of Sensitive Information to an Unauthorized Actor and Insecure Temporary File in Ansible

Auswirkung

A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files. When a user executes "ansible-vault edit", another user on the same computer can read the old and new secret, as it is created in a temporary file with mkstemp and the returned file descriptor is closed and the method write_data is called to write the existing secret in the file. This method will delete the file before recreating it insecurely. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.

Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
pipansible< 2.7.172.7.17

Betroffene Produkte

HerstellerProduktBetroffene Versionen
DebianDebian Linux
Versionen 8.0, 10.0
FedoraprojectFedora
Versionen 30, 31, 32
Red HatAnsible
vor 2.7.17
ab 2.8.0 vor 2.8.11
ab 2.9.0 vor 2.9.7
Red HatAnsible Tower
bis einschließlich 3.3.4
ab 3.3.5 bis einschließlich 3.4.5
ab 3.5.0 bis einschließlich 3.5.5
ab 3.6.0 bis einschließlich 3.6.3
Red HatCloudforms Management Engine
Version 5.0
Red HatOpenstack
Version 13

Schwachstellenklasse

Referenzen