Skip to content

[GHSA-q34m-jh98-gwm2] Werkzeug possible resource exhaustion when parsing file data in forms#7527

Open
levpachmanov wants to merge 1 commit intolevpachmanov/advisory-improvement-7527from
levpachmanov-GHSA-q34m-jh98-gwm2
Open

[GHSA-q34m-jh98-gwm2] Werkzeug possible resource exhaustion when parsing file data in forms#7527
levpachmanov wants to merge 1 commit intolevpachmanov/advisory-improvement-7527from
levpachmanov-GHSA-q34m-jh98-gwm2

Conversation

@levpachmanov
Copy link
Copy Markdown

Updates

  • Affected products
  • CVSS v3

Comments
I verified that version 1.0.1 isn't affected by adding the following test:

    def test_multipart_max_form_memory_size(self) -> None:
        """max_form_memory_size is tracked across multiple data events."""
        data = b"--bound\r\nContent-Disposition: form-field; name=a\r\n\r\n"
        data += b"a" * 4096 + b"\r\n--bound--"
        # The buffer size is less than the max size, so multiple data events will be
        # returned. The field size is greater than the max.
        parser = formparser.MultiPartParser(max_form_memory_size=2048, buffer_size=1024)

        with pytest.raises(RequestEntityTooLarge):
            parser.parse(io.BytesIO(data), b"bound", None)

@github
Copy link
Copy Markdown
Collaborator

github commented Apr 28, 2026

Hi there @davidism! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.

This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

@github-actions github-actions Bot changed the base branch from main to levpachmanov/advisory-improvement-7527 April 28, 2026 12:23
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.

2 participants