{"answers":{"affected":"6 open source packages ship an affected version, including pi-heif and pillow-heif. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28231 exists.","fix":"Upgrade pi-heif to 1.3.0 or later.","what":"CVE-2026-28231 is a medium-severity vulnerability in bigcat88 pillow_heif, published on 27 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-28231 and fix it if it is affected.\n\nWhat it is: CVE-2026-28231 is a medium-severity vulnerability in bigcat88 pillow_heif, published on 27 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-28231 exists.\n\nAffected packages and fixed versions:\n- pi-heif (PyPI): affected all versions; fixed in 1.3.0\n- pi-heif (PyPI): affected all versions; fixed in 1.3.0\n- pi-heif (PyPI): affected all versions; fixed in 1.3.0\n- pillow-heif (PyPI): affected all versions; fixed in 1.3.0\n- pillow-heif (PyPI): affected all versions; fixed in 1.3.0\n- pillow-heif (PyPI): affected all versions; fixed in 1.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-2026-28231/ (Markdown: https://insights.sbomify.com/CVE-2026-28231/index.md)","id":"CVE-2026-28231","markdown":"https://insights.sbomify.com/CVE-2026-28231/index.md","name":"CVE-2026-28231","record":{"aliases":["GHSA-5gjj-6r7v-ph3x","PYSEC-2026-2248","PYSEC-2026-2258","openSUSE-SU-2026:10285-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python HEIF image library","requires_auth":"none","summary":"An integer overflow in pillow_heif allows attackers to trigger heap out-of-bounds reads, leading to information disclosure or crashes.","user_interaction":"not_required","vuln_class":"integer_overflow"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pillow-heif","vendor":"bigcat88"}],"cvss":{"score":5.5,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"},{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"pillow_heif is a Python library for working with HEIF images and plugin for Pillow. Prior to version 1.3.0, an integer overflow in the encode path buffer validation of `_pillow_heif.c` allows an attacker to bypass bounds checks by providing large image dimensions, resulting in a heap out-of-bounds read. This can lead to information disclosure (server heap memory leaking into encoded images) or denial of service (process crash). No special configuration is required — this triggers under default settings. Version 1.3.0 fixes the issue.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"pillow_heif Has Integer Overflow in Encode Path Buffer Validation that Leads to Heap Out-of-Bounds Read","id":"CVE-2026-28231","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"integer_overflow","year":"2026"},"n_packages":7,"n_references":3,"next":{"headline":"Denial of service in AMD µProf","id":"CVE-2026-28237"},"packages":[{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"pi-heif","purl":null,"source":"GHSA-5gjj-6r7v-ph3x"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"pi-heif","purl":"pkg:pypi/pi-heif","source":"GHSA-5gjj-6r7v-ph3x"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"pi-heif","purl":"pkg:pypi/pi-heif","source":"PYSEC-2026-2248"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"pillow-heif","purl":null,"source":"GHSA-5gjj-6r7v-ph3x"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"pillow-heif","purl":"pkg:pypi/pillow-heif","source":"GHSA-5gjj-6r7v-ph3x"},{"ecosystem":"PyPI","fixed":["1.3.0"],"introduced":["0"],"last_affected":[],"package":"pillow-heif","purl":"pkg:pypi/pillow-heif","source":"PYSEC-2026-2258"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.3.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-pillow-heif","purl":"pkg:rpm/opensuse/python-pillow-heif\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10285-1"}],"prev":{"headline":"Missing authorization in steve","id":"CVE-2026-28230"},"products":["pillow_heif"],"published":"2026-02-27","related":[],"sources":[{"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":"SUSE","prefix":"openSUSE"},{"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":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-03","vendors":["bigcat88"]},"summary":"An integer overflow in pillow_heif allows attackers to trigger heap out-of-bounds reads, leading to information disclosure or crashes.","url":"https://insights.sbomify.com/CVE-2026-28231/"}