Bug 2060217 (CVE-2022-0851)

Summary: CVE-2022-0851 convert2rhel: Activation key 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: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ddiblik, mbocek, security-response-team
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. When the --activationkey option is used with convert2rhel, the activation key is subsequently passed to subscription-manager via the command line, which could allow unauthorized users locally on the machine to view the activation key via the process command line via e.g. htop or ps. The specific impact varies upon the subscription, but generally this would allow an attacker to register systems purchased by the victim until discovered; a form of fraud. This could occur regardless of how the activation key is supplied to convert2rhel because it involves how convert2rhel provides it to subscription-manager.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-03 11:55:45 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: 2060659, 2060660, 2119838    
Bug Blocks: 2054854    

Description Todd Cullum 2022-03-03 01:07:28 UTC
In convert2rhel's subscription.py file, code to register a system passes the activation key via the commandline. This could result in disclosure of the activation key to all users with local access to the system.

Reference:

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

Comment 4 Daniel Diblik 2022-08-24 14:53:32 UTC
Verified by running automated tests.
rhel-7 [bug 2060659]
rhel-8 [bug 2060660]

Comment 5 errata-xmlrpc 2022-08-31 12:58:42 UTC
This issue has been addressed in the following products:

  Convert2RHEL for RHEL-6

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

Comment 6 errata-xmlrpc 2022-08-31 13:00:14 UTC
This issue has been addressed in the following products:

  Convert2RHEL for RHEL-7

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

Comment 7 errata-xmlrpc 2022-08-31 13:01:53 UTC
This issue has been addressed in the following products:

  Convert2RHEL for RHEL-8

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

Comment 8 Product Security DevOps Team 2022-09-03 11:55:44 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-0851