zookeeper icon indicating copy to clipboard operation
zookeeper copied to clipboard

ZOOKEEPER-4532: Bump jetty to 9.4.46.v20220331(avoids CVE-2022-22965)

Open fu-turer opened this issue 2 years ago • 10 comments

fu-turer avatar Apr 24 '22 09:04 fu-turer

@maoling @eolivelli

fu-turer avatar Apr 24 '22 09:04 fu-turer

This PR is related to which jira? Please mention the jira number in the PR title.

arshadmohammad avatar Apr 27 '22 18:04 arshadmohammad

This PR is related to which jira? Please mention the jira number in the PR title.

@arshadmohammad done

fu-turer avatar Apr 28 '22 13:04 fu-turer

Can you please also update the License files?

@eolivelli done

fu-turer avatar Apr 28 '22 13:04 fu-turer

@fu-turer How CVE-2022-2296 is related to jetty, can you pls provide some information. If this CVE is applicable to used jetty version 9.4.43.v20210629, any idea why dependency-check:check is not failing ?

arshadmohammad avatar May 05 '22 19:05 arshadmohammad

@fu-turer How CVE-2022-2296 is related to jetty, can you pls provide some information. If this CVE is applicable to used jetty version 9.4.43.v20210629, any idea why dependency-check:check is not failing ?

@arshadmohammad sorry,it should be CVE-2022-22965

fu-turer avatar May 09 '22 01:05 fu-turer

sorry,it should be CVE-2022-22965

actually CVE-2022-22965 is about Spring (and we don't use Spring in ZooKeeper). I think the CVE you are looking for is CVE-2022-24823. At lease when I run the CVE check on the current master branch, this is the only CVE it finds and it is indeed fixed with netty update.

I'll update the title accordingly

symat avatar May 17 '22 17:05 symat

this is the only CVE it finds and it is indeed fixed with netty update.

hmm... but this PR is about jetty, not netty. So why do we want to upgrade jetty? Maybe I misunderstand something... @fu-turer , why do you think this CVE-2022-22965 is affecting ZooKeeper and how this is related to Jetty?

symat avatar May 17 '22 17:05 symat

On the other hand we don't necessarily need a CVE to upgrade jetty I think. I just want to understand the reasoning.

symat avatar May 17 '22 17:05 symat

Will this get merged? I see ZOOKEEPER-4599 reported also for CVE-2022-2048 on the current Jetty version.

edwin092 avatar Sep 23 '22 09:09 edwin092

Thank you @edwin092 , CVE-2022-2048 indeed looks scary and it does affect ZooKeeper. Unfortunately we need at least jetty 9.4.47 to fix it, so this PR in its current form is not enough.

@fu-turer - can you update your PR to go up to Jetty 9.4.47? Then I can merge it to all active branches. Or if you have no time for it, then I can submit an other PR for ZOOKEEPER-4599 Thank you!!

symat avatar Sep 26 '22 11:09 symat

@fu-turer @symat any chance this will get addressed?

edwin092 avatar Oct 11 '22 08:10 edwin092