GHSA-8vj2-vxx3-667w

    Dashboard / Vulnerabilities / GHSA-8vj2-vxx3-667w

    GHSA-8vj2-vxx3-667w

    Published: 12 Jan 2022Last Modified: 14 Oct 2024

    Summary: Arbitrary expression injection in Pillow

    Details: `PIL.ImageMath.eval` in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method `ImageMath.eval("exec(exit())")`. While Pillow 9.0.0 restricted top-level builtins available to PIL.ImageMath.eval(), it did not prevent builtins available to lambda expressions. These are now also restricted in 9.0.1.

    Affected packages

    Package

    Name: pillow

    Purl: pkg:pypi/pillow

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -9.0.1

    Affected versions

    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-8vj2-vxx3-667w | CVE-DB