{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "20251009"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a"
            }
          ],
          "repo": "https://github.com/fontforge/fontforge",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135295.json"
  },
  "details": "FontForge through 20251009 contains a heap out-of-bounds write vulnerability in PcfReadEncodingsNames() that allows attackers to corrupt memory via negative glyph indices from truncated PCF encodings tables. Attackers can supply a crafted .pcf file imported through the GUI or scripting Import() command to write before the encs array, causing crashes or potential code execution.",
  "id": "CVE-2026-135295",
  "modified": "2026-11-24T20:45:19.618891721Z",
  "published": "2026-11-23T16:57:43.400Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/135xxx/CVE-2026-135295.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-135295"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/fontforge-through-20251009-heap-out-of-bounds-write-via-pcf-encodings-table"
    },
    {
      "type": "FIX",
      "url": "https://github.com/fontforge/fontforge/commit/65e80b5dfb6691a1c8a532cfbb8ec905949e0c9a"
    },
    {
      "type": "FIX",
      "url": "https://github.com/fontforge/fontforge/pull/5957"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/fontforge/fontforge"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/fontforge/fontforge/blob/20251009/fontforge/fvimportbdf.c#L1719-L1755"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "FontForge through 20251009 Heap Out-of-Bounds Write via PCF Encodings Table"
}