CVE-2021-3781CWE-20

A trivial sandbox (enabled with the `-dSAFER` option) escape flaw was found in the ghostscript interpreter by injecting a specially crafted pipe command

published February 16, 2022

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 99.7th percentile for exploit probability.

CVSS
—
EPSS
84%
Percentile
99.7
In the wild
Unconfirmed
What it is

🚨 A crafty pipe command can break the ghostly seal! This sandbox escape flaw in Ghostscript allows attackers to run arbitrary commands while the interpreter thinks it’s safe. 🔥 Think of it like a magician pulling a rabbit out of a hat, but this time, the rabbit is a sneaky command that gets to roam around your system! The `-dSAFER` option was supposed to keep things magical and secure, but it turns out, there's a hidden trapdoor in the magic box. An attacker could execute commands on your system, potentially leading to a catastrophic breach of confidentiality and integrity. Imagine sensitive data being accessed or altered without your knowledge, and even your system's availability being threatened — that's the kind of chaos we want to avoid!

Put simply

Think of it like a magician pulling a rabbit out of a hat, but this time, the rabbit is a sneaky command that gets to roam around your system! The `-dSAFER` option was supposed to keep things magical and secure, but it turns out, there's a hidden trapdoor in the magic box. This vulnerability in the Ghostscript interpreter arises from a trivial sandbox escape flaw, allowing specially crafted documents to execute arbitrary commands via an injected pipe command, completely bypassing security measures intended to isolate the interpreter's environment.

What to do

An attacker could execute commands on your system, potentially leading to a catastrophic breach of confidentiality and integrity. Imagine sensitive data being accessed or altered without your knowledge, and even your system's availability being threatened — that's the kind of chaos we want to avoid! To protect yourself, ensure you're running the latest version of Ghostscript and disable the `-dSAFER` option if it’s not needed. Regularly audit your usage of Ghostscript and review any documents processed to mitigate risks. You’ve got this! By following these steps, you’ll keep your Ghostscript environment safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.83913 · 99.7th percentile
Weakness
CWE-20 · Improper Input Validation
Published
2022-02-16T00:00Z
EPSS history
Timeline
  • 16 FEB 00:00Z
    A trivial sandbox (enabled with the `-dSAFER` option) escape flaw was found in the ghostscript interpreter by injecting a specially crafted pipe command
    cvelistv5