Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2023-50447

CVE-2023-50447: Arbitrary Code Execution in Pillow

January 19, 2024 (updated November 18, 2024)

Pillow 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).

References

  • devhub.checkmarx.com/cve-details/CVE-2023-50447
  • duartecsantos.github.io/2023-01-02-CVE-2023-50447
  • duartecsantos.github.io/2024-01-02-CVE-2023-50447
  • github.com/advisories/GHSA-3f63-hfp8-52jq
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a
  • github.com/python-pillow/Pillow/releases
  • lists.debian.org/debian-lts-announce/2024/01/msg00019.html
  • nvd.nist.gov/vuln/detail/CVE-2023-50447
  • pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html

Code Behaviors & Features

Detect and mitigate CVE-2023-50447 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 10.2.0

Fixed versions

  • 10.2.0

Solution

Upgrade to version 10.2.0 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')
  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

pypi/Pillow/CVE-2023-50447.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.