CWE
94
Advisory Published
CVE Published
Updated

CVE-2010-4820: Code Injection

First published: Thu Jan 05 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. (<a href="https://access.redhat.com/security/cve/CVE-2010-4820">CVE-2010-4820</a>) Note: The fix for <a href="https://access.redhat.com/security/cve/CVE-2010-4820">CVE-2010-4820</a> 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).

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Artifex Ghostscript=8.62

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

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

    CVE-2010-4820 affects Ghostscript version 8.62.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203