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

Okhttp: CVE-2020-29582 due to old version of Okhttp (Squareup) #1514

Closed
moritzluedtke opened this issue Sep 28, 2021 · 6 comments
Closed

Okhttp: CVE-2020-29582 due to old version of Okhttp (Squareup) #1514

moritzluedtke opened this issue Sep 28, 2021 · 6 comments

Comments

@moritzluedtke
Copy link

moritzluedtke commented Sep 28, 2021

When running the OWASP dependency check in a project with okhttp in its dependencies the OWASP check finds the following two vulnerabilities:

kotlin-stdlib-1.3.71.jar: CVE-2020-29582
kotlin-stdlib-common-1.3.70.jar: CVE-2020-29582

According to the NVD (link to CVE-2020-29582) the fix should be present in version 1.4.21 onwards.

The two libraries are used by Okhttp from Squareup.

Feign Okhttp 11.6 uses Okhttp (Squareup) 4.6.0 (April 2020). So this could have already been fixed in Okhttp.

@moritzluedtke
Copy link
Author

moritzluedtke commented Sep 28, 2021

I'll see if I can work on a fix myself (never worked on Feign before). But I would guess it could be as simple as a dependency update (best case).

@moritzluedtke
Copy link
Author

moritzluedtke commented Sep 28, 2021

I wanted to test the dependency update locally but couldn't run mvn install on the core submodule (which seems to be needed to build okhttp) successfully due to:

[ERROR] Failed to execute goal com.github.ekryd.sortpom:sortpom-maven-plugin:2.8.0:sort (format) on project feign-core: Could not find /Users/mluedtke/Workspace/github/feign-forked/core/src/config/pomSortOrder.xml or src/config/pomSortOrder.xml in classpath -> [Help 1]

Maybe someone could help me test it locally or verify the change. I pushed it to this branch in my fork. Only this one line changed:
https://github.com/moritzluedtke/feign/blob/CVE-2020-29582/pom.xml#L77

@moritzluedtke moritzluedtke changed the title OWASP check failing for Okhttp due to CVE in kotlin-stdlib and kotlin-stdlib-common Okhttp: CVE-2020-29582 due to old version of Okhttp Sep 29, 2021
@moritzluedtke moritzluedtke changed the title Okhttp: CVE-2020-29582 due to old version of Okhttp Okhttp: CVE-2020-29582 due to old version of Okhttp (Squareup) Sep 29, 2021
vitalijr2 added a commit to vitalijr2/feign that referenced this issue Oct 13, 2021
@vitalijr2
Copy link
Collaborator

vitalijr2 commented Oct 13, 2021

I wanted to test the dependency update locally but couldn't run mvn install on the core submodule (which seems to be needed to build okhttp) successfully due to:

[ERROR] Failed to execute goal com.github.ekryd.sortpom:sortpom-maven-plugin:2.8.0:sort (format) on project feign-core: Could not find /Users/mluedtke/Workspace/github/feign-forked/core/src/config/pomSortOrder.xml or src/config/pomSortOrder.xml in classpath -> [Help 1]

Maybe someone could help me test it locally or verify the change. I pushed it to this branch in my fork. Only this one line changed: https://github.com/moritzluedtke/feign/blob/CVE-2020-29582/pom.xml#L77

I have tested it locally: the build is successful.

@moritzluedtke if you create pull request, the github workflow checks any building errors.

@velo
Copy link
Member

velo commented Oct 13, 2021

I made a PR for it, seems fine on my computer, let's see what is CI opinion
#1518

@velo velo closed this as completed Oct 13, 2021
@moritzluedtke
Copy link
Author

Thank you @radio-rogal and @velo for taking a look at this and fixing it! Do you have an estimate on when the new version will be released?

@moritzluedtke
Copy link
Author

Unfortunately this is still an issue with 11.7.
But this should be fixed by the OkHttp team at square up. I commented on this issue:
square/okhttp#6219

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

No branches or pull requests

3 participants