QID 995725

Date Published: 2023-10-26

QID 995725: Python (Pip) Security Update for werkzeug (GHSA-hrfv-mqp8-q5rw)

Werkzeug multipart data parser needs to find a boundary that may be between consecutive chunks. That's why parsing is based on looking for newline characters. Unfortunately, code looking for partial boundary in the buffer is written inefficiently, so if we upload a file that starts with CR or LF and then is followed by megabytes of data without these characters: all of these bytes are appended chunk by chunk into internal bytearray and lookup for boundary is performed on growing buffer.

Successful exploitation of this vulnerability could lead to a security breach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as High - 7.5 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Refer to Github security advisory GHSA-hrfv-mqp8-q5rw for updates and patch information.
    Vendor References

    CVEs related to QID 995725

    Software Advisories
    Advisory ID Software Component Link
    GHSA-hrfv-mqp8-q5rw werkzeug URL Logo github.com/advisories/GHSA-hrfv-mqp8-q5rw