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

Security17 guava update #7218

Closed
wants to merge 6 commits into from
Closed

Security17 guava update #7218

wants to merge 6 commits into from

Conversation

rtreacy
Copy link
Contributor

@rtreacy rtreacy commented Aug 21, 2020

What this PR does / why we need it: There is a potential denial of service attack in current guava version due to unbounded memory allocation. This was fixed in version 24.1.1 and above (also some back-fixes)

Which issue(s) this PR closes:

Closes https://github.com/IQSS/dataverse-security/issues/17

Special notes for your reviewer:the following libraries used in dataverse depend on guava: auto-service, org.everit.json.schema, tika, search box, xoai-common.

Suggestions on how to test this: It is related to code which uses the above listed libraries, but it should be a plug-in fix. I went though the guava release notes (https://github.com/google/guava/releases) between 16.0.1 and 29.0 are and there was only one potential breaking change listed. However, I checked the mvn repository pages for each library e.g. https://mvnrepository.com/artifact/org.everit.json/org.everit.json.schema/1.5.1 and 29.0-jre is listed as an update for the guava dependency on each page.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:no

Is there a release notes update needed for this change?:no

Additional documentation:
https://nvd.nist.gov/vuln/detail/CVE-2018-10237
GHSA-mvr2-9pj6-7w5j

…s reported to allow an attacker to escalate permissions and access private values and create invalid instances - see CVE-2017-7536. It is reported to be fixed in versions 5.2.5.Final and greater.

The upgraded library had changes to the api for constructing ConstaintValidatorContextImpl, used in URLValidatorTest.java. In investigating the changes, it was found that there were further changes to the api in recent versions and it was decided to adapt the code to the latest changes and use the latest available stable hibernate-validator library - 6.1.5.Final.

It was also necessary to add a dependency to javax.el due to changes in the library starting with version 5.3.1.Final and later.
…ial of service attack due to unbounded mmemory allocation. see CVE-2018-10237

dataverse-security#17
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.008%) to 19.55% when pulling 83c2d3b on security17-guava-update into fa33c7a on develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants