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

[Security] Upgrade libthrift to 0.14.2 to address multiple CVEs #2695

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Apr 19, 2021

Fixes #2512

Motivation

See #2512

The current libthrift version 0.12.0 has multiple vulnerabilities:

Motivation

  • Upgrade libthrift version to 0.14.1 and fix compilation errors
  • exclude new transitive dependencies org.apache.tomcat.embed:tomcat-embed-core and javax.annotation:javax.annotation-api

@lhotari lhotari force-pushed the lh-upgrade-libthrift branch 2 times, most recently from e0422a9 to 48aaf58 Compare May 18, 2021 15:25
Copy link
Contributor

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

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

@lhotari @eolivelli I debugged through the test failures and traced the rootcause to https://issues.apache.org/jira/browse/THRIFT-5383 fixed in apache/thrift#2366
We'll need libthrift 0.15.0 (or 0.14.2, if that happens). Json Parsing in 0.14.0 and 0.14.1 is completely broken.

@dlg99
Copy link
Contributor

dlg99 commented May 27, 2021

I added https://issues.apache.org/jira/browse/THRIFT-5424 - mailing lists didn't seem active (outside of auto posts from jira)

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM

@sijie @yzang PTAL

@lhotari lhotari changed the title [Security] Upgrade libthrift to 0.14.1 to address multiple CVEs [Security] Upgrade libthrift to 0.14.2/0.15 to address multiple CVEs Jun 9, 2021
@lhotari lhotari marked this pull request as draft June 9, 2021 11:23
@lhotari lhotari changed the title [Security] Upgrade libthrift to 0.14.2/0.15 to address multiple CVEs [Security] Upgrade libthrift to 0.14.2 to address multiple CVEs Jun 17, 2021
@lhotari lhotari force-pushed the lh-upgrade-libthrift branch from 48aaf58 to 635bb54 Compare June 18, 2021 13:35
@lhotari lhotari marked this pull request as ready for review June 18, 2021 13:35
@lhotari
Copy link
Member Author

lhotari commented Jun 18, 2021

libthrift 0.14.2 has been released and this PR has been updated. @sijie @yzang Please review.

@lhotari lhotari requested a review from dlg99 June 18, 2021 13:37
@lhotari
Copy link
Member Author

lhotari commented Jun 18, 2021

@sijie @merlimat Please review. This is part of the security fixes that were discussed in the Pulsar Community meeting.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

+1

@eolivelli
Copy link
Contributor

@dlg99 can you please take another look?

Copy link
Contributor

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

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

lgtm

@fpj
Copy link
Contributor

fpj commented Aug 13, 2021

@lhotari Thanks for the PR. When I tried to cherry-pick it to branch-4.14, I got a conflict. To be safe, I have not tried to resolve it, could you submit another PR for branch-4.14?

lhotari added a commit to lhotari/bookkeeper that referenced this pull request Aug 13, 2021
Fixes apache#2512

### Motivation

See apache#2512

The current libthrift version 0.12.0 has multiple vulnerabilities:
  - CVE-2019-0205 , CVE-2019-0210 , CVE-2020-13949

### Motivation

- Upgrade libthrift version to 0.14.1 and fix compilation errors
- exclude new transitive dependencies org.apache.tomcat.embed:tomcat-embed-core and javax.annotation:javax.annotation-api

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None>

This closes apache#2695 from lhotari/lh-upgrade-libthrift

(cherry picked from commit ea08e6d)
@lhotari
Copy link
Member Author

lhotari commented Aug 13, 2021

@fpj Here's the PR for branch-4.14: #2762

fpj pushed a commit that referenced this pull request Aug 13, 2021
…port to branch-4.14)

### Motivation

backport #2695 to branch-4.14

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Flavio Junqueira <None>

This closes #2762 from lhotari/lh-upgrade-libthrift-4.14 and squashes the following commits:

79b78b6 [Lari Hotari] [SECURITY] Upgrade libthrift to 0.14.2 to address multiple CVEs
69360e1 [Enrico Olivelli] Fix tests pom, set version to 4.14.1-SNAPSHOT
e54be34 [Jia Zhai] Fix Bouncy Castle fips incompatible issue (#2740)
4c078bb [Matteo Merli] [maven-release-plugin] rollback changes from release preparation of v4.14.1-rc0
f7a9442 [Matteo Merli] [maven-release-plugin] prepare release v4.14.1-rc0
4292db8 [hangc0276] fix prometheus metric provider bug and add test to cover label scope …
12f0f5f [Matteo Merli] Version 4.14.1-SNAPSHOT
4acca53 [Andrey Yegorov] Include gradle files into the source artifact for releases, exclude site2/**
f24bef6 [Andrey Yegorov] [maven-release-plugin] rollback changes from release preparation of v4.14.0-rc0
4729682 [Andrey Yegorov] [maven-release-plugin] prepare release v4.14.0-rc0
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Fixes apache#2512

### Motivation

See apache#2512 

The current libthrift version 0.12.0 has multiple vulnerabilities:
  - CVE-2019-0205 , CVE-2019-0210 , CVE-2020-13949

### Motivation

- Upgrade libthrift version to 0.14.1 and fix compilation errors
- exclude new transitive dependencies org.apache.tomcat.embed:tomcat-embed-core and javax.annotation:javax.annotation-api

Reviewers: Enrico Olivelli <eolivelli@gmail.com>, Andrey Yegorov <None>

This closes apache#2695 from lhotari/lh-upgrade-libthrift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There is a vulnerability inApache Thrift 0.12.0,upgrade recommended
4 participants