{
  "id": "CVE-2026-32740",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-32740",
  "published_at": "2026-05-19T19:22:07.743Z",
  "title": "libheif: Heap-Buffer-Overflow Write in Grid Tile Chroma Compositing",
  "vendor": "strukturag",
  "product": "libheif",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-09-24T19:43:12Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 128,
    "repo": "FORTBRIDGE-UK/libheif-grid-nextjs-rce",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "libheif is a HEIF and AVIF file format decoder and encoder. Versions 1.21.2 and prior contain a heap-buffer-overflow (write) vulnerability in the grid tile compositing, allowing an attacker to write 64 bytes of fully attacker-controlled data past the end of a chroma plane heap allocation by crafting a HEIF/AVIF file with a 1×4 grid of odd-height tiles. The overflow is triggered during normal image decoding with default build configuration. The written bytes are chroma (Cb/Cr) pixel values from the attacking tile, giving the attacker full control over the overflow content. This issue has been fixed in version 1.22.0.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:a:struktur:libheif:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [
    {
      "repo": "FORTBRIDGE-UK/libheif-grid-nextjs-rce",
      "url": "https://github.com/FORTBRIDGE-UK/libheif-grid-nextjs-rce",
      "created_at": "2026-09-24T19:43:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-10-18T20:19:20Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "strukturag",
        "product": "libheif",
        "ranges": [
          "\u003c 1.22.0"
        ],
        "fixed_in": [
          "1.22.0"
        ]
      }
    ],
    "upgrade": [
      "Upgrade libheif to 1.22.0 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/strukturag/libheif/security/advisories/GHSA-frfr-f3vg-2g6j"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/strukturag/libheif/releases/tag/v1.22.0"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
