CVE-2022-22817
CRITICALPillow < 9.0.1 - Remote Code Execution via ImageMath.eval Expression Injection
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2022-22817. PoCs published by JawadPy.
AI-analyzed exploit summary The PoC demonstrates an RCE vulnerability in Pillow's `PIL.ImageMath.eval()` function by injecting an `exec()` call to execute arbitrary code. This exploit leverages the unsafe evaluation of expressions in versions prior to 9.0.0.
Description
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.
Exploits (1)
The PoC demonstrates an RCE vulnerability in Pillow's `PIL.ImageMath.eval()` function by injecting an `exec()` call to execute arbitrary code. This exploit leverages the unsafe evaluation of expressions in versions prior to 9.0.0.
References (6)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H