Skip to content
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

Vulnerability fix : Exclude the transitive dependency org.apache.ivy:ivy from hydrator-test #153

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

yjhawar
Copy link

@yjhawar yjhawar commented Dec 14, 2022

Excluded the ivy dependency as affected versions of this package are vulnerable to Directory Traversal in the 'IvyPatternHelper' class.

[INFO] io.cdap.plugin:amazon-s3-plugins:jar:1.19.0-SNAPSHOT
[INFO] - io.cdap.cdap:hydrator-test:jar:6.9.0-SNAPSHOT:provided
[INFO] - io.cdap.cdap:cdap-unit-test:jar:6.9.0-SNAPSHOT:provided
[INFO] - io.cdap.cdap:cdap-spark-core2_2.11:jar:6.9.0-SNAPSHOT:provided
[INFO] - org.apache.spark:spark-core_2.11:jar:2.1.3:provided
[INFO] - org.apache.ivy:ivy:jar:2.4.0:provided

@@ -127,6 +127,10 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The org.apache.ivy:ivy transitive dependency is present in org.apache.spark:spark-core_2.11 dependency of io.cdap.cdap:cdap-spark-core2_2.11 module. Ideally the transitive dependency should be excluded from direct dependency in CDAP's cdap-spark-core2_2.11 module. (link)
This would ensure that the vulnerability is fixed at all places.

Output of mvn dependency:tree -Dincludes='org.apache.ivy:ivy':

[INFO] \- io.cdap.cdap:hydrator-test:jar:6.9.0-SNAPSHOT:provided
[INFO]    \- io.cdap.cdap:cdap-unit-test:jar:6.9.0-SNAPSHOT:provided
[INFO]       \- io.cdap.cdap:cdap-spark-core2_2.11:jar:6.9.0-SNAPSHOT:provided
[INFO]          \- org.apache.spark:spark-core_2.11:jar:2.1.3:provided
[INFO]             \- org.apache.ivy:ivy:jar:2.4.0:provided
[INFO] ------------------------------------------------------

Copy link
Contributor

@dli357 dli357 Dec 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is ok assuming we don't have any tests that use this functionality. However, we might not be able to exclude this dependency from io.cdap.cdap:cdap-spark-core2_2.11 entirely because there could be users who use the Advanced Dependency Management feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants