Security Bulletin
Summary
Cloud Pak for Security (CP4S) v1.9.0.0 and earlier is impacted by Log4Shell (CVE-2021-44228), through the use of Apache Log4j's JNDI logging feature. This vulnerability has been addressed in the updated versions of CP4S images. Please see remediation steps below to apply fix. All customers are encouraged to act quickly to update their systems. Please note, this security bulletin has been superseded by Security Bulletin: Cloud Pak for Security is vulnerable to denial of service and arbitrary code execution due to Apache Log4j (CVE-2021-45105 and CVE-2021-45046) - see https://www.ibm.com/support/pages/node/6541156.
Vulnerability Details
CVEID: CVE-2021-44228
DESCRIPTION: Apache Log4j could allow a remote attacker to execute arbitrary code on the system, caused by the failure to protect against attacker controlled LDAP and other JNDI related endpoints by JNDI features. By sending a specially crafted code string, an attacker could exploit this vulnerability to load arbitrary Java code on the server and take complete control of the system.
Note: The vulnerability is also called Log4Shell or LogJam.
CVSS Base score: 10
CVSS Temporal Score: See: https://exchange.xforce.ibmcloud.com/vulnerabilities/214921 for the current score.
CVSS Vector: (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H)
Affected Products and Versions
Affected Product(s) | Version(s) |
Cloud Pak for Security (CP4S) | 1.9.0.0 |
Cloud Pak for Security (CP4S) | 1.8.1.0 |
Cloud Pak for Security (CP4S) | 1.8.0.0 |
Cloud Pak for Security (CP4S) | 1.7.2.0 |
Remediation/Fixes
For Cloud Pak for Security 1.8.x and 1.9.x :
Ensure that you are logged in to the cluster by using either of the following oc login commands:
Using username and password:
oc login <openshift_url> -u <username> -p <password>
Using a token:
oc login --token=<token> --server=<openshift_url>
Check the current value of `imagePullPolicy` using the command :
oc get -n <CP4S_NAMESPACE> cp4sthreatmanagement threatmgmt -o yaml | grep imagePullPolicy:
If `imagePullPolicy` is not set to "Always" :
oc patch -n <CP4S_NAMESPACE> cp4sthreatmanagement threatmgmt --type merge --patch '{"spec":{"extendedDeploymentConfiguration":{"imagePullPolicy":"Always"}}}'
Else, if the `imagePullPolicy` value is already set to "Always" :
oc delete pod -lsequence=idrmapp -n <CP4S_NAMESPACE>
After executing either of the above commands the pods will restart which can be monitored using :
oc get pods -n <CP4S_NAMESPACE> -w
For Cloud Pak for Security 1.7.2.0 :
Ensure that you are logged in to the cluster by using either of the following oc login commands:
Using username and password:
oc login <openshift_url> -u <username> -p <password>
Using a token:
oc login --token=<token> --server=<openshift_url>
Select your CP4S namespace :
oc project <CP4S_NAMESPACE>
Check the current value of `imagePullPolicy` :
oc get iscinventory iscplatform -o yaml | grep imagePullPolicy:
If the value of `imagePullPolicy` is not set to “Always” :
oc patch iscinventory iscplatform --type merge --patch '{"spec":{"definitions":{"imagePullPolicy": "Always"}}}' && oc delete pod -lname=sequences
Else if the value of the `imagePullPolicy` is already set to “Always” :
oc delete pod -lsequence=idrmapp
After executing either of the above commands the idrm pods will restart which can be monitored using :
oc get pods -w
Workarounds and Mitigations
None
Get Notified about Future Security Bulletins
References
RHSB-2021-009 Log4Shell - Remote Code Execution - log4j (CVE-2021-44228) (CVE-2021-4104) https://access.redhat.com/security/vulnerabilities/RHSB-2021-009
X-Force Database: https://exchange.xforce.ibmcloud.com/vulnerabilities/214921
Elastic Search: https://discuss.elastic.co/t/apache-log4j2-remote-code-execution-rce-vulnerability-cve-2021-44228-esa-2021-31/291476
Acknowledgement
Change History
14 Dec 2021: Initial Publication
*The CVSS Environment Score is customer environment specific and will ultimately impact the Overall CVSS Score. Customers can evaluate the impact of this vulnerability in their environments by accessing the links in the Reference section of this Security Bulletin.
Disclaimer
Review the IBM security bulletin disclaimer and definitions regarding your responsibilities for assessing potential impact of security vulnerabilities to your environment.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
17 January 2022
UID
ibm16527154