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

[SPARK-38665][BUILD] Upgrade jackson due to CVE-2020-36518 #35981

Closed
wants to merge 1 commit into from

Conversation

pan3793
Copy link
Member

@pan3793 pan3793 commented Mar 26, 2022

What changes were proposed in this pull request?

Upgrade jackson due to CVE-2020-36518

Why are the changes needed?

FasterXML/jackson-databind#2816
only jackson-databind has a 2.13.2.1 release
other jackson jars should stay at 2.13.2

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing tests.

@github-actions github-actions bot added the BUILD label Mar 26, 2022
@bjornjorgensen
Copy link
Contributor

@pan3793 Hi, I just got a PR from Snyk on my forked repo.

They - Snyk will do some additional changes to fix this issue.

@HyukjinKwon HyukjinKwon changed the title [SPARK-38665] Upgrade jackson due to CVE-2020-36518 [SPARK-38665][BUILD] Upgrade jackson due to CVE-2020-36518 Mar 27, 2022
Comment on lines +946 to +950
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${fasterxml.jackson.version}</version>
</dependency>
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need this dependency?

Copy link
Member Author

Choose a reason for hiding this comment

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

It comes from kubernetes-client, declare it in <dependencyManagement> to make the version consistent with other Jackson jars.

@pan3793
Copy link
Member Author

pan3793 commented Mar 27, 2022

@pan3793 Hi, I just got a PR from Snyk on my forked repo.

They - Snyk will do some additional changes to fix this issue.

Seems your PR comes from a bot, and the "additional changes" are code style stuff, which doesn't help with Jackson upgrades.

@bjornjorgensen
Copy link
Contributor

@MaxGekk Can we get this fix in 3.3?

Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

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

Can we get this fix in 3.3?

Yes, the fix FasterXML/jackson-databind@fcfc499#diff-d9b87da659a9c42368be10a152cd7d63a35970f21a38e1d054ad4248d04382e0 seems not risky since it introduces a threshold only.

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

LGTM for 3.3.0 too; we actually also had slightly inconsistent jackson jar versions to begin with, so good to fix that too

@wangyum wangyum closed this in c952b83 Mar 27, 2022
wangyum pushed a commit that referenced this pull request Mar 27, 2022
### What changes were proposed in this pull request?

Upgrade jackson due to CVE-2020-36518

### Why are the changes needed?

FasterXML/jackson-databind#2816
only jackson-databind has a 2.13.2.1 release
other jackson jars should stay at 2.13.2

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Existing tests.

Closes #35981 from pan3793/jackson.

Authored-by: Cheng Pan <chengpan@apache.org>
Signed-off-by: Yuming Wang <yumwang@ebay.com>
(cherry picked from commit c952b83)
Signed-off-by: Yuming Wang <yumwang@ebay.com>
@wangyum
Copy link
Member

wangyum commented Mar 27, 2022

Merged to master and branch-3.3.

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