OS Command Injection In pillow
Description
Arbitrary expression injection in Pillow
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
pypi | 9.0.1 | ||
alpine v3.15 | 8.4.0-r3 | ||
debian 11 | 8.1.2+dfsg-0.3+deb11u1 | ||
debian 12 | 9.0.0-1 | ||
debian 13 | 9.0.0-1 | ||
debian 14 | 9.0.0-1 | ||
rpm rhel8.2 | 0:5.1.1-14.el8_2 | ||
rpm rhel8.4 | 0:5.1.1-14.el8_4 | ||
rpm rhel8 | 0:5.1.1-18.el8_5 | ||
rpm rhel7 | 0:2.0.0-23.gitd1c6db8.el7_9 |
Aliases
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.
References
1. 2. 3. 4. 5.