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…

published September 6, 2012

CVSS
—
EPSS
4%
Percentile
91.0
In the wild
Unconfirmed
What it is

⚠️ A crafty PostScript file with a long filename can trigger this heap-based buffer overflow in Ghostscript 9.04! Think of it like a waiter trying to fit an oversized order into a tiny delivery bag – when the bag can't hold it, chaos can ensue! If a user opens a specially crafted file, it could lead to an attacker executing arbitrary code on their machine. While there's no confirmed exploitation, the potential for damage could disrupt systems and compromise data.

Put simply

Think of it like a waiter trying to fit an oversized order into a tiny delivery bag – when the bag can't hold it, chaos can ensue! This vulnerability in gdevwpr2.c occurs when processing the OutputFile device parameter, allowing a long filename to cause a buffer overflow in memory, opening the door for arbitrary code execution.

What to do

If a user opens a specially crafted file, it could lead to an attacker executing arbitrary code on their machine. While there's no confirmed exploitation, the potential for damage could disrupt systems and compromise data. To protect your systems, consider upgrading Ghostscript to a more recent version where this issue is resolved. Additionally, validate and sanitize any input filename lengths in your PostScript documents to prevent this kind of overflow. You've got this! Stay proactive and keep your Ghostscript updated for peace of mind. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.04273 · 91.0th percentile
Published
2012-09-06T21:00Z
EPSS history
Timeline
  • 06 SEP 21:00Z
    Heap-based buffer overflow in gdevwpr2.c in Ghostscript 9.04, when processing the OutputFile device parameter, allows user-assisted remote attackers to execute…
    cvelistv5