| protobuf-java-3.20.1.jar |
Direct dependency here:
|
implementation group: 'com.google.protobuf', name: 'protobuf-java-util', version: '3.20.1' |
, but ALSO,
|
implementation "io.opentelemetry:opentelemetry-proto:1.6.0-alpha" |
includes io.opentelemetry:opentelemetry-protoat 1.6.0-alpha, which includes protobuf-java at 3.20.1 as shown here: https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-proto/1.6.0-alpha. and ALSO, shim includes grpc-protobuf at v1.46, as seen here
|
implementation 'io.grpc:grpc-protobuf:1.46.0' |
which includes protobuf-java at v3.20.1 as shown here: https://mvnrepository.com/artifact/io.grpc/grpc-protobuf/1.46.0, and also includes fabric-protos at v0.2.0 as shown here:
|
implementation group: 'org.hyperledger.fabric', name:'fabric-protos', version:'0.2.0' |
and fabric-protos at v0.2.0 includes protobuf-java at v3.20.1 as shown here: https://mvnrepository.com/artifact/org.hyperledger.fabric/fabric-protos/0.2.0 ... AND ALSO I also see a link from fabric-chaincode-java in several examples that go to fabric-protos v0.1.3, which includes protobuf-java at v3.19.4 -- example
|
<artifactId>fabric-protos</artifactId> |
and second example
|
<artifactId>fabric-protos</artifactId> |
and also
|
<artifactId>fabric-protos</artifactId> |
|
https://nvd.nist.gov/vuln/detail/CVE-2022-3509, https://nvd.nist.gov/vuln/detail/CVE-2022-3510, https://nvd.nist.gov/vuln/detail/CVE-2022-3171 |
Oct 20, 2023 |
#310 definitely helps. Moved the direct dependency to v3.19.6, which is not vulnerable. It also moved io.grpc.grpc-protobuf to v1.45.4, which uses protobuf-java v3.19.6. However, this change does not address the dependency on io.opentelemetry:opentelemetry-protoat 1.6.0-alpha, or the dependency on fabric-protos at v0.2.0. |
fabric-chaincode-shim, which is imported here: https://github.com/hyperledger/fabric-chaincode-java/blob/main/fabric-chaincode-integration-test/build.gradle#L4, and thenjson-20220320.jaris imported here: https://github.com/hyperledger/fabric-chaincode-java/blob/main/fabric-chaincode-shim/build.gradle#L49fabric-chaincode-integration-test(https://github.com/hyperledger/fabric-chaincode-java/blob/main/fabric-chaincode-integration-test/build.gradle#L4) this time the dependency is onfabric-chaincode-shim: https://github.com/hyperledger/fabric-chaincode-java/blob/main/fabric-chaincode-shim/build.gradle#L44C5-L44C5. Shim is dependent onorg.hyperledger.fabric.fabric-protosv0.2.0, which is dependent on a vulnerable version of Guava: https://central.sonatype.com/artifact/org.hyperledger.fabric/fabric-protos/0.2.0/overview.fabric-chaincode-java/fabric-chaincode-shim/build.gradle
Line 50 in 40126d0
fabric-chaincode-java/fabric-chaincode-shim/build.gradle
Line 61 in 40126d0
io.opentelemetry:opentelemetry-protoat 1.6.0-alpha, which includesprotobuf-javaat 3.20.1 as shown here: https://mvnrepository.com/artifact/io.opentelemetry/opentelemetry-proto/1.6.0-alpha. and ALSO,shimincludesgrpc-protobufat v1.46, as seen herefabric-chaincode-java/fabric-chaincode-shim/build.gradle
Line 55 in 40126d0
protobuf-javaat v3.20.1 as shown here: https://mvnrepository.com/artifact/io.grpc/grpc-protobuf/1.46.0, and also includesfabric-protosat v0.2.0 as shown here:fabric-chaincode-java/fabric-chaincode-shim/build.gradle
Line 44 in 40126d0
fabric-protosat v0.2.0 includesprotobuf-javaat v3.20.1 as shown here: https://mvnrepository.com/artifact/org.hyperledger.fabric/fabric-protos/0.2.0 ... AND ALSO I also see a link fromfabric-chaincode-javain several examples that go tofabric-protosv0.1.3, which includesprotobuf-javaat v3.19.4 -- examplefabric-chaincode-java/examples/fabric-contract-example-maven/pom.xml
Line 50 in 3b5b2cb
fabric-chaincode-java/fabric-chaincode-integration-test/src/contracts/bare-maven/pom.xml
Line 54 in 3b5b2cb
fabric-chaincode-java/fabric-chaincode-integration-test/src/contracts/wrapper-maven/pom.xml
Line 54 in 3b5b2cb
io.grpc.grpc-protobufto v1.45.4, which usesprotobuf-javav3.19.6. However, this change does not address the dependency onio.opentelemetry:opentelemetry-protoat 1.6.0-alpha, or the dependency onfabric-protosat v0.2.0.