CVE Vulnerabilities

CVE-2021-3447

Insertion of Sensitive Information into Log File

Published: Apr 01, 2021 | Modified: Dec 28, 2023
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
5 MODERATE
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
Ubuntu
MEDIUM

A flaw was found in several ansible modules, where parameters containing credentials, such as secrets, were being logged in plain-text on managed nodes, as well as being made visible on the controller node when run in verbose mode. These parameters were not protected by the no_log feature. An attacker can take advantage of this information to steal those credentials, provided when they have access to the log files containing them. The highest threat from this vulnerability is to data confidentiality. This flaw affects Red Hat Ansible Automation Platform in versions before 1.2.2 and Ansible Tower in versions before 3.8.2.

Weakness

Information written to log files can be of a sensitive nature and give valuable guidance to an attacker or expose sensitive user information.

Affected Software

Name Vendor Start Version End Version
Ansible Redhat * 1.2.2 (excluding)
Ansible_tower Redhat * 3.8.2 (excluding)
Red Hat Ansible Automation Platform 1.2 for RHEL 7 RedHat ansible-automation-platform/platform-resource-operator-bundle:v0.1.1-1 *
Red Hat Ansible Automation Platform 1.2 for RHEL 7 RedHat ansible-automation-platform/platform-resource-rhel7-operator:v0.1.0-12 *
Red Hat Ansible Automation Platform 1.2 for RHEL 7 RedHat ansible-automation-platform/platform-resource-runner-rhel7:v0.1.0-15 *
Red Hat Ansible Engine 2.9 for RHEL 7 RedHat ansible-0:2.9.20-1.el7ae *
Red Hat Ansible Engine 2.9 for RHEL 8 RedHat ansible-0:2.9.20-1.el8ae *
Red Hat Ansible Engine 2 for RHEL 7 RedHat ansible-0:2.9.20-1.el7ae *
Red Hat Ansible Engine 2 for RHEL 8 RedHat ansible-0:2.9.20-1.el8ae *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 RedHat redhat-virtualization-host-0:4.4.7-20210715.1.el8_4 *
Red Hat Virtualization 4 for Red Hat Enterprise Linux 8 RedHat ansible-0:2.9.21-1.el8ae *
Red Hat Virtualization Engine 4.4 RedHat ansible-0:2.9.21-1.el8ae *
Ansible Ubuntu bionic *
Ansible Ubuntu groovy *
Ansible Ubuntu hirsute *
Ansible Ubuntu impish *
Ansible Ubuntu kinetic *
Ansible Ubuntu lunar *
Ansible Ubuntu mantic *
Ansible Ubuntu trusty *
Ansible Ubuntu trusty/esm *
Ansible Ubuntu xenial *

Extended Description

While logging all information may be helpful during development stages, it is important that logging levels be set appropriately before a product ships so that sensitive user data and system information are not accidentally exposed to potential attackers. Different log files may be produced and stored for:

Potential Mitigations

References