Bug 2060129 (CVE-2022-0852)

Summary: CVE-2022-0852 convert2rhel: Red Hat account password passed via command line by code
Product: [Other] Security Response Reporter: Todd Cullum <tcullum>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ansyed, egustavs, mbocek, security-response-team, tkuratom
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
There is a flaw in convert2rhel. convert2rhel passes the Red Hat account password to subscription-manager via the command line, which could allow unauthorized users locally on the machine to view the password via the process command line via e.g. htop or ps. The specific impact varies upon the privileges of the Red Hat account in question, but it could affect the integrity, availability, and/or data confidentiality of other systems that are administered by that account. This occurs regardless of how the password is supplied to convert2rhel.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-27 11:45:33 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: 2060225, 2060226, 2077963    
Bug Blocks: 2054854    

Description Todd Cullum 2022-03-02 19:09:41 UTC
In convert2rhel's subscription.py file, code to register a system passes the password via the commandline. This could result in disclosure of the password to all users with local access to the system.

Reference:

1. https://github.com/oamg/convert2rhel/blob/main/convert2rhel/subscription.py#L156

Comment 3 errata-xmlrpc 2022-04-27 06:28:49 UTC
This issue has been addressed in the following products:

  Convert2RHEL for RHEL-8

Via RHSA-2022:1599 https://access.redhat.com/errata/RHSA-2022:1599

Comment 4 errata-xmlrpc 2022-04-27 07:22:36 UTC
This issue has been addressed in the following products:

  Convert2RHEL for RHEL-7

Via RHSA-2022:1617 https://access.redhat.com/errata/RHSA-2022:1617

Comment 5 errata-xmlrpc 2022-04-27 07:23:29 UTC
This issue has been addressed in the following products:

  Convert2RHEL for RHEL-6

Via RHSA-2022:1618 https://access.redhat.com/errata/RHSA-2022:1618

Comment 6 Product Security DevOps Team 2022-04-27 11:45:31 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-2022-0852