CVE-2013-5653
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which...
CVE-2013-5653 is a medium vulnerability (CVSS 5.5) in Artifex Afpl Ghostscript, published December 31, 2013. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.96%, the 80th percentile. Fixed in ghostscript 9.19~dfsg-3.1.
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.5
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
- Record
CVE-2013-5653- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
CVE List No score
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
- Record
CVE-2013-5653- Updated
- 2026-11-02
EUVDEUVD-2013-5492 No score
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
- Record
EUVD-2013-5492- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-hh8r-vgv6-7j2f
5.5
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which...
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
- Record
GHSA-hh8r-vgv6-7j2f- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-200
- Updated
- 2026-11-02
OSV
5.5
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
- Record
CVE-2013-5653- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2013-5653
5.5
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
- Record
DEBIAN-CVE-2013-5653- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 8 moreShow less
OSVRHSA-2017:0013
6.2
Red Hat Security Advisory: ghostscript security update
- Record
RHSA-2017:0013- CVSS 3.0
- 6.2 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVRHSA-2017:0014
6.2
Red Hat Security Advisory: ghostscript security update
- Record
RHSA-2017:0014- CVSS 3.0
- 6.2 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2013-5653
5.5
The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
- Record
UBUNTU-CVE-2013-5653- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10003-1 No score
ghostscript-9.20-2.1 on GA media
These are all security issues fixed in the ghostscript-9.20-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10003-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2492-1 No score
Security update for ghostscript-library
This update for ghostscript-library fixes the following issues:
-
Multiple security vulnerabilities have been discovered where ghostscript's '-dsafer' flag did not provide sufficient protection against unintended access to the file system. Thus, a machine that would process a specially crafted Postscript file would potentially leak sensitive information to an attacker. (CVE-2013-5653, bsc#1001951)
-
An incorrect reference count was found in .setdevice. This issue lead to a use-after-free scenario, which could have been exploited for denial-of-service or, possibly, arbitrary code execution attacks. (CVE-2016-7978, bsc#1001951)
-
Insufficient validation of the type of input in .initialize_dsc_parser used to allow remote code execution. (CVE-2016-7979, bsc#1001951)
- Record
SUSE-SU-2016:2492-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2493-1 No score
Security update for ghostscript-library
This update for ghostscript-library fixes the following issues:
-
Multiple security vulnerabilities have been discovered where ghostscript's '-dsafer' flag did not provide sufficient protection against unintended access to the file system. Thus, a machine that would process a specially crafted Postscript file would potentially leak sensitive information to an attacker. (CVE-2013-5653, CVE-2016-7977, bsc#1001951)
-
Insufficient validation of the type of input in .initialize_dsc_parser used to allow remote code execution. (CVE-2016-7979, bsc#1001951)
-
An integer overflow in the gs_heap_alloc_bytes function used to allow remote attackers to cause a denial of service (crash) via specially crafted Postscript files. (CVE-2015-3228, boo#939342)
- Record
SUSE-SU-2016:2493-1- Updated
- 2026-11-02
OSVSUSE-SU-2016:2817-1 No score
Security update for ghostscript
This update for ghostscript fixes the following issues:
- bsc#1006592: Fix a regression introduced in CVE-2013-5653 by which ps files couldn't be opened in okular/evince (kde#371887).
- Record
SUSE-SU-2016:2817-1- Updated
- 2026-11-02
OSVUSN-3148-1 No score
ghostscript vulnerabilities
Tavis Ormandy discovered multiple vulnerabilities in the way that Ghostscript processes certain Postscript files. If a user or automated system were tricked into opening a specially crafted file, an attacker could cause a denial of service or possibly execute arbitrary code. (CVE-2016-7976, CVE-2016-7978, CVE-2016-7979, CVE-2016-8602)
Multiple vulnerabilities were discovered in Ghostscript related to information disclosure. If a user or automated system were tricked into opening a specially crafted file, an attacker could expose sensitive data. (CVE-2013-5653, CVE-2016-7977)
- Record
USN-3148-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
ghostscriptDebian:12 |
before 9.19~dfsg-3.1 | 9.19~dfsg-3.1 |
ghostscriptDebian:13 |
before 9.19~dfsg-3.1 | 9.19~dfsg-3.1 |
ghostscriptDebian:14 |
before 9.19~dfsg-3.1 | 9.19~dfsg-3.1 |
ghostscriptDebian:7 |
before 9.05~dfsg-6.3+deb7u3, plus listed versions 9.05~dfsg-6.39.05~dfsg-6.3+deb7u19.05~dfsg-6.3+deb7u2 |
9.05~dfsg-6.3+deb7u3 |
ghostscriptDebian:8 |
before 9.06~dfsg-2+deb8u3, plus listed versions 9.06~dfsg-29.06~dfsg-2+deb8u19.06~dfsg-2+deb8u2 |
9.06~dfsg-2+deb8u3 |
ghostscriptRed Hat:enterprise_linux:7::client |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-cupsRed Hat:enterprise_linux:7::client |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-debuginfoRed Hat:enterprise_linux:7::client |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-develRed Hat:enterprise_linux:7::client |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-docRed Hat:enterprise_linux:7::client |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
Show 67 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ghostscript-gtkRed Hat:enterprise_linux:7::client |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscriptRed Hat:enterprise_linux:7::computenode |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-cupsRed Hat:enterprise_linux:7::computenode |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-debuginfoRed Hat:enterprise_linux:7::computenode |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-develRed Hat:enterprise_linux:7::computenode |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-docRed Hat:enterprise_linux:7::computenode |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-gtkRed Hat:enterprise_linux:7::computenode |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscriptRed Hat:enterprise_linux:7::server |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-cupsRed Hat:enterprise_linux:7::server |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-debuginfoRed Hat:enterprise_linux:7::server |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-develRed Hat:enterprise_linux:7::server |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-docRed Hat:enterprise_linux:7::server |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-gtkRed Hat:enterprise_linux:7::server |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscriptRed Hat:enterprise_linux:7::workstation |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-cupsRed Hat:enterprise_linux:7::workstation |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-develRed Hat:enterprise_linux:7::workstation |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-docRed Hat:enterprise_linux:7::workstation |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscript-gtkRed Hat:enterprise_linux:7::workstation |
before 0:9.07-20.el7_3.1 | 0:9.07-20.el7_3.1 |
ghostscriptRed Hat:enterprise_linux:6::client |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-debuginfoRed Hat:enterprise_linux:6::client |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-develRed Hat:enterprise_linux:6::client |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-docRed Hat:enterprise_linux:6::client |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-gtkRed Hat:enterprise_linux:6::client |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscriptRed Hat:enterprise_linux:6::computenode |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-debuginfoRed Hat:enterprise_linux:6::computenode |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-develRed Hat:enterprise_linux:6::computenode |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-docRed Hat:enterprise_linux:6::computenode |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-gtkRed Hat:enterprise_linux:6::computenode |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscriptRed Hat:enterprise_linux:6::server |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-debuginfoRed Hat:enterprise_linux:6::server |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-develRed Hat:enterprise_linux:6::server |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-docRed Hat:enterprise_linux:6::server |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-gtkRed Hat:enterprise_linux:6::server |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscriptRed Hat:enterprise_linux:6::workstation |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-debuginfoRed Hat:enterprise_linux:6::workstation |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-develRed Hat:enterprise_linux:6::workstation |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-docRed Hat:enterprise_linux:6::workstation |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscript-gtkRed Hat:enterprise_linux:6::workstation |
before 0:8.70-21.el6_8.1 | 0:8.70-21.el6_8.1 |
ghostscriptSUSE:Linux Enterprise Desktop 12 SP1 |
before 9.15-11.1 | 9.15-11.1 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 |
before 9.15-11.1 | 9.15-11.1 |
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 9.15-11.1 | 9.15-11.1 |
ghostscriptSUSE:Linux Enterprise Server 12-LTSS |
before 9.15-11.1 | 9.15-11.1 |
ghostscriptSUSE:Linux Enterprise Server 12 SP1 |
before 9.15-11.1 | 9.15-11.1 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 9.15-11.1 | 9.15-11.1 |
ghostscript-librarySUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:OpenStack Cloud 5 |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Manager 2.1 |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Manager Proxy 2.1 |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Point of Sale 11 SP3 |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP2-LTSS |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP3-LTSS |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP3-TERADATA |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP4 |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscriptSUSE:Linux Enterprise Desktop 12 SP1 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptSUSE:Linux Enterprise Desktop 12 SP2 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptSUSE:Linux Enterprise Server 12 SP1 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptSUSE:Linux Enterprise Server 12 SP2 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 9.15-17.2 | 9.15-17.2 |
ghostscriptUbuntu:14.04:LTS |
before 9.10~dfsg-0ubuntu10.5, plus listed versions 9.10~dfsg-0ubuntu29.10~dfsg-0ubuntu39.10~dfsg-0ubuntu49.10~dfsg-0ubuntu59.10~dfsg-0ubuntu6 Show 8 moreShow less9.10~dfsg-0ubuntu79.10~dfsg-0ubuntu89.10~dfsg-0ubuntu99.10~dfsg-0ubuntu109.10~dfsg-0ubuntu10.19.10~dfsg-0ubuntu10.29.10~dfsg-0ubuntu10.39.10~dfsg-0ubuntu10.4 |
9.10~dfsg-0ubuntu10.5 |
ghostscriptUbuntu:16.04:LTS |
before 9.18~dfsg~0-0ubuntu2.2, plus listed versions 9.16~dfsg~0-0ubuntu39.16~dfsg~0-0ubuntu49.18~dfsg~0-0ubuntu19.18~dfsg~0-0ubuntu2 |
9.18~dfsg~0-0ubuntu2.2 |
ghostscriptopenSUSE:Tumbleweed |
before 9.20-2.1 | 9.20-2.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV |
References
debian.org/security/2016/dsa-3691
rhn.redhat.com/errata/RHSA-2017-0013.html
rhn.redhat.com/errata/RHSA-2017-0014.html
bugzilla.redhat.com/show_bug.cgi?id=1380327
bugs.ghostscript.com/show_bug.cgi?id=697169
openwall.com/lists/oss-security/2016/09/29/28
Show 51 moreShow less
securityfocus.com/bid/96497
openwall.com/lists/oss-security/2016/09/29/5
bugs.ghostscript.com/show_bug.cgi?id=694724
nvd.nist.gov/vuln/detail/CVE-2013-5653
github.com/advisories/GHSA-hh8r-vgv6-7j2f
security-tracker.debian.org/tracker/CVE-2013-5653
access.redhat.com/errata/RHSA-2017:0013
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1380415
bugzilla.redhat.com/show_bug.cgi?id=1382300
bugzilla.redhat.com/show_bug.cgi?id=1382305
bugzilla.redhat.com/show_bug.cgi?id=1383940
security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_0013.json
access.redhat.com/security/cve/CVE-2013-5653
cve.org/CVERecord?id=CVE-2013-5653
access.redhat.com/security/cve/CVE-2016-7977
cve.org/CVERecord?id=CVE-2016-7977
nvd.nist.gov/vuln/detail/CVE-2016-7977
access.redhat.com/security/cve/CVE-2016-7978
cve.org/CVERecord?id=CVE-2016-7978
nvd.nist.gov/vuln/detail/CVE-2016-7978
access.redhat.com/security/cve/CVE-2016-7979
cve.org/CVERecord?id=CVE-2016-7979
nvd.nist.gov/vuln/detail/CVE-2016-7979
access.redhat.com/security/cve/CVE-2016-8602
cve.org/CVERecord?id=CVE-2016-8602
nvd.nist.gov/vuln/detail/CVE-2016-8602
access.redhat.com/errata/RHSA-2017:0014
security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_0014.json
suse.com/support/update/announcement/2016/suse-su-20162492-1
bugzilla.suse.com/1001951
suse.com/security/cve/CVE-2013-5653
suse.com/security/cve/CVE-2016-7978
suse.com/security/cve/CVE-2016-7979
suse.com/support/update/announcement/2016/suse-su-20162493-1
bugzilla.suse.com/939342
suse.com/security/cve/CVE-2015-3228
suse.com/security/cve/CVE-2016-7977
suse.com/support/update/announcement/2016/suse-su-20162817-1
bugzilla.suse.com/1006592
ubuntu.com/security/CVE-2013-5653
git.ghostscript.com?p=ghostpdl.git;a=commit;h=ab109aaeb3ddba59518b036fb288402a65cf7ce8
seclists.org/oss-sec/2016/q3/651
ubuntu.com/security/notices/USN-3148-1
ubuntu.com/security/CVE-2016-7976
ubuntu.com/security/CVE-2016-7977
ubuntu.com/security/CVE-2016-7978
ubuntu.com/security/CVE-2016-7979
ubuntu.com/security/CVE-2016-8602
suse.com/security/cve/CVE-2016-7976
suse.com/security/cve/CVE-2016-8602