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% (91st 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% (91st 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-105285 — Critical (CVSS 10.0): A security vulnerability has been detected in Totolink A3002MU 1.0.0-B20230403.1455. This affects an unknown function…
- CVE-2026-104610 — Critical (CVSS 10.0): A security vulnerability has been detected in Tenda HG7, HG9 and HG10 300001138_en_xpon. This impacts the function…
- CVE-2026-101039 — Critical (CVSS 10.0): A vulnerability was identified in FAST FAC1900R 20190827_2.0.2. Affected by this issue is the function copy_msg_element…
- CVE-2026-96257 — Critical (CVSS 10.0): A flaw has been found in Fast FAC1203R Gigabit Edition 2.0.4. Affected by this issue is the function copy_msg_element…
- CVE-2026-94089 — Critical (CVSS 10.0): A vulnerability was determined in D-Link DIR-868L 2.01b05. This issue affects the function strcpy of the file…
- CVE-2026-94003 — Critical (CVSS 10.0): A vulnerability has been found in Comfast CF-N1-S 2.6.0.1. Impacted is the function get_css_path_from_uri of the file…