SecurityContext

CVE-2012-4875: Ghostscript - Buffer Overflow

  • Cve: CVE-2012-4875
  • Name: Ghostscript - Buffer Overflow
  • 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
  • Impact: Remote attackers can execute arbitrary code on the system, potentially leading to full system compromise.
  • Remediation: Update to the latest version of Ghostscript or apply security patches if available.
  • Vulnerability type: buffer_overflow
  • Vulnerability impact: remote_code_execution
  • Requirement type: user_interaction
  • Requirements: Attacker needs to provide a malicious PostScript document
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.3
  • Cvss vector: CVSS:2.0/AV:N/AC:M/Au:N/C:C/I:C/A:C
  • Epss score: 0.04273
  • Epss percentile: 0.91336
  • Assignee: [email protected]
  • Published at: 2012-09-06T21:55:03Z
  • Age in days: 5191
  • Modified at: 2026-06-16T23:45:49Z
  • References total: 4
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-4875
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-119Improper Restriction of Operations within the Bounds of a Memory Buffer

References

Same in every row:

  • Source: nvd
UrlTags
http://secunia.com/advisories/47855Vendor Advisory
http://bugs.ghostscript.com/show_bug.cgi?id=692856
http://www.securityfocus.com/bid/52864
https://exchange.xforce.ibmcloud.com/vulnerabilities/74554

Products

ProductAffectedPlatform boundSourcesUrl
artifex:gpl_ghostscript= 9.04nonvd/v1/products/artifex/gpl_ghostscript

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts