{
  "id": "CVE-2026-112403",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-112403",
  "published_at": "2026-10-19T21:22:21.077Z",
  "title": "Pillow: Heap buffer overflow in ImagingJpegDecode",
  "vendor": "python-pillow",
  "product": "Pillow",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-23T09:49:47Z",
    "first_seen_at": "2026-11-14T11:20:02.754Z",
    "days_after_publication": 3.5,
    "repo": "al4n4n/CVE-2026-112403",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-122",
  "cpes": [
    "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.2,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "al4n4n/CVE-2026-112403",
      "url": "https://github.com/al4n4n/CVE-2026-112403",
      "created_at": "2026-10-23T09:49:47Z",
      "first_seen_at": "2026-11-14T11:20:02.754Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-06-28T17:19:24Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "python-pillow",
        "product": "Pillow",
        "ranges": [
          "\u003c 13.0.0"
        ],
        "fixed_in": [
          "13.0.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Pillow to 13.0.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/python-pillow/Pillow/releases/tag/13.0.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/upload",
      "body_markers": [
        "name=\"image\""
      ],
      "content_type": "{var}",
      "ports": [
        8080,
        8081
      ],
      "protocol": "https",
      "repos": [
        "al4n4n/CVE-2026-112403"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "al4n4n/CVE-2026-112403/check.py:160",
        "al4n4n/CVE-2026-112403/poc.py:46",
        "al4n4n/CVE-2026-112403/verify.py:78"
      ]
    }
  ],
  "rules": []
}
