-
Notifications
You must be signed in to change notification settings - Fork 25.6k
updated log4j to version 2.13.2 #65420
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
updated log4j to version 2.13.2 #65420
Conversation
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
|
ok to test |
|
@tobias-trabelsi-sonarsource can you try running |
|
Hi @pgomulka currently there is a bunch of forbidden APIs and one missing class: EDIT: reverted back to 2.13.2 as it looks like there was a breaking change in there ( see CI run ) |
This reverts commit 152772c.
|
@tobias-trabelsi-sonarsource you made the right changes, thank you. |
|
this is what I found out so far about this failure. The test fails because we set the securityManager (ESTestCase:232) and then try to create log4j PatternLayout which in log4j 2.13.2 is using This do not fail in production as we initialise our testing before security manager. if we could set security after the or even move these log4j tests to evil logging test module and disable security manager there? can we set a |
|
I think this needs to be fixed upstream in log4j. There are a few problems in The only workaround would be patching the LoaderUtil class at build time, but we should try to fix this upstream before considering that as an interim solution. |
|
Urgh this is a little bit out of my knowledge area. Will any of you look into the log4j codebase to propose the fix upstream? Should i leave this PR open until this is patched or should i close the PR? |
|
@tobias-trabelsi-sonarsource I will try to raise a log4j issue and possibly work on a fix there. |
|
Okay then i will close this one for now. Good luck on your journey :) |
Hello there 👋
it looks like we have a common CVE justification for the DoD, so maybe we could update log4j to fix it. Looks like you already justified it here but this might be a quick win :)
Also there is another PR that seems stale for ~ a year now that also wanted to update log4j.
We at SonarSource would prefer if this gets backported to the 7.x branch as well
This would fix GHSA-vwqq-5vrc-xw9h as well as #45523