GHSA-hr8g-f6r6-mr22

    Dashboard / Vulnerabilities / GHSA-hr8g-f6r6-mr22

    GHSA-hr8g-f6r6-mr22

    Published: 26 May 2022Last Modified: 26 Nov 2024

    Summary: Buffer over-flow in Pillow

    Details: When reading a TGA file with RLE packets that cross scan lines, Pillow reads the information past the end of the first line without deducting that from the length of the remaining file data. This vulnerability was introduced in Pillow 9.1.0, and can cause a heap buffer overflow. Opening an image with a zero or negative height has been found to bypass a decompression bomb check. This will now raise a SyntaxError instead, in turn raising a PIL.UnidentifiedImageError.

    Affected packages

    Package

    Name: pillow

    Purl: pkg:pypi/pillow

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 9.1.0
    Fixed -9.1.1

    Affected versions

    9.1.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-hr8g-f6r6-mr22 | CVE-DB