Summary
A vulnerability identified as CVE-2021-44228 has been reported in the Apache Log4j library. This vulnerability may allow for remote code execution in susceptible products.
Description
Code Insight v6 and v7 are not impacted by CVE-2021-44228.
The table below lists Code Insight v6 and v7 components, and the logging frameworks used in those components.
| Item | Code Insight v6 | Code Insight v7 | Remarks |
|---|---|---|---|
|
Core Server |
Log4j 1.x |
Log4j 1.x |
Log4j 1.x is not affected by CVE-2021-44228. Regarding CVE-2021-4104, in Code Insight v6 and v7, |
|
Code Aware |
SLF4J (+logback) |
SLF4J (+logback) |
Log4j v2.x files are shipped but not configured and used. See the note below. |
|
Plugins |
Not Applicable |
Apache Commons Logging 1.x | |
|
Code Insight Standalone Scanner |
Not Applicable |
Apache Commons Logging 1.x |
This standalone scanner has been made available from 2021 R3. |
SLF4J is a wrapper logging framework which can use one of the logging implementations like logback, log4j, java.util.logging, etc. In the Code Aware module, we use SLF4 logging, which in turn points to and uses native implementation of logback library.
Log4j 2 jar files are shipped and present in the Code Insight install location, however Log4j 2x library is neither:
- Configured to be used with SLF4j.
- Nor directly referenced in the code.
Hence, despite the presence of Log4j 2 files in the Code Insight application, it can be confirmed that Log4j 2 libraries are not used for logging.
Resolution
No fix is required.
Workaround
As Code Insight has no dependency on the included Log4j 2 libraries, these can be deleted using the instructions below:
Remediation Steps for Code Insight v7.x
Perform the following steps to remove Log4j 2 files from Code Insight in case of standalone installation (Core and Scan server in the same machine):
- Log in as the user who performed the Code Insight installation.
- Shut down the Code Insight application. (or stop the service if configured in service mode).
- Navigate to
$Codeinsight_Install_Location\tomcat\webapps\codeaware\WEB-INF\lib - Delete files
log4j-api-2.11.1.jarandlog4j-core-2.11.1.jarfrom the directory - Delete the
codeaware.warfile from$Codeinsight_Install_Location\tomcat\webappsfolder. The following steps remove log4j jar files from Code Aware component which is used by plugins or standalone scanner for scan. - Navigate to
$Codeinsight_Install_Location\tomcat\webapps\codeinsight\WEB-INF\classes. - Take a backup of the
codeaware-embedded-<Version>.zipfile. - Navigate to:
- Linux:
$Codeinsight_Install_Location/7-zip/lnx64
or - Windows:
$Codeinsight_install_location\7-zip\win64
- Linux:
- Execute below command from terminal or command prompt to remove
log4j-api-2.11.1.jarandlog4j-core-2.11.1.jarfrom thecodeaware-embedded-<Version>.zip. This command used the 7z tool supplied with application to remove files with in the zip file- Linux:
- ./7z d Codeinsight_Install_Location/tomcat/webapps/codeinsight/WEB-INF/classes/codeaware-embedded-<Version>.zip log4j-api-2.11.1.jar log4j-core-2.11.1.jar -r - Windows:
7z.exe d Codeinsight_Install_Location\tomcat\webapps\codeinsight\WEB-INF\classes\codeaware-embedded-<Version>.zip log4j-api-2.11.1.jar log4j-core-2.11.1.jar -r
- Linux:
- Start the Code Insight application
Removing Log4j 2 files from Code Insight When Core and Scan Servers on Different Machines
This section contains the steps to remove Log4j 2 files from Code Insight in case of Core and Scan servers installed on different machines
Scan Server(s)
Perform these steps on each scan server:
- Log in as the user who performed the Code Insight installation.
- Shutdown the Code Insight scanner application (or stop the service if configured in service mode).
- Navigate to
$Codeinsight_Install_Location\tomcat\webapps\codeaware\WEB-INF\lib. - Delete files
log4j-api-2.11.1.jarandlog4j-core-2.11.1.jarfrom the directory. - Delete the
codeaware.warfrom the$Codeinsight_Install_Location\tomcat\webappsfolder. - Start the Code Insight scanner server. (Perform this step after completing steps on core server.)
Core Server(s)
Perform these steps on each core server.
- Log in as the user who performed the Code Insight installation.
- Shutdown the Code Insight core application (or stop the service if configured in service mode). Following steps removes log4j jar files from Code Aware component which is used by plugins or standalone scanner for scan.
- Navigate to
$Codeinsight_Install_Location\tomcat\webapps\codeinsight\WEB-INF\classes. - Take the back up of the
codeaware-embedded-<Version>.zipfile. - Navigate to
- Linux:
$Codeinsight_Install_Location/7-zip/lnx64
or - Windows:
$Codeinsight_install_location\7-zip\win64
- Linux:
- Execute below command from terminal or command prompt to remove
log4j-api-2.11.1.jarandlog4j-core-2.11.1.jarfrom thecodeaware-embedded-<Version>.zip. This command used the 7z tool supplied with application to remove files with in the zip file.- Linux:
- ./7z d Codeinsight_Install_Location/tomcat/webapps/codeinsight/WEB-INF/classes/codeaware-embedded-<Version>.zip log4j-api-2.11.1.jar log4j-core-2.11.1.jar -r - Windows: -
7z.exe d Codeinsight_Install_Location\tomcat\webapps\codeinsight\WEB-INF\classes\codeaware-embedded-<Version>.zip log4j-api-2.11.1.jar log4j-core-2.11.1.jar -r
- Linux:
- Start the Code Insight core server.
Scan Plugin and Standalone Scanner Changes
The following steps are to be performed for cases in which the scan plugins or standalone scanner are in use for scanning. Since the plugins and standalone scanner download codeaware-embedded-<Version>.zip during scan, you are likely to find old references to the log4 jars on these machines. The following steps will delete all references to this file.
If no plugins or standalone scanner are in use, the following steps can be skipped.
- On the machine(s), where the plugin or standalone scanner is configured, locate the user who performed the Code Insight installation or executed the plugin or standalone scanner.
- Delete the directory
$user_dir/.codeinsight. Refer the example below:- Linux:
/home/<user>/.codeinsight - Windows:
C:/Users/<user>/.codeinsight
- Linux:
- The
.codeinsightdirectory in case of Linux would be a hidden directory (performls -alto list.codeinsightdirectory). - In case of Jenkins or Bamboo plugins, if remote agent nodes are configured, above step has to be done on the remote agent nodes.
Remediation Steps for Code Insight v6.x / Core and Scan Servers on Same Machine
To remove log4j v2.x files from Code Insight in case of standalone installation (Core & Scan server in the same machine), perform the following steps:
- Log in as the user who performed the Code Insight installation.
- Shut down the Code Insight application. (or stop the service if configured in service mode)
- Navigate to
$Codeinsight_Install_Location\tomcat\webapps\codeaware\WEB-INF\lib. - Delete files
log4j-api-2.11.1.jarandlog4j-core-2.11.1.jarfrom the directory. - Delete the
codeaware.warfrom the$Codeinsight_Install_Location\tomcat\webappsfolder. - Start the Code Insight application.
Remediation Steps for Code Insight v6.x / Core and Scan Servers on Different Machines
To remove Log4j 2 files from Code Insight in case of Core and Scan servers installed on different machines, perform the following steps on each scan server:
- Log in as the user who performed the Code Insight installation.
- Shut down the Code Insight scanner application (or stop the service if configured in service mode).
- Navigate to
$Codeinsight_Install_Location\tomcat\webapps\codeaware\WEB-INF\lib. - Delete files
log4j-api-2.11.1.jarandlog4j-core-2.11.1.jarfrom the directory. - Delete the
codeaware.warfrom$Codeinsight_Install_Location\tomcat\webappsfolder. - Start the Code Insight scanner server.
Related Articles
CVE-2021-44228: Log4j Vulnerability Impact on InstallAnywhere 11Number of Views CVE-2021-44228: Log4j Vulnerability Impact on FlexNet Operations On-Premises 8Number of Views CVE-2021-44228: Log4j vulnerability impact on Standalone Code Aware 16Number of Views CVE-2021-44228: Log4j vulnerability impact on InstallShield 8Number of Views CVE-2021-44228: Log4j vulnerability impact on FlexNet Embedded 20Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago