MEDIUM6.5
PYSEC-2019-3
Quick fix
PYSEC-2019-3 — ansible: upgrade to the fixed version with the command below.
pip install --upgrade 'ansible>=2.8.4'Details
A flaw was found in ansible 2.8.0 before 2.8.4. Fields managing sensitive data should be set as such by no_log feature. Some of these fields in GCP modules are not set properly. service_account_contents() which is common class for all gcp modules is not setting no_log to True. Any sensitive data managed by that function would be leak as an output when running ansible playbooks.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10217[REPORT]
- https://github.com/ansible/ansible/issues/56269[REPORT]
- https://github.com/ansible/ansible/pull/59427[WEB]
- http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00021.html[WEB]
- http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00026.html[WEB]
- https://github.com/advisories/GHSA-p75j-wc34-527c[ADVISORY]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/ansible"]}'