CVE-2012-4875
CVE-2012-4875 is a critical-severity vulnerability in Artifex Gpl Ghostscript with a CVSS 2.0 base score of 9.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-119.
Key facts
- Severity: Critical (CVSS 2.0 base score 9.3)
- EPSS exploit prediction: 4% (90th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-119
- Affected product: Artifex Gpl Ghostscript
- Published:
- Last modified:
Description
Heap-based buffer overflow in gdevwpr2.c in Ghostscript 9.04, when processing the OutputFile device parameter, allows user-assisted remote attackers to execute arbitrary code via a long file name in a PostScript document. NOTE: as of 20120314, the developer was not able to reproduce the issue and disputed it
Frequently asked questions
- What is CVE-2012-4875?
- Heap-based buffer overflow in gdevwpr2.c in Ghostscript 9.04, when processing the OutputFile device parameter, allows user-assisted remote attackers to execute arbitrary code via a long file name in a PostScript document. NOTE: as of 20120314, the developer was not able to reproduce the issue and disputed it
- How severe is CVE-2012-4875?
- CVE-2012-4875 has a CVSS 2.0 base score of 9.3, rated critical severity.
- Is CVE-2012-4875 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 4% (90th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2012-4875?
- CVE-2012-4875 affects Artifex Gpl Ghostscript. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2012-4875?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2012-4875 published?
- CVE-2012-4875 was published on 2012-09-06 and last updated on 2026-06-16.
References
- http://bugs.ghostscript.com/show_bug.cgi?id=692856
- http://secunia.com/advisories/47855
- http://www.securityfocus.com/bid/52864
- https://exchange.xforce.ibmcloud.com/vulnerabilities/74554
Affected products (1)
- cpe:2.3:a:artifex:gpl_ghostscript:9.04:*:*:*:*:*:*:*
More vulnerabilities in Artifex Gpl Ghostscript
- CVE-2009-3743 — Critical (CVSS 9.3): Off-by-one error in the Ins_MINDEX function in the TrueType bytecode interpreter in Ghostscript before 8.71 allows…
- CVE-2009-4897 — Critical (CVSS 9.3): Buffer overflow in gs/psi/iscan.c in Ghostscript 8.64 and earlier allows remote attackers to execute arbitrary code or…
- CVE-2010-1628 — Critical (CVSS 9.3): Ghostscript 8.64, 8.70, and possibly other versions allows context-dependent attackers to execute arbitrary code via a…
- CVE-2010-1869 — Critical (CVSS 9.3): Stack-based buffer overflow in the parser function in GhostScript 8.70 and 8.64 allows context-dependent attackers to…
- CVE-2018-18284 — High (CVSS 8.6): Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving…
- CVE-2018-16513 — High (CVSS 7.8): In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files could use a type confusion in the…
All CVEs affecting Artifex Gpl Ghostscript →
Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities
- CVE-2026-2778 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the DOM: Core & HTML component. This vulnerability was fixed in…
- CVE-2026-2776 — Critical (CVSS 10.0): Sandbox escape due to incorrect boundary conditions in the Telemetry component in External Software. This vulnerability…
- CVE-2025-1866 — Critical (CVSS 10.0): Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in warmcat libwebsockets allows…
- CVE-2022-27625 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2022-27624 — Critical (CVSS 10.0): A vulnerability regarding improper restriction of operations within the bounds of a memory buffer is found in the…
- CVE-2020-11896 — Critical (CVSS 10.0): The Treck TCP/IP stack before 6.0.1.66 allows Remote Code Execution, related to IPv4 tunneling.