Bug 65748 - jmeter ships with a vulnerable version of log4j2
Summary: jmeter ships with a vulnerable version of log4j2
Status: REOPENED
Alias: None
Product: JMeter - Now in Github
Classification: Unclassified
Component: Main (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal with 2 votes (vote)
Target Milestone: JMETER_5.5
Assignee: JMeter issues mailing list
URL:
Keywords:
: 65750 65751 65752 65753 65808 65926 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-12-13 13:20 UTC by Ren
Modified: 2022-03-15 16:46 UTC (History)
9 users (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ren 2021-12-13 13:20:54 UTC
jmeter 5.4.1 ships with log4j2 in version 2.13.3 which is vulnerable to the Apache Log4j CVE-2021-44228 vulnerability. Older versions also ship with affected versions of log4j2.
The log4j2 library should be updated to 2.15.0 containing a fix.
Comment 1 Vladimir Sitnikov 2021-12-13 16:15:01 UTC
The upcoming version would include the fix, see https://github.com/apache/jmeter/pull/680
Comment 2 Vladimir Sitnikov 2021-12-13 18:23:02 UTC
*** Bug 65750 has been marked as a duplicate of this bug. ***
Comment 3 Vladimir Sitnikov 2021-12-14 04:43:20 UTC
*** Bug 65751 has been marked as a duplicate of this bug. ***
Comment 4 Vladimir Sitnikov 2021-12-15 14:16:06 UTC
*** Bug 65752 has been marked as a duplicate of this bug. ***
Comment 5 Vladimir Sitnikov 2021-12-16 10:07:58 UTC
*** Bug 65753 has been marked as a duplicate of this bug. ***
Comment 6 Ren 2021-12-23 10:30:41 UTC
more vulnerability vahe been detected in log4j2 <= 2.16.0 (CVE-2021-45105, CVE-2021-45046). So the minimum version of the log4j2 library should be 2.17.0.
Comment 7 NaveenKumar Namachivayam 2021-12-23 16:09:16 UTC
Pasting the response of Phillippe from Twitter.

JMeter is not concerned by this CVE-2021-45105 we don’t use such fragile patterns in the config. Also JMeter is not a server application and this CVE relates to DOS not control of server.
Comment 8 Arjan van Daalen 2022-01-03 16:55:06 UTC
I noticed that another vulnerability has been found in version 2.17.0 of log4j: https://logging.apache.org/log4j/2.x/index.html

2.17.1 fixes this.
Comment 9 Josiah Johnston 2022-01-11 18:15:41 UTC
+1 to Arjan

I greatly appreciate the Christmas Eve security release (upgrade to 2.17.0), but looks like Krampus delivered another vulnerability with CVE-2021-44832. That security patch was delivered a few days after Christmas. AFAIK, the only robust fix is upgrading to 2.17.1. https://logging.apache.org/log4j/2.x/security.html

FWIW, I noticed the issue when the CloudStrike CAST tool flagged this file as vulnerable: /usr/local/Cellar/jmeter/5.4.3/libexec/lib/log4j-core-2.17.0.jar
Comment 10 Felix Schumacher 2022-01-24 15:38:20 UTC
*** Bug 65808 has been marked as a duplicate of this bug. ***
Comment 11 Ren 2022-02-03 13:15:18 UTC
Hi,
are there any plans to make a release using the 2.17.1 version of log4j? My customer has locked the available versions in our maven repository to 2.17.1 and higher, which breaks my maven build using the maven-jmeter plugin to run performance/regression tests.
This plugin relies on the declared dependencies of jmeter artifacts to set up a running jmeter instance and so tries to downöoad the 2.17.0 version of log4j.

Regards
René Brandenburger
Comment 12 Felix Schumacher 2022-02-03 15:14:27 UTC
In https://ardesco.lazerycode.com/oss/2021/12/28/fixing-security-flaws-with-the-jmeter-maven-plugin.html are described a couple of workarounds. The last looks like a good solution to me, but note, that I haven't tested it.
Comment 13 Felix Schumacher 2022-03-02 16:01:13 UTC
*** Bug 65926 has been marked as a duplicate of this bug. ***
Comment 14 Vishaldeep Gupta 2022-03-02 16:55:22 UTC
[Bug 65926] JMeter latest version 5.4.3 is updated to log4j 2.17.0 , But our security wants to upgrade to 2.17.1 . When and which release apache JMeter be available with log4j version 2.17.1 . Its critical.
Comment 15 Felix Schumacher 2022-03-12 14:50:36 UTC
JMeter 5.5 is currently being prepared to be voted on (and if vote succeeds, it will be released with log4j2 2.17.2).

For those who which to use older versions of JMeter which were shipped with an old version of log4j2: You can replace the shipped log4j2 jars (located in the lib folder) with newer ones (tested with log4j2 2.17.2, but any 2.x version is probably fine). For more details look into the linked PR https://github.com/apache/jmeter/pull/680
Comment 16 Vishaldeep Gupta 2022-03-15 16:46:51 UTC
I did replace the shipped log4j2 jars (located in the lib folder) with newer ones with my old JMeter 5.2.1 install and it worked . Will same work for Older JMeter 4.0 and JMeter 3.3 . Though I did not see any error in log when loading JMeter but will new log4j jars wor with JMeter 3.3 and 4.0
Comment 17 The ASF infrastructure team 2022-09-24 20:38:22 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/5601