Ghostscriptに-dSAFERの制限を回避される脆弱性、悪造文書で任意のコードを実行される恐れ
Summary
Ghostscriptの10.08.0より前の版には、-dSAFERによる安全制限を回避される脆弱性(CVE-2026-125396)があります。細工したPostScriptやPDFを開かせると、任意のコードを実行される恐れがあります。修正版の10.08.0が公開されているので、10.08.0以降に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Ghostscriptの10.08.0より前の版には、-dSAFERによる安全制限を回避される脆弱性(CVE-2026-125396)があります。細工したPostScriptやPDFを開かせると、任意のコードを実行される恐れがあります。修正版の10.08.0が公開されているので、10.08.0以降に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| ArtifexSoftwareghostpdl |
< 10.08.0→ 10.08.0 |
10.08.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-125396 ghostscript Fix available
- Ubuntu UBUNTU-CVE-2026-125396 ghostscript No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- report bugs.ghostscript.com
- web github.com
- web github.com
- web pwn.ai
- web openwall.com