PILLOW · CVE-2023-50447 · Package
FIX → 10.2.0
Pillow's PIL.ImageMath.eval function accepts an environment parameter that can be abused to execute arbitrary Python code. An attacker who controls the input passed to that function can run code on the machine processing the image.
first public Jan 19, 2024 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Applications that import Pillow and call ImageMath.eval with data an outside party can influence are exposed. Services that only process images through standard Pillow APIs without ImageMath.eval are not directly affected by this flaw.
Not affected if no-imagemath-eval, trusted-input-only
Who cares image-processing, pillow, python
pip show pillowImageMath.eval and see whether any argument comes from untrusted inputpillow pinned below 10.2.0Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
Upgrade to 10.2.0
10.2.0GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.