confluentinc / schema-registry

Confluent Schema Registry for Kafka
https://docs.confluent.io/current/schema-registry/docs/index.html
Other
2.23k stars 1.12k forks source link

schema-registry uses vulnerable dependencies #1525

Open pavel-sbor opened 4 years ago

pavel-sbor commented 4 years ago

Description I checked confluent kafka 5.5.1 distribution with WhiteSource and find out that some libraries have vulnerabilities. Here they are:

To Reproduce Download Confluent Kafka 5.5.1 distribution (for example curl -O http://packages.confluent.io/archive/5.5/confluent-community-5.5.1-2.12.tar.gz) Open share/java/schema-registry folder in it and find jars, listed above. Open share/java/kafka-serde-tools folder in it and find guava-24.0-jre.jar. Check that these jars with corresponding versions are mentioned in corresponding vulnerability description (for example, on https://nvd.nist.gov/vuln/detail/CVE-2019-17571 log4j 1.2.17 is mentioned in "Known Affected Software Configurations" list)

Expected behavior

Actual behaviour

Additional context

OneCricketeer commented 4 years ago

I'm not entirely sure these are isolated dependencies in this repo. confluent-common is where they exist

log4j 1.2 is part of Apache Kafka, and there already is an open JIRA for it

Guava and Hibernate Validator might be used in Kafka. Cannot recall

I'm not entirely sure where snakeyaml is used, if anywhere. Could probably be excluded

billwenboli commented 3 years ago

We also found a few other vulnerabilities: netty-codec: need to upgrade to 4.1.46 from 4.1.42 woodstox-core: need to upgrade to 5.3.0 from 5.0.3 These two are all part of hadoop-common. Upgrading hadoop-common to the latest version does not upgrade the above two.

janjwerner-confluent commented 2 years ago

Pavel, Thank you for raising this issue. The CVE has been addressed with the update of the respective packages. As for log4j - based on the product Confluent ships either a custom in-house built non vulnerable version or reload4j. For more information please refer to https://support.confluent.io/hc/en-us/articles/4412615410580-December-2021-Log4j-Vulnerabilities-Advisory We recommend using the latest release 5.5.11 http://packages.confluent.io/archive/5.5/confluent-5.5.11-2.12.zip