CVE-2010-4820: Code Injection

Published Jan 5, 2012
·
Updated

Ghostscript included the current working directory in its library search path by default. If a user ran Ghostscript without the "-P-" option in an attacker-controlled directory containing a specially-crafted PostScript library file, it could cause Ghostscript to execute arbitrary PostScript code. With this update, Ghostscript no longer searches the current working directory for library files by default. (CVE-2010-4820)

Note: The fix for CVE-2010-4820 could possibly break existing configurations. To use the previous, vulnerable behavior, run Ghostscript with the "-P" option (to always search the current working directory first).

Other sources

Untrusted search path vulnerability in Ghostscript 8.62 allows local users to execute arbitrary PostScript code via a Trojan horse Postscript library file in Encoding/ under the current working directory, a different vulnerability than CVE-2010-2055.

MITRE

Affected Software

1 affected component
Ghostscript Ghostscript=8.62

Event History

Jan 5, 2012
Data Sourced
09:08 AM
DescriptionSeverityAffected Software
Oct 27, 2014
CVE Published
via MITRE·01:00 AM
Data Sourced
via MITRE·01:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2010-4820?

CVE-2010-4820 has been classified as a medium severity vulnerability due to the potential for arbitrary code execution.

2

How do I fix CVE-2010-4820?

To fix CVE-2010-4820, it is recommended to run Ghostscript with the "-P-" option or update to a patched version of Ghostscript.

3

What versions of Ghostscript are affected by CVE-2010-4820?

CVE-2010-4820 affects Ghostscript version 8.62.

4

What kind of attack can be executed via CVE-2010-4820?

CVE-2010-4820 allows an attacker to execute arbitrary PostScript code by placing a specially-crafted library file in a controlled directory.

5

Can I safely run Ghostscript with the default settings regarding CVE-2010-4820?

Running Ghostscript with default settings is unsafe if the current working directory is controlled by an attacker, due to CVE-2010-4820.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203