CVE-2025-27831: Artifex Ghostscript · Classic Buffer Overflow
Source CVE Database V5
Not known to be exploited · CVSS 9.8 Critical · fixed in 10.05.0 : patch Artifex Ghostscript as a priority.
Data as of 26 Oct 2026, 13:47 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 48% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Affects
- Artifex Ghostscript before 10.05.0
- Patch
- Available – fixed in 10.05.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 25 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Immediately upgrade all Ghostscript installations to version 10.05.0 or later once available, as this version addresses the buffer overflow issue.
- If you cannot patch yet, restrict access to Ghostscript services by implementing network segmentation and firewall rules to limit exposure to untrusted networks.
- Employ input validation and sanitization on documents processed by Ghostscript to detect and block suspiciously long character sequences that could trigger the overflow.
- Utilize application sandboxing and least privilege execution environments for Ghostscript processes to contain potential exploitation impact.
- Monitor logs and network traffic for anomalous activity indicative of exploitation attempts, such as unexpected process behavior or unusual document inputs.
- Coordinate with vendors and security teams to prioritize patch deployment and conduct thorough testing in staging environments before production rollout.
- Educate staff about the risks associated with processing untrusted documents and enforce strict document handling policies.
Description
An issue was discovered in Artifex Ghostscript before 10.05.0. The DOCXWRITE TXTWRITE device has a text buffer overflow via long characters to devices/vector/doc_common.c.