Ubuntu CVE Tracker
UBUNTU-CVE-2022-22817
Details
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expression could also be used.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:18.04:LTS | pillow | All versions before 5.1.0-1ubuntu0.8 (fixed in 5.1.0-1ubuntu0.8) |
| Ubuntu:20.04:LTS | pillow | All versions before 7.0.0-4ubuntu0.6 (fixed in 7.0.0-4ubuntu0.6) |
| Ubuntu:Pro:20.04:LTS | pillow-python2 | All versions, no fix listed |
References
- https://ubuntu.com/security/CVE-2022-22817
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval
- https://ubuntu.com/security/notices/USN-5227-1
- https://ubuntu.com/security/notices/USN-5227-2
- https://ubuntu.com/security/notices/USN-5227-3
- https://www.cve.org/CVERecord?id=CVE-2022-22817