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

feign-form uses commons-fileupload 1.4 with High Sev CVE #853

Closed
vstoyanov opened this issue Mar 30, 2023 · 4 comments
Closed

feign-form uses commons-fileupload 1.4 with High Sev CVE #853

vstoyanov opened this issue Mar 30, 2023 · 4 comments
Labels
dependencies Pull requests that update a dependency file
Milestone

Comments

@vstoyanov
Copy link

With the last release 4 years ago and the last accepted pull request about 3 years ago, by all means it is a dead project now. It brings a High Sev CVE to the dependency graph, which is not really nice and certainly not in line with the rest of Spring Framework.

Over the weekend I will do some research on what it could be replaced with and report back.

  1. https://central.sonatype.com/artifact/io.github.openfeign.form/feign-form/3.8.0/versions
  2. GHSA-hfrx-6qgj-fp6c
@OlgaMaciaszek
Copy link
Collaborator

Hello @vstoyanov, thanks for reporting the issue. That dependency is still under official maintenance by the OpenFeign team. A PR has been submitted to fix the issue. We will monitor what is happening to that PR and try to offer a workaround if necessary.

@OlgaMaciaszek OlgaMaciaszek changed the title Drop dependency on io.github.openfeign.form:feign-form io.github.openfeign.form:feign-form uses commons-fileupload 1.4 that with High Sev CVE May 11, 2023
@OlgaMaciaszek OlgaMaciaszek added dependencies Pull requests that update a dependency file and removed waiting-for-triage labels May 11, 2023
@OlgaMaciaszek OlgaMaciaszek added this to the 3.1.8 milestone May 11, 2023
@OlgaMaciaszek OlgaMaciaszek changed the title io.github.openfeign.form:feign-form uses commons-fileupload 1.4 that with High Sev CVE feign-form uses commons-fileupload 1.4 that with High Sev CVE May 11, 2023
@vstoyanov vstoyanov changed the title feign-form uses commons-fileupload 1.4 that with High Sev CVE feign-form uses commons-fileupload 1.4 with High Sev CVE May 13, 2023
@OlgaMaciaszek
Copy link
Collaborator

Have overridden it in Spring Cloud OpenFeign. Workaround can be removed once it's been fixed in Feign-Form.

@mgbardakov
Copy link

mgbardakov commented Jun 15, 2023

I'm not sure if this fixes the problem. If I'm not mistaken just changing a dependency version isn't enough. https://devhub.checkmarx.com/cve-details/CVE-2023-24998/ A new config FileUploadBase#setFileCountMax should be enabled also, so I guess we still need a collaboration with OpenFeign team

@OlgaMaciaszek
Copy link
Collaborator

Hi @mgbardakov, thanks for bringing this up, it's a good point. However, in order to verify this, I have gone through the code in feign-form that uses commons-fileupload and, actually, a lower-level API is used there only and the FileUpload API that is the entry-point for this CVE is not used, so actually, the code would not even be affected by this vulnerability with the 1.4 dep version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
No open projects
Status: Done
Status: Done
Status: Done
Development

No branches or pull requests

4 participants