-
Notifications
You must be signed in to change notification settings - Fork 187
CVE-2025-48976: Introduce partHeaderTotalSizeMax for all parts of a single request #425
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
base: master
Are you sure you want to change the base?
Conversation
…SizeMax Flexible limitation policy. Particularly, "partHeaderTotalSizeMax" provides a direct memory usage limits for all parts headers. See BZ69710#c31
There are a lot of unrelated changes in this PR. They should be removed. With the new limit in place the per part header size limit could be relaxed/removed. In 2.0 at least anyway. |
per Mark's comment, partHeaderTotalCountMax is sufficient enough.
@markt-asf Unrelated changes removed. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Chenjp
Thank you for your update. Please see my comments and add Javadoc since tags for new public and protected elements.
commons-fileupload2-core/src/main/java/org/apache/commons/fileupload2/core/MultipartInput.java
Outdated
Show resolved
Hide resolved
...leupload2-core/src/test/java/org/apache/commons/fileupload2/core/AbstractFileUploadTest.java
Outdated
Show resolved
Hide resolved
I'm confused. GHSA-vv7r-c36w-3prj says that the CVE is fixed in 2.0.0-M4, while this PR is still open. The OWASP scanner still reports 2.0.0-M4 as affected. Who's right? |
This is just an alternative approach. |
Flexible limitation policy. Particularly, "partHeaderTotalSizeMax" provides a direct memory usage limits for all parts headers in request level.
partHeaderTotalSizeMax
and partHeaderTotalCoutMax: apply to all header information for all parts in a single upload file request.See BZ69710#c31