Bug 1925002 (CVE-2021-20228)

Summary: CVE-2021-20228 ansible: basic.py no_log with fallback option
Product: [Other] Security Response Reporter: Tapas Jena <tjena>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: asherlan, bcoca, chousekn, cmeyers, davidn, dblechte, dfediuck, dylan, eedri, gblomqui, jcammara, jhardy, jobarker, jtanner, mabashia, mgoldboi, michal.skrivanek, notting, osapryki, relrod, rpetrell, sbonazzo, sdoran, sherold, smcdonal, tkuratom, yturgema
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ansible-engine 2.9.18 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Ansible Engine, where sensitive info is not masked by default and is not protected by the no_log feature when using the sub-option feature of the basic.py module. This flaw allows an attacker to obtain sensitive information. The highest threat from this vulnerability is to confidentiality.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 19:02:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1925006, 1925007, 1925009, 1925010, 1927178, 1962577    
Bug Blocks: 1921897    

Description Tapas Jena 2021-02-04 07:31:36 UTC
The return value of a specific module i.e. basic.py of ansible engine is not being masked by default while using the fallback sub-option.The return value may contain sensitive info like secret Or Credentials.

Comment 5 Tapas Jena 2021-02-10 09:59:20 UTC
External References:

https://github.com/ansible/ansible/pull/73487

Comment 6 errata-xmlrpc 2021-02-24 17:46:20 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Engine 2 for RHEL 8
  Red Hat Ansible Engine 2 for RHEL 7

Via RHSA-2021:0663 https://access.redhat.com/errata/RHSA-2021:0663

Comment 7 errata-xmlrpc 2021-02-24 17:47:04 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Engine 2.9 for RHEL 8
  Red Hat Ansible Engine 2.9 for RHEL 7

Via RHSA-2021:0664 https://access.redhat.com/errata/RHSA-2021:0664

Comment 8 Product Security DevOps Team 2021-02-24 19:02:39 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-20228

Comment 9 errata-xmlrpc 2021-04-06 13:20:53 UTC
This issue has been addressed in the following products:

  Red Hat Ansible Automation Platform 1.2 for RHEL 7

Via RHSA-2021:1079 https://access.redhat.com/errata/RHSA-2021:1079

Comment 13 errata-xmlrpc 2021-06-01 13:23:46 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization 4 for Red Hat Enterprise Linux 8
  Red Hat Virtualization Engine 4.4
  Red Hat Virtualization 4 Tools for Red Hat Enterprise Linux 8

Via RHSA-2021:2180 https://access.redhat.com/errata/RHSA-2021:2180