Skip to content

Ansible leaks sensitive information to logs when told not to

Moderate severity GitHub Reviewed Published May 24, 2022 to the GitHub Advisory Database • Updated Apr 22, 2024

Package

pip ansible (pip)

Affected versions

>= 2.0, <= 2.8

Patched versions

2.9

Description

A vulnerability was found in Ansible engine 2.x up to 2.8 and Ansible tower 3.x up to 3.5. When a module has an argument_spec with sub parameters marked as no_log, passing an invalid parameter name to the module will cause the task to fail before the no_log options in the sub parameters are processed. As a result, data in the sub parameter fields will not be masked and will be displayed if Ansible is run with increased verbosity and present in the module invocation arguments for the task.

References

Published by the National Vulnerability Database Oct 14, 2019
Published to the GitHub Advisory Database May 24, 2022
Reviewed Apr 22, 2024
Last updated Apr 22, 2024

Severity

Moderate
5.5
/ 10

CVSS base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Weaknesses

CVE ID

CVE-2019-14858

GHSA ID

GHSA-h653-95qw-h2mp

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.