-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Upgrade helix-core to 1.4.3 to address CVE-2023-38647 #25812
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
Upgrade helix-core to 1.4.3 to address CVE-2023-38647 #25812
Conversation
imjalpreet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ShahimSharafudeen, thank you. Why don't we add this to the root pom's DependencyManagement?
|
Thanks for the release note! Minor formatting nit. |
@imjalpreet - This transitive dependency is only used in the presto-pinot modules, which is why I added it directly to those modules instead of the root pom.xml |
Thanks @steveburnett for the correction. I've made the changes accordingly. |
@ShahimSharafudeen IMO, I’d still suggest adding it to the root POM. This way, any future additions to other modules will be automatically covered, and it also simplifies version management across multiple modules. |
4efb71c to
91e2e21
Compare
@imjalpreet - Agreed with your point. I’ve moved the dependency to the root POM to ensure future modules are automatically covered and to simplify version management across the project. |
imjalpreet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM, a small nit.
pom.xml
Outdated
| <dependency> | ||
| <groupId>org.apache.helix</groupId> | ||
| <artifactId>helix-core</artifactId> | ||
| <version>1.4.3</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: please add the version as a property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
pom.xml
Outdated
| <dependency> | ||
| <groupId>org.apache.helix</groupId> | ||
| <artifactId>helix-core</artifactId> | ||
| <version>1.4.3</version> | ||
| </dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, add a comment to explain why we have added this here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
91e2e21 to
c5b0647
Compare
imjalpreet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ShahimSharafudeen, thank you, it LGTM, just a small suggestion to move this dependency just after the pinot-driver dependency here:
Lines 2242 to 2246 in e53f403
| <dependency> | |
| <groupId>org.apache.pinot</groupId> | |
| <artifactId>presto-pinot-driver</artifactId> | |
| <version>${dep.pinot.version}</version> | |
| </dependency> |
pom.xml
Outdated
| </exclusions> | ||
| </dependency> | ||
|
|
||
| <!-- Add the helix-core dependency to the root pom.xml to upgrade the transitive helix-core version used by the Presto Pinot driver--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <!-- Add the helix-core dependency to the root pom.xml to upgrade the transitive helix-core version used by the Presto Pinot driver--> | |
| <!-- Upgrades the transitive helix-core version used by the Presto Pinot driver to address CVE-2023-38647 --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@imjalpreet – As per your request, I’ve updated the comment details based on your suggestion.
c5b0647 to
9b586ff
Compare
imjalpreet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @ShahimSharafudeen
tdcmeehan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an update to the Pinot driver which fixes this CVE?
@tdcmeehan, I had checked this earlier. There hasn't been any new version released since March 2023, and the latest version is still using helix-core:1.0.4. https://mvnrepository.com/artifact/org.apache.pinot/presto-pinot-driver/0.12.1 |
|
Can we create an issue in Pinot and link to that issue here? And potentially contribute this change upstream to the Pinot driver? |
|
@tdcmeehan, the This PR was originally intended as a temporary CVE fix for the existing implementation we had added at IBM before upgrading to JDK 17. Now that we’re on Java 17, the Pinot library upgrade is already underway. We’re moving to the latest libraries and removing the deprecated Pinot library upgrade PR: #25785 |
|
Thanks, @imjalpreet , for your clarification on the Pinot driver change during my absence. @tdcmeehan @imjalpreet — Could you please confirm whether this PR is still relevant to keep open, since the same fix is already included in the Pinot library upgrade PR? |
|
@ShahimSharafudeen, we can close this in favour of #25785 |
Description
Upgraded helix-core to version 1.4.3 to address CVE-2023-38647, as the vulnerable version (helix-core:1.0.4) was introduced as a transitive dependency through the presto-pinot-driver.
Motivation and Context
Impact
Test Plan
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.