{
  "id": "cve-2026-112403",
  "title": "Pillow JPEG draft scaling leaves unchecked lossless output geometry and overflows decode buffer",
  "product": "Pillow JPEG decoder with libjpeg-turbo 3.x",
  "ai_system": "Claude (model/version not identified)",
  "organization": "Anthropic and Ada Logics; python-pillow maintainers",
  "summary": "Pillow’s JPEG draft/thumbnail path sizes a row buffer for a downscaled image. With lossless SOF3 JPEG supported by libjpeg-turbo 3.x, the decoder ignores the requested scaling and returns full-width scanlines; Pillow does not verify the actual output geometry before decoding. The scanline write therefore exceeds the heap buffer. The advisory reports attacker-controlled overflow bytes, but does not establish arbitrary code execution. It affects paths using draft before load; decoder builds against libjpeg-turbo 2.x or IJG libjpeg reject this format before the bug.",
  "ai_role": "The primary Pillow security advisory explicitly states the issue was found by Anthropic using Claude to study open-source software and manually validated by Ada Logics. The model version is not identified.",
  "disclosure_date": "2026-10-17",
  "ai_attribution_date": "2026-10-17",
  "classification": "disclosure",
  "classification_note": "The advisory was publicly published Oct 17, 2026, and specifies a 90-day coordinated disclosure window. It rates the issue High. No exploitation claim is made; the reported overflow primitive is not summarized as RCE.",
  "cves": [
    "CVE-2026-112403"
  ],
  "source_url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782",
  "ai_source_url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782",
  "remediation": "fix documented",
  "remediation_note": "Fixed in Pillow 13.0.0. The advisory notes that loading before thumbnailing or setting reducing_gap=None avoids the affected draft path; builds against libjpeg-turbo 2.x or IJG libjpeg are not affected. Upgrade to the fixed Pillow release. Deployment status is not checked.",
  "advisory_url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782",
  "checked_date": "2026-11-14",
  "cvss": [
    {
      "cve": "CVE-2026-112403",
      "version": "4.0",
      "score": 9.2,
      "vector": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/112xxx/CVE-2026-112403.json",
      "source_name": "GitHub_M (CNA; CVE Program record)",
      "checked_date": "2026-11-16"
    }
  ],
  "impacts": [
    {
      "cves": [
        "CVE-2026-112403"
      ],
      "consequences": [
        "code execution",
        "denial of service"
      ],
      "conditions": "CNA description: Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count after scaling is requested, and an 8-bit lossless SOF3 JPEG decoded by a build linked to libjpeg-turbo 3.x can ignore the requested downscaling geometry. An attacker can supply such a JPEG to an application that uses draft() or thumbnail() to request downscaling. This can corrupt heap memory, crash the process, or potentially allow code execution. Older libjpeg-turbo 2.x and IJG builds reject the SOF3 input. This issue is fixed in version 13.0.0.",
      "exploitation": "Exploitation in the wild is not established by the cited description.",
      "source_url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/112xxx/CVE-2026-112403.json",
      "checked_date": "2026-11-16"
    }
  ]
}
