-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update log4j2 to 2.15.0 to fix CVE-2021-44228: Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints #680
Conversation
…tures do not protect against attacker controlled LDAP and other JNDI related endpoints See https://logging.apache.org/log4j/2.x/security.html
Pardon the naive question, but how would one go about integrating this change into an existing JMeter release? |
If you want to patch an existing JMeter release, you can replace the |
An alternative option is to delete
|
Thank you @FSchumacher ! Will JMeter automatically update the ClassPath with the new filenames or is it using some kind of regex to pull in those JAR files? |
Thank you, @vlsi! I'll give that a try if replacing the log4j JAR files doesn't work. Much appreciated. |
It loads all the jmeter/src/launcher/src/main/java/org/apache/jmeter/NewDriver.java Lines 98 to 102 in 4038421
|
@vlsi - Большое спасибо! :) |
Any ideas or ETA when would the public release be there with the security fix included? |
@mazen160 rather than wait for a new release (and potentially new bugs) you can follow the advice given by @FSchumacher and @vlsi above and download the new log4j 2:16.0 release at https://logging.apache.org/log4j/2.x/download.html and replace the JAR files that JMeter uses, which you can find in $JMETER_HOME/libexec/lib/log4j-* There are 4 JAR files to replace:
Just delete the existing log4j-* JAR files in $JMETER_HOME/libexec/lib and then copy over the 4 similarly named files from the 2.16.0 download into $JMETER_HOME/libexec/lib. I did this with my old JMeter 5.2.1 install and it worked like a charm :) @vlsi I know this pull request was merging in version 2.15.0 of log4j, but based on the changelog for log4j, it seems as though the CVE fix is actually in the 2.16.0 release: Here is the log4j ticket detailing the fix (disabling JNDI by default) for CVE-2021-44228 that is included in the 2.16.0 release. |
I can confirm that @FSchumacher's suggestion works with JMeter 5.4.1 and log4j 2.16.0. Thank you! @vlsi Many thanks for your fix! :) Edit: Also works flawlessly with the JMeter Plugins Manager and installed plugins like the Flexible File Writer |
hi all, I'm getting the following error when replacing the log4j JAR files: This happens for all the files in the /lib/ext/ folder, any idea why they might be affected? The steps I did were:
edit: it seems to work fine up until the creating a new tgz step, any advice on that? |
Note the leading dot "." in the file name contained in the message. Maybe a broken operating system like MacOS added such unwanted additional files to the directory which then got included in your new tarball, but are not really jar files but instead OS specific metadata files. For the rest of the world such files are garbage leading to unwanted behavior. |
in case you're running JMeter in Windows, I wrote a batch file that automate what you need to do; https://dev.to/sebiboga/jmeter-541-fix-for-security-cve-2021-44228-issue-4joc |
Quick reminder that there are unreleased nightly builds for JMeter available that you can use at your own risk :) |
No Fix yet, Manual bypass seems to work fine : apache/jmeter#680 (comment)
* Add Apache JMeter No Fix yet, Manual bypass seems to work fine : apache/jmeter#680 (comment) * Add IBM Business Automation Workflow * Add Business Automation Workflow * Business Automation Workflow updated as requested Co-authored-by: count0x00 <tjacomast@xs4all.nl>
The fix is available in JMeter 5.4.2: https://lists.apache.org/thread/bskl3n41ty0x3mvt92548xyxds2vsk6s |
@vlsi Do you plan to update log4j to 2.16 to fix CVE-2021-45046? |
@psmietanaa it's already updated in JMeter 5.4.2 (I just checked) |
🙀 this is not fun: https://issues.apache.org/jira/browse/LOG4J2-3230 |
See https://logging.apache.org/log4j/2.x/security.html