GHSA-8vj2-vxx3-667w
Arbitrary expression injection in Pillow
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2022-22817
- Alias
- BIT-pillow-2022-22817, PYSEC-2022-10
- CVSS_V3
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Description
`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.
Paquets affectés
| Paquet | Versions |
|---|---|
| PyPI · pillow | introduced 0, fixed 9.0.1 |
Références
- https://nvd.nist.gov/vuln/detail/CVE-2022-22817 ADVISORY
- https://github.com/python-pillow/Pillow/commit/8531b01d6cdf0b70f256f93092caa2a5d91afc11 WEB
- https://github.com/advisories/GHSA-8vj2-vxx3-667w ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2022-10.yaml WEB
- https://github.com/python-pillow/Pillow PACKAGE
- https://lists.debian.org/debian-lts-announce/2022/01/msg00018.html WEB
- https://lists.debian.org/debian-lts-announce/2024/03/msg00021.html WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval WEB
- https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security WEB
- https://security.gentoo.org/glsa/202211-10 WEB
- https://www.debian.org/security/2022/dsa-5053 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |