{"answers":{"affected":"4 open source packages ship an affected version, including pillow and Pillow. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-50447 in the wild and no public exploit code.","fix":"Upgrade pillow to a fixed version for your release line: 10.1.1 or 10.2.0.","what":"CVE-2023-50447 is a high-severity code injection vulnerability in Debian Debian Linux, published on 19 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-50447 and fix it if it is affected.\n\nWhat it is: CVE-2023-50447 is a high-severity code injection vulnerability in Debian Debian Linux, published on 19 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-50447 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pillow (Bitnami): affected all versions; fixed in 10.1.1\n- pillow (PyPI): affected all versions; fixed in 10.2.0\n- pillow (PyPI): affected all versions; fixed in 10.2.0\n- Pillow (PyPI): affected all versions; fixed in 10.2.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-50447/ (Markdown: https://insights.sbomify.com/CVE-2023-50447/index.md)","id":"CVE-2023-50447","markdown":"https://insights.sbomify.com/CVE-2023-50447/index.md","name":"CVE-2023-50447","record":{"aliases":["ALSA-2024:0893","BIT-pillow-2023-50447","DEBIAN-CVE-2023-50447","DLA-3724-1","GHSA-3f63-hfp8-52jq","MGASA-2024-0018","OESA-2024-1098","PYSEC-2026-457","RHSA-2024:0754","RHSA-2024:0857","RHSA-2024:0893","RHSA-2024:1058","RHSA-2024:1059","RHSA-2024:1060","ROOT-APP-PYPI-CVE-2023-50447","SUSE-SU-2024:0185-1","SUSE-SU-2024:0205-1","SUSE-SU-2024:0439-1","UBUNTU-CVE-2023-50447","openSUSE-SU-2024:0125-1","openSUSE-SU-2024:13611-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python image library","requires_auth":"none","summary":"Attackers can execute arbitrary code via the environment parameter in PIL.ImageMath.eval, requiring an upgrade to Pillow.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"pillow","vendor":"python"}],"cvss":{"score":8.1,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"description":"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).","ecosystems":["AlmaLinux:8","Bitnami","PyPI","Red Hat:enterprise_linux:7::client","Red Hat:enterprise_linux:7::computenode","Red Hat:enterprise_linux:7::server","Red Hat:enterprise_linux:7::workstation","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_eus:8.6::appstream","Red Hat:rhel_eus:8.6::crb","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:8.8::crb","Red Hat:rhel_tus:8.4::appstream","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Module for Python 3 15 SP5","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 9","SUSE:Package Hub 15 SP5","openSUSE:Leap 15.5","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Arbitrary Code Execution in Pillow","id":"CVE-2023-50447","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux","python:pillow"],"type":"code_injection","year":"2023"},"n_packages":114,"n_references":5,"next":{"headline":"Potential CSV export data leak","id":"CVE-2023-50448"},"packages":[{"ecosystem":"Bitnami","fixed":["10.1.1"],"introduced":["0"],"last_affected":[],"package":"pillow","purl":"pkg:bitnami/pillow","source":"BIT-pillow-2023-50447"},{"ecosystem":"PyPI","fixed":["10.2.0"],"introduced":["0"],"last_affected":[],"package":"Pillow","purl":null,"source":"GHSA-3f63-hfp8-52jq"},{"ecosystem":"PyPI","fixed":["10.2.0"],"introduced":["0"],"last_affected":[],"package":"pillow","purl":"pkg:pypi/pillow","source":"GHSA-3f63-hfp8-52jq"},{"ecosystem":"PyPI","fixed":["10.2.0"],"introduced":["0"],"last_affected":[],"package":"pillow","purl":"pkg:pypi/pillow","source":"PYSEC-2026-457"},{"ecosystem":"AlmaLinux:8","fixed":["5.1.1-18.el8_9.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-pillow","purl":"pkg:rpm/almalinux/python3-pillow","source":"ALSA-2024:0893"},{"ecosystem":"AlmaLinux:8","fixed":["5.1.1-18.el8_9.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-devel","purl":"pkg:rpm/almalinux/python3-pillow-devel","source":"ALSA-2024:0893"},{"ecosystem":"AlmaLinux:8","fixed":["5.1.1-18.el8_9.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-doc","purl":"pkg:rpm/almalinux/python3-pillow-doc","source":"ALSA-2024:0893"},{"ecosystem":"AlmaLinux:8","fixed":["5.1.1-18.el8_9.1.alma.1"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-tk","purl":"pkg:rpm/almalinux/python3-pillow-tk","source":"ALSA-2024:0893"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow","purl":"pkg:rpm/redhat/python-pillow","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debuginfo","purl":"pkg:rpm/redhat/python-pillow-debuginfo","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-devel","purl":"pkg:rpm/redhat/python-pillow-devel","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-doc","purl":"pkg:rpm/redhat/python-pillow-doc","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-qt","purl":"pkg:rpm/redhat/python-pillow-qt","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-sane","purl":"pkg:rpm/redhat/python-pillow-sane","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::client","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-tk","purl":"pkg:rpm/redhat/python-pillow-tk","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow","purl":"pkg:rpm/redhat/python-pillow","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debuginfo","purl":"pkg:rpm/redhat/python-pillow-debuginfo","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-devel","purl":"pkg:rpm/redhat/python-pillow-devel","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-doc","purl":"pkg:rpm/redhat/python-pillow-doc","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-qt","purl":"pkg:rpm/redhat/python-pillow-qt","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-sane","purl":"pkg:rpm/redhat/python-pillow-sane","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::computenode","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-tk","purl":"pkg:rpm/redhat/python-pillow-tk","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow","purl":"pkg:rpm/redhat/python-pillow","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debuginfo","purl":"pkg:rpm/redhat/python-pillow-debuginfo","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-devel","purl":"pkg:rpm/redhat/python-pillow-devel","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-doc","purl":"pkg:rpm/redhat/python-pillow-doc","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-qt","purl":"pkg:rpm/redhat/python-pillow-qt","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-sane","purl":"pkg:rpm/redhat/python-pillow-sane","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::server","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-tk","purl":"pkg:rpm/redhat/python-pillow-tk","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow","purl":"pkg:rpm/redhat/python-pillow","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debuginfo","purl":"pkg:rpm/redhat/python-pillow-debuginfo","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-devel","purl":"pkg:rpm/redhat/python-pillow-devel","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-doc","purl":"pkg:rpm/redhat/python-pillow-doc","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-qt","purl":"pkg:rpm/redhat/python-pillow-qt","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-sane","purl":"pkg:rpm/redhat/python-pillow-sane","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:7::workstation","fixed":["0:2.0.0-25.gitd1c6db8.el7_9"],"introduced":["0"],"last_affected":[],"package":"python-pillow-tk","purl":"pkg:rpm/redhat/python-pillow-tk","source":"RHSA-2024:0857"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-18.el8_9.1"],"introduced":["0"],"last_affected":[],"package":"python-pillow","purl":"pkg:rpm/redhat/python-pillow","source":"RHSA-2024:0893"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-18.el8_9.1"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debuginfo","purl":"pkg:rpm/redhat/python-pillow-debuginfo","source":"RHSA-2024:0893"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-18.el8_9.1"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debugsource","purl":"pkg:rpm/redhat/python-pillow-debugsource","source":"RHSA-2024:0893"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-18.el8_9.1"],"introduced":["0"],"last_affected":[],"package":"python3-pillow","purl":"pkg:rpm/redhat/python3-pillow","source":"RHSA-2024:0893"}],"prev":{"headline":"Privilege escalation in n/a","id":"CVE-2023-50446"},"products":["n/a"],"published":"2024-01-19","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["n/a"]},"summary":"Attackers can execute arbitrary code via the environment parameter in PIL.ImageMath.eval, requiring an upgrade to Pillow.","url":"https://insights.sbomify.com/CVE-2023-50447/"}