GHSA-hr8g-f6r6-mr22

Suggest an improvement
Source
https://github.com/advisories/GHSA-hr8g-f6r6-mr22
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-hr8g-f6r6-mr22/GHSA-hr8g-f6r6-mr22.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hr8g-f6r6-mr22
Aliases
Published
2022-05-26T00:01:27Z
Modified
2024-11-26T18:40:59Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2022-05-25T12:15:00Z",
    "cwe_ids": [
        "CWE-120"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-01T21:22:06Z"
}
References

Affected packages

PyPI / pillow

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
9.1.0
Fixed
9.1.1

Affected versions

9.*

9.1.0