{"answers":{"affected":"4 open source packages ship an affected version, including pillow. It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-28219 in the wild and no public exploit code.","fix":"Upgrade pillow to 10.3.0 or later.","what":"CVE-2024-28219 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 3 Apr 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-28219 and fix it if it is affected.\n\nWhat it is: CVE-2024-28219 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 3 Apr 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-28219 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pillow (Bitnami): affected all versions; no fix listed\n- pillow (PyPI): affected all versions; fixed in 10.3.0\n- pillow (PyPI): affected all versions; fixed in 10.3.0\n- pillow (PyPI): affected all versions; fixed in 10.3.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-2024-28219/ (Markdown: https://insights.sbomify.com/CVE-2024-28219/index.md)","id":"CVE-2024-28219","markdown":"https://insights.sbomify.com/CVE-2024-28219/index.md","name":"CVE-2024-28219","record":{"aliases":["ALSA-2024:4227","BIT-pillow-2024-28219","CLSA-2026-1772410267","CLSA-2026-1772583177","DEBIAN-CVE-2024-28219","DLA-3786-1","GHSA-44wm-f244-xhp3","OESA-2024-1451","PYSEC-2026-1793","RHSA-2024:4227","RLSA-2024:4227","ROOT-APP-PYPI-CVE-2024-28219","SUSE-SU-2024:1154-1","SUSE-SU-2024:1258-1","SUSE-SU-2024:1267-1","SUSE-SU-2024:1268-1","UBUNTU-CVE-2024-28219","USN-6744-1","USN-6744-2","USN-6744-3"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python imaging library","requires_auth":"low_privilege","summary":"A buffer overflow in Pillow's imaging CMS module allows attackers to execute arbitrary code or cause denial of service via crafted images.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"pillow","vendor":"python"}],"cvss":{"score":6.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AC:H/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:R","version":"3.1"},"cwes":[{"id":"CWE-680","name":"Integer Overflow to Buffer Overflow"}],"description":"In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.","ecosystems":["AlmaLinux:8","Bitnami","PyPI","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Rocky Linux:8","SUSE:HPE Helion OpenStack 8","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 8","SUSE:OpenStack Cloud 9","SUSE:OpenStack Cloud Crowbar 8","SUSE:OpenStack Cloud Crowbar 9","openSUSE:Leap 15.5"],"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":"Pillow buffer overflow vulnerability","id":"CVE-2024-28219","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":"debian:debian_linux","products":["debian:debian_linux","python:pillow"],"type":"memory_corruption","year":"2024"},"n_packages":38,"n_references":3,"next":{"headline":"Path traversal in n/a","id":"CVE-2024-28222"},"packages":[{"ecosystem":"Bitnami","fixed":[],"introduced":["0"],"last_affected":[],"package":"pillow","purl":"pkg:bitnami/pillow","source":"BIT-pillow-2024-28219"},{"ecosystem":"PyPI","fixed":["10.3.0"],"introduced":["0"],"last_affected":[],"package":"pillow","purl":null,"source":"GHSA-44wm-f244-xhp3"},{"ecosystem":"PyPI","fixed":["10.3.0"],"introduced":["0"],"last_affected":[],"package":"pillow","purl":"pkg:pypi/pillow","source":"GHSA-44wm-f244-xhp3"},{"ecosystem":"PyPI","fixed":["10.3.0"],"introduced":["0"],"last_affected":[],"package":"pillow","purl":"pkg:pypi/pillow","source":"PYSEC-2026-1793"},{"ecosystem":"AlmaLinux:8","fixed":["5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow","purl":"pkg:rpm/almalinux/python3-pillow","source":"ALSA-2024:4227"},{"ecosystem":"AlmaLinux:8","fixed":["5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-devel","purl":"pkg:rpm/almalinux/python3-pillow-devel","source":"ALSA-2024:4227"},{"ecosystem":"AlmaLinux:8","fixed":["5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-doc","purl":"pkg:rpm/almalinux/python3-pillow-doc","source":"ALSA-2024:4227"},{"ecosystem":"AlmaLinux:8","fixed":["5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-tk","purl":"pkg:rpm/almalinux/python3-pillow-tk","source":"ALSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-pillow","purl":"pkg:rpm/redhat/python-pillow","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debuginfo","purl":"pkg:rpm/redhat/python-pillow-debuginfo","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debugsource","purl":"pkg:rpm/redhat/python-pillow-debugsource","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow","purl":"pkg:rpm/redhat/python3-pillow","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-debuginfo","purl":"pkg:rpm/redhat/python3-pillow-debuginfo","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-tk-debuginfo","purl":"pkg:rpm/redhat/python3-pillow-tk-debuginfo","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debuginfo","purl":"pkg:rpm/redhat/python-pillow-debuginfo","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-pillow-debugsource","purl":"pkg:rpm/redhat/python-pillow-debugsource","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow","purl":"pkg:rpm/redhat/python3-pillow","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-debuginfo","purl":"pkg:rpm/redhat/python3-pillow-debuginfo","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-devel","purl":"pkg:rpm/redhat/python3-pillow-devel","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-doc","purl":"pkg:rpm/redhat/python3-pillow-doc","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-tk","purl":"pkg:rpm/redhat/python3-pillow-tk","source":"RHSA-2024:4227"},{"ecosystem":"Red Hat:enterprise_linux:8::crb","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python3-pillow-tk-debuginfo","purl":"pkg:rpm/redhat/python3-pillow-tk-debuginfo","source":"RHSA-2024:4227"},{"ecosystem":"Rocky Linux:8","fixed":["0:5.1.1-21.el8_10"],"introduced":["0"],"last_affected":[],"package":"python-pillow","purl":"pkg:rpm/rocky-linux/python-pillow?distro=rocky-linux-8\u0026epoch=0","source":"RLSA-2024:4227"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["4.2.1-3.29.2"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2024:1268-1"},{"ecosystem":"SUSE:HPE Helion OpenStack 8","fixed":["12.0.5~dev6-14.58.2"],"introduced":["0"],"last_affected":[],"package":"venv-openstack-horizon-hpe","purl":"pkg:rpm/suse/venv-openstack-horizon-hpe\u0026distro=HPE%20Helion%20OpenStack%208","source":"SUSE-SU-2024:1268-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["9.5.0-150400.5.15.1"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2024:1258-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["9.5.0-150400.5.15.1"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2024:1258-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP5","fixed":["9.5.0-150400.5.15.1"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP5","source":"SUSE-SU-2024:1258-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["9.5.0-150400.5.15.1"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2024:1258-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["9.5.0-150400.5.15.1"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2024:1258-1"},{"ecosystem":"SUSE:OpenStack Cloud 8","fixed":["4.2.1-3.29.2"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20OpenStack%20Cloud%208","source":"SUSE-SU-2024:1268-1"},{"ecosystem":"SUSE:OpenStack Cloud 8","fixed":["12.0.5~dev6-14.58.2"],"introduced":["0"],"last_affected":[],"package":"venv-openstack-horizon","purl":"pkg:rpm/suse/venv-openstack-horizon\u0026distro=SUSE%20OpenStack%20Cloud%208","source":"SUSE-SU-2024:1268-1"},{"ecosystem":"SUSE:OpenStack Cloud 9","fixed":["5.2.0-3.26.2"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20OpenStack%20Cloud%209","source":"SUSE-SU-2024:1267-1"},{"ecosystem":"SUSE:OpenStack Cloud 9","fixed":["14.1.1~dev11-4.55.2"],"introduced":["0"],"last_affected":[],"package":"venv-openstack-horizon","purl":"pkg:rpm/suse/venv-openstack-horizon\u0026distro=SUSE%20OpenStack%20Cloud%209","source":"SUSE-SU-2024:1267-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 8","fixed":["4.2.1-3.29.2"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%208","source":"SUSE-SU-2024:1268-1"},{"ecosystem":"SUSE:OpenStack Cloud Crowbar 9","fixed":["5.2.0-3.26.2"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/suse/python-Pillow\u0026distro=SUSE%20OpenStack%20Cloud%20Crowbar%209","source":"SUSE-SU-2024:1267-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["7.2.0-150300.3.9.1"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/opensuse/python-Pillow\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:1154-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["9.5.0-150400.5.15.1"],"introduced":["0"],"last_affected":[],"package":"python-Pillow","purl":"pkg:rpm/opensuse/python-Pillow\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:1258-1"}],"prev":{"headline":"Missing authorization in nGrinder","id":"CVE-2024-28216"},"products":["n/a"],"published":"2024-04-03","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":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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":"2025-11-04","vendors":["n/a"]},"summary":"A buffer overflow in Pillow's imaging CMS module allows attackers to execute arbitrary code or cause denial of service via crafted images.","url":"https://insights.sbomify.com/CVE-2024-28219/"}