{
  "id": "ghsa-9rpf-2x22-78m9",
  "title": "Uninitialized thumbnail handle can cause use-after-free or double free",
  "product": "libheif",
  "ai_system": "Anthropic OSS Scanner (model not specified for this finding)",
  "organization": "Anthropic and libheif maintainers",
  "summary": "When an image already fit within a requested thumbnail box, the API returned success without setting the output handle. Callers such as heif-enc and the C++ wrapper could release an uninitialized or stale pointer, causing use-after-free or double free.",
  "ai_role": "The item-level libheif advisory explicitly attributes discovery to Anthropic's OSS Scanner as ANT-2026-F9U9FFM3. The release notes independently state that all listed security issues were found by the scanner. The Anthropic program sources establish model-based scanning, but no per-case model is identified.",
  "disclosure_date": "2026-10-26",
  "ai_attribution_date": "2026-10-26",
  "classification": "disclosure",
  "classification_note": "The primary advisory establishes a publicly disclosed security finding and direct Anthropic OSS Scanner attribution. No CVE had been assigned in the libheif release notes at the checked time; the distinct GHSA is used. No exploitation or zero-day status is asserted.",
  "cves": [],
  "source_url": "https://github.com/strukturag/libheif/security/advisories/GHSA-9rpf-2x22-78m9",
  "ai_source_url": "https://github.com/strukturag/libheif/security/advisories/GHSA-9rpf-2x22-78m9",
  "remediation": "fix documented",
  "remediation_note": "The no-thumbnail path returns an empty image and initializes the C API handle to null; in-tree callers also initialize handles. Fixed in libheif 1.23.7. The libheif v1.23.7 security release is dated 2026-10-26; deployed patch status is not checked.",
  "advisory_url": "https://github.com/strukturag/libheif/security/advisories/GHSA-9rpf-2x22-78m9",
  "checked_date": "2026-11-14",
  "impacts": [
    {
      "cves": [],
      "consequences": [
        "other"
      ],
      "conditions": "When an application encodes a thumbnail for an image already within requested bounds, libheif returns success without assigning output handle; callers may use/release an uninitialized or stale pointer, causing UAF/double/invalid free or process crash. Code execution was not demonstrated.",
      "exploitation": "The cited source does not establish exploitation in the wild.",
      "source_url": "https://github.com/strukturag/libheif/security/advisories/GHSA-9rpf-2x22-78m9",
      "checked_date": "2026-11-16"
    }
  ]
}
