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

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

Affected products (1)

More vulnerabilities in Artifex Gpl Ghostscript

All CVEs affecting Artifex Gpl Ghostscript →

Other CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities

Browse all CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) vulnerabilities →