Advisory

GHSA-9hx2-hgq2-2g4f

Also known as: BIT-pillow-2021-25292, CVE-2021-25292, PYSEC-2021-38

Summary

Regular Expression Denial of Service (ReDoS) in Pillow

Details

An issue was discovered in Pillow before 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-29 16:35 UTC
Modified
2024-10-09 21:24 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 5.1.0, fixed 8.1.1 (ecosystem)

Fixed versions

8.1.1

Fix

  • Fixed version 8.1.1
    pip install --upgrade pillow==8.1.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences