Feed
9.8CRITICAL
CVE-2022-30595Buffer over-flow in Pillow
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.8% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.8%
- percentile 79%
- Fix
- Named by a source
- CVE published 25 May 2022
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.8% (+2) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- pillow (PyPI): upgrade to 9.1.1 or later on your release line.
- Commit / pull request: https://github.com/python-pillow/Pillow/commit/c846cc881ebe34e3518412c2e3636433d9947280
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected>= 9.1.0, < 9.1.1Fixed in9.1.1OSV (PYSEC-2022-43145)
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- PYSEC-2022-43145
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-120
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-30595
- commit / pull requesthttps://github.com/python-pillow/Pillow/commit/c846cc881ebe34e3518412c2e3636433d9947280
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-43145.yaml
- otherhttps://github.com/python-pillow/Pillow
- otherhttps://github.com/python-pillow/Pillow/blob/main/src/libImaging/TgaRleDecode.c
- otherhttps://pillow.readthedocs.io/en/stable/releasenotes/9.1.1.html
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-hr8g-f6r6-mr22 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2022-43145 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 24 min ago · osv 24 min ago · nvd 85 min ago · epss 24 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2022-30595, GHSA-hr8g-f6r6-mr22, PYSEC-2022-43145