-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-37625] update log4j to 2.15 #34877
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
Conversation
|
Can one of the admins verify this patch? |
|
This CVE issue have no impact on spark, we don't need to do anything. I don't think we need to update to log4j2 |
@AngersZhuuuu |
|
CVE-2021-44228 affects only |
|
https://nvd.nist.gov/vuln/detail/CVE-2019-17571 impacts on log4j 1.2.* |
|
This fix seems incomplete based on: https://logging.apache.org/log4j/2.x/manual/migration.html |
Unfortunately there is CVE-2021-4104 which is a new similar CVE issued for Log4j 1.x, in addition to CVE-2019-17571. |
|
Attaching some previous discussion regarding migrating from Log4j 1.x to 2.x Regarding CVE-2021-4104 @bradbm stated, supposedly this only affects if you have JMSAppender on your Log4j configuration, which Spark doesn't use by default. If your application uses JMSAppender you can see mitigations here https://access.redhat.com/security/cve/CVE-2021-4104 so you're not vulnerable. |
|
Even if spark is vulnerable to a very specific case this time, using a log4j version that is no longer maintained by Apache itself is not consistent at all. If migration issues have been identified since 2015, I'm quite surprise it has been fixed since ... |
|
I am afraid you are working parallel on this: #34895 |
|
@dannymeijer @cchantep @3333qwe et al - folks, nobody's dumb here. In fact, per above, this has been tried a few times over the years. The short summary is: Spark is easy to update to log4j 2, as it really does not use a concrete logging framework. But that doesn't change what its dependencies (mostly Hadoop) do. This change is not nearly sufficient, unfortunately, so I'd close it in favor of the duplicate, which is another try and farther along. |
ba8e25f to
9dc696c
Compare
What changes were proposed in this pull request?
Why are the changes needed?
Does this PR introduce any user-facing change?
How was this patch tested?