{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "10.08.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "05631c2cba4e578fdd6bd25cae6f0939436de848"
            },
            {
              "fixed": "1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"
            }
          ],
          "repo": "https://github.com/artifexsoftware/ghostpdl",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-648"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125396.json"
  },
  "details": "Ghostscript before 10.08.0 contains a -dSAFER bypass vulnerability in the .putgstringcopy procedure in gs_fonts.ps, which calls the privileged .forceput operator without checking operand types. Attackers can supply crafted PostScript or PDF documents that trigger a type error, recover .forceput via a custom error handler, and cause a use-after-free across save/restore to execute arbitrary code.",
  "id": "CVE-2026-125396",
  "modified": "2026-11-22T20:45:18.626706446Z",
  "published": "2026-11-09T23:28:00.084Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2026/11/22/1"
    },
    {
      "type": "WEB",
      "url": "https://pwn.ai/upload2shell"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125396.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125396"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/ghostscript-before-10.08.0-dsafer-bypass-via-putgstringcopy-forceput-recovery"
    },
    {
      "type": "REPORT",
      "url": "https://bugs.ghostscript.com/show_bug.cgi?id=709684"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ArtifexSoftware/ghostpdl/commit/1484854e0c8ddfda1baa4ad4cd965b8a9790aa81"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/ArtifexSoftware/ghostpdl"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ArtifexSoftware/ghostpdl/blob/ghostpdl-10.07.0/Resource/Init/gs_fonts.ps#L1026-L1035"
    }
  ],
  "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": "Ghostscript before 10.08.0 -dSAFER Bypass via .putgstringcopy .forceput Recovery"
}