Upgrade org.apache.logging.log4j:log4j-core and log4j-api libraries#24507
Upgrade org.apache.logging.log4j:log4j-core and log4j-api libraries#24507agrawalreetika merged 1 commit intoprestodb:masterfrom
Conversation
03105ec to
d19906d
Compare
imjalpreet
left a comment
There was a problem hiding this comment.
@Dilli-Babu-Godari, I noticed that these libraries are also included with version 2.17.1 in presto-druid. Is there a specific reason we’re not upgrading them as well? Could you take a look?
d19906d to
062c0e7
Compare
I have now added the presto-druid as well. Could you please review it again? |
agrawalreetika
left a comment
There was a problem hiding this comment.
@Dilli-Babu-Godari Please verify both the dependency by checking the dependency tree, I still see these 2 are coming from some more packages.
0016219 to
a0993dc
Compare
|
|
In the release note entries, please add a link to a CVE. See Phrasing in the Release Notes Guidelines for an example and formatting. Because there are so many CVEs shown in this one, choose an appropriate CVE - perhaps the most recent one? |
imjalpreet
left a comment
There was a problem hiding this comment.
@Dilli-Babu-Godari thanks for the changes. Can you also confirm the output of the below commands:
./mvnw dependency:tree -Dincludes=org.apache.logging.log4j:log4j-api
./mvnw dependency:tree -Dincludes=org.apache.logging.log4j:log4j-core
a0993dc to
792118c
Compare
Thank you! |
Build is successful and the modules are having respective upgraded versions of |
imjalpreet
left a comment
There was a problem hiding this comment.
@Dilli-Babu-Godari LGTM, I am approving the PR but I have one minor request. The commit message exceeds the single-line character limit. Please update it to the following::
Upgrade log4j-core and log4j-api dependencies
Upgrade org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3
Upgrade org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
Fixes almost 25 CVEs.
Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3 Fixes almost 25 CVEs.
792118c to
1b03a02
Compare
|
@agrawalreetika @imjalpreet @jaystarshot |
|
@aaneja That makes sense to me. Would you be willing to handle the fix or revert? |
|
@aaneja Would it be a problem since we are just adding it in the DependencyManagement section of root pom to control the version? As part of the dependencies, it's still only included in the required connectors. Please let me know if I'm misunderstanding anything. |
|
@imjalpreet You're right that it doesn't bring it in to specific modules unless referenced. However, I would like to avoid the reference/temptation to refer to Log4J for the core modules. Having connectors take a hard reference to Log4J (when needed) seems like a good compromise |
revert of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
revert of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
revert of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
revert of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
revert of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
revert of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
refactor of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
refactor of PR: #24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
refactor of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
refactor of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
refactor of PR: prestodb#24507 Upgrading module specific dependencies. Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3 Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3



Description
Upgraded org.apache.logging.log4j:log4j-core from 2.17.1 to 2.24.3
Upgraded org.apache.logging.log4j:log4j-api from 2.17.1 to 2.24.3
Motivation and Context
Addresses below CVEs
Impact
Test Plan
Contributor checklist
ntributing guide, in particular code style and commit standards.
Release Notes
Please follow release notes guidelines and fill in the release notes below.