{"answers":{"affected":"1 open source package ship an affected version, including Pillow.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-128066 exists.","exposure":"An affected version is only exploitable if your software calls ImageFileDirectory_v2.load(), getexif() or ImageOps.exif_transpose(). Many projects that include it are not exposed.","fix":"Upgrade Pillow to 13.0.0 or later.","what":"CVE-2026-128066 is a high-severity denial of service vulnerability in python-pillow Pillow, published on 12 Nov 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-128066 and fix it if it is affected.\n\nWhat it is: CVE-2026-128066 is a high-severity denial of service vulnerability in python-pillow Pillow, published on 12 Nov 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-128066 exists.\nExposure: An affected version is only exploitable if your software calls ImageFileDirectory_v2.load(), getexif() or ImageOps.exif_transpose(). Many projects that include it are not exposed.\n\nAffected packages and fixed versions:\n- Pillow (PyPI): affected all versions; fixed in 13.0.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.\n   If an affected version is present, also search the code for calls to ImageFileDirectory_v2.load(), getexif() or ImageOps.exif_transpose() and report whether any exist.\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-128066/ (Markdown: https://insights.sbomify.com/CVE-2026-128066/index.md)","id":"CVE-2026-128066","markdown":"https://insights.sbomify.com/CVE-2026-128066/index.md","name":"CVE-2026-128066","record":{"aliases":["GHSA-wqgw-9xfh-qf2g","UBUNTU-CVE-2026-128066"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python imaging library","requires_auth":"none","requires_specific_call":true,"summary":"A crafted TIFF or EXIF-bearing image can exhaust memory in Pillow-based applications that parse EXIF metadata.","user_interaction":"not_required","vuln_class":"denial_of_service","vulnerable_functions":["ImageFileDirectory_v2.load()","getexif()","ImageOps.exif_transpose()"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"description":"Pillow is a Python imaging library. From 1.0 through 12.3.0, ImageFileDirectory_v2.load() in src/PIL/TiffImagePlugin.py retains a separate bytes object for each out-of-line IFD tag value without limiting the total data read or preventing distinct tags from referencing the same file region. A small crafted TIFF or EXIF-bearing JPEG, PNG, WebP, or MPO can therefore cause memory use quadratic in the input size. TIFF and some JPEG paths trigger parsing during Image.open(), while other formats are exposed when EXIF is requested, including through getexif() or ImageOps.exif_transpose(). The declared pixel dimensions do not bound this metadata allocation, so decompression-bomb checks do not prevent process memory exhaustion. This issue is fixed in version 13.0.0.","ecosystems":["PyPI"],"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: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data","id":"CVE-2026-128066","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":1,"n_references":4,"n_vendor_status":1,"next":{"headline":"Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size","id":"CVE-2026-128067"},"nickname":null,"packages":[{"ecosystem":"PyPI","fixed":["13.0.0"],"introduced":["0"],"last_affected":[],"name_kind":null,"package":"Pillow","purl":"pkg:pypi/pillow","purl_source":"derived","scope":"upstream","source":"GHSA-wqgw-9xfh-qf2g"}],"prev":{"headline":"@grpc/grpc-js: RBAC override configs in VirtualHost and Route resources are not applied","id":"CVE-2026-128065"},"products":["Pillow"],"published":"2026-11-12","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-11-17","vendor_status":[{"n_packages":1,"name":"Upstream","packages":[{"fixed":["13.0.0"],"name":"Pillow","purl":"pkg:pypi/pillow","sources":["GHSA-wqgw-9xfh-qf2g"],"status":"fixed"}],"release":null,"scope":"upstream","status":"fixed","statuses":{"fixed":1},"vendor":null}],"vendors":["python-pillow"]},"summary":"A crafted TIFF or EXIF-bearing image can exhaust memory in Pillow-based applications that parse EXIF metadata.","url":"https://insights.sbomify.com/CVE-2026-128066/"}