Log4j Vulnerability - Please Post All Questions Here


Userlevel 7
Badge +23

Summary
 

The following thread describes the potential exposure to the Apache Log4j vulnerability and steps to update Commvault software.

It has been confirmed that a small subset of Commvault agents are impacted. 

 

Update as of 1st February: Maintenance Release to bring Log4j version to 2.17.1 across Commvault software platform has been released. This release includes the upgrade of components that previously used Log4j 1.x. 

 

Update as of 20th December: Maintenance Release including relevant hotfixes now available for Commvault software, see section “Maintenance Releases”. Please note customers who have already applied hotfixes for Log4j 2.16, do not need to install.

For customers with Commvault Hyperscale X and Distributed storage, please see section new Community article here: 

 

Apache Log4j information

  • CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints. From log4j 2.15.0, this behavior has been disabled by default
  • CVE-2021-45046: Apache Log4j 2.15.0 was incomplete in certain non-default configurations. Log4j 2.16.0 fixes this issue by removing support for message lookup patterns and disabling JNDI functionality by default
  • CVE-2021-45105: Apache Log4j2 did not protect from uncontrolled recursion from self-referential lookups. This allows an attacker with control over Thread Context Map data to cause a denial of service when a crafted string is interpreted. 
  • CVE-2021-4104: JMSAppender in Log4j 1.2 is vulnerable to deserialization of untrusted data.

  • CVE-2021-44832: Apache Log4j2 versions 2.0-beta7 through 2.17.0 (excluding security fix releases 2.3.2 and 2.12.4) are vulnerable to a remote code execution (RCE) attack where an attacker with permission to modify the logging configuration file can construct a malicious configuration using a JDBC Appender with a data source referencing a JNDI URI which can execute remote code.

Note: Log4j version 1.x is NOT affected.

There’s a great blog article that covers the potential impact.

 

Updates:

CVE-2021-45105: Commvault can confirm that the affected Log4j2 function is NOT leveraged by Commvault software and thus there is no immediate need to update Commvault to use Log4j 2.17. 

CVE-2021-4104: The Commvault software does not use the JMSAppender module and, therefore, the vulnerability about log4j 1.x versions does not affect any Commvault products.

CVE-2021-44832: The Commvault software does not use the JdbcAppender module and, therefore, the vulnerability about remote code execution attack does not affect any Commvault products.

 

Identifying and Updating Commvault

 

Exposure:

Note: check FAQ at the bottom of this post for specific version questions.

The exposure impacts the below Commvault product features:

Cloud Apps package
Oracle agent - Database archiving, data masking, and logical dump backup
Microsoft SQL Server agent - Database archiving, data masking, and table level restore

Commvault Distributed Storage

Commvault Hyperscale X

 

Identifying affected servers using the Commvault Log4j report

 

Please use the below direct link to download the Commvault Log4J Affected Servers report then follow step 4 to import and run

https://cloud.commvault.com/webconsole/softwarestore/store.do#!/135/663/21789  

 

Alternatively, follow steps 1-3 to manually download the Commvault report:

  1. Log into cloud.commvault.com and click the Software Store tile icon 
  2. Search the Store for Log4j and click the Download button for the “Log4J affected servers” report 
  3. Log into Command Center and navigate to Reports
  4. At the top right of the Reports page, click Actions and Import report. Proceed to select the downloaded report file to import into Command Center. 
  5. Now you can run the report.

This report will show you any servers with Cloud Apps, SQL Server, and Oracle Database packages installed that may be affected by Log4j vulnerability.
Note: If the resulting report shows No Data to Display, then there are no affected clients in this CommCell

The easiest course of action is to upgrade all servers listed in this report (Oracle, Cloud Apps, and SQL) – that would be the recommendation. However, at a minimum, servers with Database Archiving, Data Masking, or Extent based backups (SQL table level restore) features enabled should have highest priority as the vulnerable log4j package is actively used, while otherwise the packages are dormant.

 

Maintenance Releases

 

The table below outlines the specific Maintenance Releases that will both address Log4j 2.x vulnerabilities as well as update Log4j 1.x components to 2.17.1 (the latest release of Log4j)

Note: If the previous Log4j 2.16 hotfixes has already been applied, then this latest Maintenance Release is optional 

Feature Release

Maintenance Release

11.26

11.26.21

11.25

11.25.32

11.24

11.24.48

11.23

11.23.47

11.20

11.20.90

SP16

SP16.153

 

How to deploy Maintenance Release:

 

  1. First perform a disaster recovery backup using steps HERE .
  2. OPTIONAL: create a server group containing all the affected servers using instructions HERE.  This can make it easier to select servers for the upgrade process.
  3. Go to documentation to find the list of updates: https://documentation.commvault.com/11.24/essential/146231_security_vulnerability_and_reporting.html
  4. Download the maintenance pack for the version the CommServe is running on. 

    If you do not know the CommServe version, in Command Center search for About and click the About search result to bring up the version popup. 
  5. Extract the Maintenance Pack
  6. Follow instructions HERE to copy the software packages to the cache using Command Center.  
  7. Proceed to Install updates following instructions HERE .  You can update only the affected clients to avoid the CommServe services stopping, however it is recommended to update the CommServe and all affected servers as shown on the report for completeness.
  8. Once completed re-rerun the report to show that the servers have the appropriate fixes

Note: For instructions on how to apply Log4j 2.16 hotfixes on older Maintenance Release, please see FAQ

 

See Commvault Online Documentation for additional information:

https://documentation.commvault.com/11.25/essential/146231_security_vulnerability_and_reporting.html

 

HyperScale X and CDS (Hedvig)

 

For all detailed information on how to update HyperScale X and Commvault Distributed Storage (CDS) to address Log4j vulnerabilities, please see article here:

 

 

Log4j FAQ 

 

Q:   There is a new vulnerability in 2.15 is Commvault addressing this? 

A:   The LOG4J 2.15 version (GA Dec. 06, 2021) disabled the essential exploit functions by default was released last week on Dec 6, 2021. This was considered the market-acceptable, non-vulnerable upgrade package up to today.  

 The Apache organization released a new version, 2.16, on Monday, Dec.13, 2021, which physically removes the vulnerable functions. 

 This evening, the security groups issued a new vulnerability CVE-2021-45046 targeting concerns with the 2.15 version and recommending the shift to 2.16.   

  This significant change affects all client remediation methods, requiring an upgrade to version 2.16.  Log4j 2.16 hotfixes have now been released, please see table above

 

Q: When will new hotfixes be available for 2.16 log4j? 

A: Log4j 2.16 hotfixes have now been released, please see table above

 

Q:  I've noticed older 1.x versions of log4j being used in the platform.  Are these vulnerable? 

A:   We have some older instances in the installed component structure related to the older generation Log4J 1.x files which are not part of the current CVE Log4J 2.x vulnerability. We are doing further investigation on those conditions to determine a course of action.  

We do plan to remove all 1.x references in the Feb 1st maintenance release to prevent “false alarms”.  That version is not vulnerable to the current respective CVEs, but it would clear up the scanning concerns.

 

Q:  I noticed HyperScale 1.5 is using end of life versions of Log4j.  Is this being resolved? 

A:  The 1.x versions of log4j bundled with HyperScale 1.5 are maintained and supported by Redhat.  These versions are not affected by this CVE. 

 

Q: Are older versions like v10 and v9 affected?

A: These versions are not affected

 

Q: Why are some updates showing skipped during Copy to Cache?

A: These are updates for Operating Systems your CommCell does not have.  It’s more informational than error related.

 

Q: Why does the report show No Records Available or No Items to Display?

A: This means there are no affected clients in this CommCell

 

Q: What order should I apply the updates?

A: The Maintenance Release needs to be installed first, then the Hotfix Pack.  The best option is to use Copy to Cache, followed by pushing the updates out from the GUI as per the instructions.  This will ensure everything is applied as needed in the correct order.

 

Q: Can I remove versions manually?

A: No, removing anything manually will potentially cause features to not work properly.  Use the Maintenance Releases and Hotfix packs to remediate.

 

Q: Is Anti-virus a concern?

A: It is possible that an AV service may lock the affected files out of concern and cause features to not work properly.  Use the Maintenance Releases and Hotfix packs to remediate.

 

Q: How do I download Maintenance Release using CommCell Console?

A: Please follow Commvault Online Documentation steps below

https://documentation.commvault.com/11.25/expert/2705_downloading_commvault_software_using_commcell_console.html

 

Q: Is Metallic vulnerable to the vulnerability?

A: We have found that the Log4j vulnerability has no impact on Metallic or the security and privacy of your data backups. Metallic does not use the impacted libraries as per the Apache Log4j advisory.

We will continue to proactively monitor and provide any further updates, while customers with questions can reach out to Metallic.io/support.

 

Q: Log4j scanner is still picking up DbArchiveEngine.jar as potentially vulnerable?

A: Some Log4j scanners are actually incorrectly picking up DbArchiveEngine.jar as potentially vulnerable when in fact it is already patched. This is because the scanner was unable to determine the version of Log4j used and ending up marking it as “potentially vulnerable”. Please note that if you have patched Commvault clients with either the 2.16 hotfix or the latest Maintenance Release, then this DbArchiveEngine.jar binary is also patched and will not have the Log4j 0-day vulnerability. 

 

Q: I have updated to latest Maintenance Release but Log4j Affected Servers report is still showing my clients as not fixed?

A: There has been a new Log4j Affected Servers report released on December 22nd that has updated the checks to correctly report fixed for clients on the latest Maintenance Release. This new report is version 1.1.2.3 whereas the previous report is 1.1.2.2.

 

Q: How do I apply the Log4j hotfixes if I am already on the older minimum required Maintenance Release?

A: Please follow below steps:

  1. Ensure the Commserve and affected clients are on the minimum required Maintenance Release pack. 
    1. If not, please download and install using the CommCell Console 
    2. Alternatively, you may download the minimum required Maintenance Release from the links in the table below
  2. Download the Log4J-Fix pack for your version
  3. Unzip the contents of the download
  4. Run Copy To Cache and point to the folder created by the unzip to add the new updates to your software cache
  5. Push out updates to the clients
  6. Verify client status by checking the Log4j Affected Servers report or Client Details report or viewing the client properties

Log4j 2.16 fixes (CVE-2021-44228, CVE-2021-45046)

Feature Release

Minimum Required
Maintenance Release

Update Link (includes 2.16 fix)

Installed Windows
Updates

Installed
Unix Updates

11.26

11.26.2

11.26 Log4J-2.16 Fix

1755

1755

11.25

11.25.9

11.25 Log4J-2.16 Fix

2763

2779

2763

2779

11.24

11.24.23

11.24 Log4J-2.16 Fix

4552

4564

4551

4564

11.23

11.23.37

11.23 Log4J-2.16 Fix

4160

4178

4161

4178

11.22

11.22.50

11.22 Log4J-2.16 Fix

3911

3920

3912

3920

11.21

11.21.66

11.21 Log4J-2.16 Fix

3587

3599

3588

3599

11.20

11.20.77

11.20 Log4J-2.16 Fix

4562

4574

4561

4574

SP16

SP16.128

SP16 Log4J-2.16 Fix

2943

2946

2942

2946


344 replies

Userlevel 4
Badge +13

Just a clearification.
If I download the latest maintenance release for the SP i’m running, in my case 11.24.23, then dowload the hotfix for LOG4J and add it to the software cache.

 

When I then update the clients there is only one step, both maintenance release, in my case .23, and the hotfix gets installed at the same time?

 

//Henke

Badge

My Commcell is 11.24.23 and last night i installed the hotfix 4550,4552,4553 when i do a search still see the older versions for LOG4J still in there, does any one know if Hotfix suppose to remove the old LOG4J version 

 

LOG4J older version Path still shows up are:

D:\Program Files\CommVault\Simpana\Apache\lib

D:\Program Files\CommVault\Simpana\CVCIEngine\CvPreviewHome\webapps\CvContentPreviewGenApp\WEB-INF\lib

D:\Program Files\CommVault\Simpana\MessageQueue\lib\optional

 

 

Userlevel 7
Badge +23

@Laurent Labonte , @Vijay Gulge , we are looking into 2.16.  Once we have an official reply, I’ll update here (as well as edit the original post for posterity).

Userlevel 7
Badge +23

Just a clearification.
If I download the latest maintenance release for the SP i’m running, in my case 11.24.23, then dowload the hotfix for LOG4J and add it to the software cache.

 

When I then update the clients there is only one step, both maintenance release, in my case .23, and the hotfix gets installed at the same time?

 

//Henke

That’s right.  Using Copy to Cache puts these into the central ‘bucket’ of updates.  Once you push updates out, CV applies the proper updates in that bucket, in the right order.  Nice and easy.

Userlevel 7
Badge +23

My Commcell is 11.24.23 and last night i installed the hotfix 4550,4552,4553 when i do a search still see the older versions for LOG4J still in there, does any one know if Hotfix suppose to remove the old LOG4J version 

 

LOG4J older version Path still shows up are:

D:\Program Files\CommVault\Simpana\Apache\lib

D:\Program Files\CommVault\Simpana\CVCIEngine\CvPreviewHome\webapps\CvContentPreviewGenApp\WEB-INF\lib

D:\Program Files\CommVault\Simpana\MessageQueue\lib\optional

 

 

Hi @NVKVadivelu .  There are 1.x versions of Log4j that are there, and this update does not remove them (as they are not affected by this specific vulnerability).  However, there are other CVEs that we are investigating, including ways to replace 1.x versions with the latest.

Once we know more, we’ll update here.

Userlevel 7
Badge +23

@KGreer  thanks for that detail.  I updated the original post instructions mentioning to point to the folder created by the unzip!

Userlevel 7
Badge +23

I added a FAQ into the original post which covers many of the recent questions.  If there’s anything the FAQ and post don’t cover, please don’t hesitate to ask.  As this evolves, I’ll keep collecting information, and answers.

Appreciate seeing our community coming together to assist and advise, ask and share :sunglasses:   you are all the best!

Badge

I updated our entire CV infrastructure including the hyperscale 1.5 and X appliances. For some reason our internal scans are still showing that two nodes have the Log4J vulnerability. The Linux nodes show 4553 applied but not 4551. Should both of these have been applied to hyperscale nodes and any other Linux nodes? Same with Windows I am only seeing 4553 and not 4552. 

Scan Output

Path : /usr/local/hedvig/server/lib/hedvig.jar
Installed version : 2.11.1
Fixed version : 2.15.0

11.24

11.24.23

11.24 Log4J Fix

4552

4553

4551

4553

Userlevel 7
Badge +23

@JohnK , appreciate you sharing!  We are looking into this and will update once there’s an answer!

Userlevel 2
Badge +6

I don't know if this falls into this category or if this is something else completely different, one of our departments is saying our servers we use for Commvault are using log4shell v1.2x. They need to update it to v2.16.0. Is this related to this topic? Does Commvault support this version of log4shell?

Badge

@TP_Erickson I thought I read in an earlier post that v1.2 has been deprecated since 2015 or so. And per this link sounds about right. https://logging.apache.org/log4j/1.2/download.html

Userlevel 2
Badge +6

@TP_Erickson I thought I read in an earlier post that v1.2 has been deprecated since 2015 or so. And per this link sounds about right. https://logging.apache.org/log4j/1.2/download.html

Im green when it comes to this topic. is this log4shell a third party app which the server has installed prior to Commvault software, or is this something that Commvault installs, and is resolved by updating the Commvault software? Thats where the confusion comes into play for me, because it comes down to weather or not the department that brought this up is asking us for permissions to update it, or if this is something to do with commvault software which my team needs to handle?

Userlevel 5
Badge +8

I don't know if this falls into this category or if this is something else completely different, one of our departments is saying our servers we use for Commvault are using log4shell v1.2x. They need to update it to v2.16.0. Is this related to this topic? Does Commvault support this version of log4shell?

1.x is not affected by this vulnerability, our updates are specifically targeting the CVSS 10 vulnerability and therefore updates the affected 2.x versions.  We are however investigating upgrade paths for 1.x nonetheless … this will be addressed separately.  In cases like HyperScale 1.x log4j are still maintained and supported by RedHat.

Userlevel 2
Badge +6

I don't know if this falls into this category or if this is something else completely different, one of our departments is saying our servers we use for Commvault are using log4shell v1.2x. They need to update it to v2.16.0. Is this related to this topic? Does Commvault support this version of log4shell?

1.x is not affected by this vulnerability, our updates are specifically targeting the CVSS 10 vulnerability and therefore updates the affected 2.x versions.  We are however investigating upgrade paths for 1.x nonetheless … this will be addressed separately.  In cases like HyperScale 1.x log4j are still maintained and supported by RedHat.

Thank you, but the first part of the question i asked was overlooked.  is this log4shell a third party app which the server has installed prior to Commvault software, or is this something that Commvault installs, That's where the confusion comes into play for me, because it comes down to weather or not the department that brought this up is asking us for permissions to update it, or if this is something to do with commvault software which my team needs to handle?

Userlevel 5
Badge +8

I don't know if this falls into this category or if this is something else completely different, one of our departments is saying our servers we use for Commvault are using log4shell v1.2x. They need to update it to v2.16.0. Is this related to this topic? Does Commvault support this version of log4shell?

1.x is not affected by this vulnerability, our updates are specifically targeting the CVSS 10 vulnerability and therefore updates the affected 2.x versions.  We are however investigating upgrade paths for 1.x nonetheless … this will be addressed separately.  In cases like HyperScale 1.x log4j are still maintained and supported by RedHat.

Thank you, but the first part of the question i asked was overlooked.  is this log4shell a third party app which the server has installed prior to Commvault software, or is this something that Commvault installs, That's where the confusion comes into play for me, because it comes down to weather or not the department that brought this up is asking us for permissions to update it, or if this is something to do with commvault software which my team needs to handle?

Log4j is a java based open sourced logging utility.  It is used in millions of applications across the world.  It is possible another application is running on the system that could be using this.

But it is used throughout  the Commvault platform, specifically affected versions are bundled with SQL, Oracle, and Cloud App installations.  It is only active if you have DB archiving, masking, or table level restore enabled...so its a slim edge case, yet one you want to address.  You need to focus on applying the hotfixes to those apps.  Hope that helps.

 

Userlevel 2
Badge +6

thank you, 

I don't know if this falls into this category or if this is something else completely different, one of our departments is saying our servers we use for Commvault are using log4shell v1.2x. They need to update it to v2.16.0. Is this related to this topic? Does Commvault support this version of log4shell?

1.x is not affected by this vulnerability, our updates are specifically targeting the CVSS 10 vulnerability and therefore updates the affected 2.x versions.  We are however investigating upgrade paths for 1.x nonetheless … this will be addressed separately.  In cases like HyperScale 1.x log4j are still maintained and supported by RedHat.

Thank you, but the first part of the question i asked was overlooked.  is this log4shell a third party app which the server has installed prior to Commvault software, or is this something that Commvault installs, That's where the confusion comes into play for me, because it comes down to weather or not the department that brought this up is asking us for permissions to update it, or if this is something to do with commvault software which my team needs to handle?

Log4j is a java based open sourced logging utility.  It is used in millions of applications across the world.  It is possible another application is running on the system that could be using this.

But it is used throughout  the Commvault platform, specifically affected versions are bundled with SQL, Oracle, and Cloud App installations.  It is only active if you have DB archiving, masking, or table level restore enabled...so its a slim edge case, yet one you want to address.  You need to focus on applying the hotfixes to those apps.  Hope that helps.

 

thank you, with that said sounds like it is something the other department can update, sounds like Commvault can accommodate the update, thank you for the information. 

Userlevel 7
Badge +23

All, it still does not seem clear having opened up these hotfixes why the installupdates and removeupdates are being updated in this … unless CV dev have put some kind of wrapper around something similar to the jndi class / lib inside these binaries ?

 

Noticed that no one answered your question directly!

Essentially, yes, you need to have some updates to the CS’s update distribution mechanism to push these patches.

Userlevel 2
Badge +9

My Commcell is 11.24.23 and last night i installed the hotfix 4550,4552,4553 when i do a search still see the older versions for LOG4J still in there, does any one know if Hotfix suppose to remove the old LOG4J version 

 

LOG4J older version Path still shows up are:

D:\Program Files\CommVault\Simpana\Apache\lib

D:\Program Files\CommVault\Simpana\CVCIEngine\CvPreviewHome\webapps\CvContentPreviewGenApp\WEB-INF\lib

D:\Program Files\CommVault\Simpana\MessageQueue\lib\optional

 

 

Hi @NVKVadivelu .  There are 1.x versions of Log4j that are there, and this update does not remove them (as they are not affected by this specific vulnerability).  However, there are other CVEs that we are investigating, including ways to replace 1.x versions with the latest.

Once we know more, we’ll update here.

 

What exactly does the released fix do, in the link below it is stated that it removes the affected versions. If there is a 1.x version, does it not do anything?

https://documentation.commvault.com/11.24/expert/146231_security_vulnerability_and_reporting.html

Also, I have 700 SQL Servers, is there a quick way to see which ones have table level restore enabled?

Best Regards.

Userlevel 7
Badge +23

Hi @0ber0n !  The current hotfix replaces the 2.x affected versions with 2.15.

We do have an update in the works to replace with 2.16 (I’ll update here once ready).

To see what is enabled and vulnerable, we have a report coming out, but for now you’d have to check which is not really feasible.  You could update all 700 to be safe, or wait for the report (likely later this week).

Badge

Vulnerability page https://documentation.commvault.com/11.26/essential/146231_security_vulnerability_and_reporting.html  talks about only for CVE-2021-44228, however any update on new release vulnerability CVE-2021-45046? 

Userlevel 4
Badge +10

Hi @0ber0n !  The current hotfix replaces the 2.x affected versions with 2.15.

We do have an update in the works to replace with 2.16 (I’ll update here once ready).

To see what is enabled and vulnerable, we have a report coming out, but for now you’d have to check which is not really feasible.  You could update all 700 to be safe, or wait for the report (likely later this week).

 Hello @0ber0n and everyone else,

 

Just to confirm the report that will highlight the clients that are using the specific features affected can be found in cloud now for download and import in to your Webconsole report engine.

https://cloud.commvault.com/webconsole/downloadcenter/packageDetails.do?packageId=21789&status=0&type=details

Userlevel 5
Badge +11

Vulnerability page https://documentation.commvault.com/11.26/essential/146231_security_vulnerability_and_reporting.html  talks about only for CVE-2021-44228, however any update on new release vulnerability CVE-2021-45046? 

Hi @Deepak G

 

In the FAQ section of this thread, you can see CV is working towards addressing this new CVE. 

Once the new patches are out, this sticky thread will be updated as well.

 

Thank you 

Badge

Thanks Mike,

Seems like there is no agents at server:

[root@commandcenter ~]# find / -name "apache"
/var/lib/selinux/targeted/active/modules/100/apache
/usr/share/selinux/targeted/default/active/modules/100/apache
/opt/commvault/Apache/work/Catalina/localhost/ROOT/org/apache
/opt/commvault/Apache/work/Catalina/localhost/adminconsole/org/apache
/opt/commvault/Apache/work/Catalina/localhost/console/org/apache
/opt/commvault/Apache/work/Catalina/localhost/webconsole/org/apache
/opt/commvault/Apache/work/Catalina/localhost/manager/org/apache
/opt/commvault/Apache/work/Catalina/localhost/global/org/apache
[root@commandcenter ~]# find / -name "Log4j"
[root@commandcenter ~]#

try:

find / -name log4j* 2>/dev/null

 

Badge +1

I received the Log4JAffectedServers.xml file from CV Support.  Does Anyone have instructions as to How to Run the Report to see what servers are Vulnerable in my Environment?  The XML report is Located here: https://cloud.commvault.com/webconsole/softwarestore/store.do#!/135/663/21789

Userlevel 7
Badge +15

Hi @Jeremy Fisher 

You will need to import the report xml into the Web Console and then you will see a list of affected clients and their update status.

https://cloud.commvault.com/webconsole/softwarestore/store.do#!/135/663/21789

Log4J affected servers

This report lists the servers that may potentially be impacted by Log4J vulnerability and the installation status of the corrective patches.

 

For info on how to do this, please see:

Downloading a Report from the Commvault Store

Downloading a Report from the Commvault Store on the Web Console

Importing Report Templates

Thanks,

Stuart

Reply