{
  "id": "ghsa-hpg4-g2gc-pq42",
  "title": "Mixed-size sequence padding can cause a heap buffer overflow",
  "product": "libheif",
  "ai_system": "Anthropic OSS Scanner (model not specified for this finding)",
  "organization": "Anthropic and libheif maintainers",
  "summary": "Padding an image to a requested size that was larger in one dimension and smaller in another could cause heap buffer overflow during sequence encoding. The path is reachable when x264/x265 encoders process later frames with different sizes from the first frame.",
  "ai_role": "The item-level libheif advisory explicitly attributes discovery to Anthropic's OSS Scanner as ANT-2026-QL0PMTMT. 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-hpg4-g2gc-pq42",
  "ai_source_url": "https://github.com/strukturag/libheif/security/advisories/GHSA-hpg4-g2gc-pq42",
  "remediation": "fix documented",
  "remediation_note": "Padding now rejects dimensions below the image or its planes and validates all planes before changes; sequence encoders reject mixed-size frames. Fixed in libheif 1.23.7. This concerns encoding workflows, not ordinary file decoding. 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-hpg4-g2gc-pq42",
  "checked_date": "2026-11-14",
  "impacts": [
    {
      "cves": [],
      "consequences": [
        "other",
        "denial of service"
      ],
      "conditions": "A crafted mixed-size image sequence can cause a heap buffer overflow and crash when an application accepts the sequence and re-encodes it using the affected encoder. No code execution is demonstrated.",
      "exploitation": "Exploitation in the wild is not established by the cited description.",
      "source_url": "https://github.com/strukturag/libheif/security/advisories/GHSA-hpg4-g2gc-pq42",
      "checked_date": "2026-11-16"
    }
  ]
}
