Feed
9.8CRITICAL
CVE-2022-22817Arbitrary expression injection in Pillow
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 3.1% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 3.1%
- percentile 88%
- Fix
- Named by a source
- CVE published 10 Jan 2022
Reference
None of the "Needs attention" rules apply right now.
EPSS 3.1% (+3) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- pillow (PyPI): upgrade to 9.0.1 or later on your release line.
- Commit / pull request: https://github.com/python-pillow/Pillow/commit/8531b01d6cdf0b70f256f93092caa2a5d91afc11
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected< 9.0.1Fixed in9.0.1OSV (GHSA-8vj2-vxx3-667w)
- Affected< 9.0.0Fixed in9.0.0disputedOSV (PYSEC-2022-10)
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-8vj2-vxx3-667w)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-74
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)`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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-22817
- commit / pull requesthttps://github.com/python-pillow/Pillow/commit/8531b01d6cdf0b70f256f93092caa2a5d91afc11
- advisoryhttps://github.com/advisories/GHSA-8vj2-vxx3-667w
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-10.yaml
- otherhttps://github.com/python-pillow/Pillow
- otherhttps://lists.debian.org/debian-lts-announce/2022/01/msg00018.html
- otherhttps://lists.debian.org/debian-lts-announce/2024/03/msg00021.html
- otherhttps://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval
- otherhttps://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security
- otherhttps://security.gentoo.org/glsa/202211-10
- otherhttps://www.debian.org/security/2022/dsa-5053
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-8vj2-vxx3-667w (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2022-10 (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 27 min ago · osv 27 min ago · nvd 88 min ago · epss 27 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2022-22817, GHSA-8vj2-vxx3-667w, PYSEC-2022-10