cloudendpoints / endpoints-java

A Java framework for building RESTful APIs on Google App Engine
Apache License 2.0
32 stars 35 forks source link

Whitesource Vulerability #185

Open Freddyfredy opened 4 years ago

Freddyfredy commented 4 years ago

Hi,

Currently I am working on our codebase in order to solve all the vulnerability detected from WhiteSource. One of the library that flags up as a vulnerability is Guava.

The CVE states this : Unbounded memory allocation in Google Guava 11.0 through 24.x before 24.1.1 allows remote attackers to conduct denial of service attacks against servers that depend on this library and deserialize attacker-provided data, because the AtomicDoubleArray class (when serialized with Java serialization) and the CompoundOrdering class (when serialized with GWT serialization) perform eager allocation without appropriate checks on what a client has sent and whether the data size is reasonable.

Link here: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-10237

Looking at my maven dependency tree, I see Guava being introduced by google endpoint framework:

com.google.endpoints endpoints-framework 2.2.1

2.2.1 is the latest version.

Here is the maven dependency tree:

[INFO] +- com.google.endpoints:endpoints-framework:jar:2.2.1:compile [INFO] | +- com.google.guava:guava:jar:20.0:compile

Is there any way that the endpoint framework could pull in the latest guava version rather than the 20.0 version of guava?

Thank you!