CVE-2013-5653
published 2017-03-07CVE-2013-5653: The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript…
PriorityP430medium5.5CVSS 3.0
AVLACLPRNUIRSUCHINAN
EPSS
1.96%
78.0th percentile
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.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| artifex | afpl_ghostscript | — | — |
| artifex | ghostscript | >= 0 < 9.19~dfsg-3.1 | 9.19~dfsg-3.1 |
| artifex | ghostscript | >= 0 < 9.19~dfsg-3.1 | 9.19~dfsg-3.1 |
| artifex | ghostscript | >= 0 < 9.19~dfsg-3.1 | 9.19~dfsg-3.1 |
| artifex | ghostscript | >= 0 < 9.19~dfsg-3.1 | 9.19~dfsg-3.1 |
| artifex | ghostscript | >= 0 < 9.10~dfsg-0ubuntu10.5 | 9.10~dfsg-0ubuntu10.5 |
| artifex | ghostscript | >= 0 < 9.18~dfsg~0-0ubuntu2.2 | 9.18~dfsg~0-0ubuntu2.2 |
| debian | debian_linux | — | — |
| debian | ghostscript | < ghostscript 9.19~dfsg-3.1 (bookworm) | ghostscript 9.19~dfsg-3.1 (bookworm) |
CVSS provenance
nvdv3.05.5MEDIUMCVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:P/I:N/A:N
osv5.5MEDIUM
vendor_debian5.5LOW
vendor_redhat5.5MEDIUM
vendor_ubuntu5.5MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Ghostscript vulnerabilities
vendor_ubuntu·2016-12-02·CVSS 5.5
CVE-2013-5653 [MEDIUM] Ghostscript vulnerabilities
Title: Ghostscript vulnerabilities
Summary: Ghostscript could be made to crash, run programs, or disclose sensitive
information if it processed a specially crafted file.
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)
Instructions: In general, a standard system
Red Hat
ghostscript: getenv and filenameforall ignore -dSAFER
vendor_redhat·2013-10-21·CVSS 5.5
CVE-2013-5653 [MEDIUM] ghostscript: getenv and filenameforall ignore -dSAFER
ghostscript: getenv and filenameforall ignore -dSAFER
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.
It was found that the ghostscript functions getenv and filenameforall did not honor the -dSAFER option, usually used when processing untrusted documents, leading to information disclosure. A specially crafted postscript document could read environment variable and list directory respectively, from the target.
Package: ghostscript (Red Hat Enterprise Linux 5) - Will not fix
Package: ghostscript (Red Hat OpenShift Enterprise 2) - Will not fix
Debian
CVE-2013-5653: ghostscript - The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER"...
vendor_debian·2013·CVSS 5.5
CVE-2013-5653 [MEDIUM] CVE-2013-5653: ghostscript - The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER"...
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.
Scope: local
bookworm: resolved (fixed in 9.19~dfsg-3.1)
bullseye: resolved (fixed in 9.19~dfsg-3.1)
forky: resolved (fixed in 9.19~dfsg-3.1)
sid: resolved (fixed in 9.19~dfsg-3.1)
trixie: resolved (fixed in 9.19~dfsg-3.1)
GHSA
GHSA-hh8r-vgv6-7j2f: The getenv and filenameforall functions in Ghostscript 9
ghsa_unreviewed·2022-05-14
CVE-2013-5653 [MEDIUM] CWE-200 GHSA-hh8r-vgv6-7j2f: The getenv and filenameforall functions in Ghostscript 9
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.
OSV
CVE-2013-5653: The getenv and filenameforall functions in Ghostscript 9
osv·2017-03-07·CVSS 5.5
CVE-2013-5653 [MEDIUM] CVE-2013-5653: The getenv and filenameforall functions in Ghostscript 9
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.
OSV
ghostscript vulnerabilities
osv·2016-12-02·CVSS 5.5
CVE-2016-7976 [MEDIUM] ghostscript vulnerabilities
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)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER [fedora-all]
bugzilla·2016-11-01·CVSS 5.5
CVE-2013-5653 [MEDIUM] CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER [fedora-all]
CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of Fedora.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multiple supported versions
Bugzilla
CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER
bugzilla·2016-09-29·CVSS 5.5
CVE-2013-5653 [MEDIUM] CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER
CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER
It was found that getenv and filenameforall ignore -dSAFER possibly allowing filesystem enumeration.
Upstream bug:
http://bugs.ghostscript.com/show_bug.cgi?id=694724
Upstream patch:
http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=ab109aaeb3ddba59518b036fb288402a65cf7ce8
Reference:
http://seclists.org/oss-sec/2016/q3/651
Reproducer:
%!PS
(HOME) getenv { print (\n) print } { (variable not found\n) print } ifelse
Discussion:
Created ghostscript tracking bugs for this issue:
Affects: fedora-all [bug 1390486]
---
This issue has been addressed in the following products:
Red Hat Enterprise Linux 6
Via RHSA-2017:0014 https://rhn.redhat.com/errata/RHSA-2017-0014.html
---
This issue has been addressed in the
http://rhn.redhat.com/errata/RHSA-2017-0013.htmlhttp://rhn.redhat.com/errata/RHSA-2017-0014.htmlhttp://www.debian.org/security/2016/dsa-3691http://www.openwall.com/lists/oss-security/2016/09/29/28http://www.openwall.com/lists/oss-security/2016/09/29/5http://www.securityfocus.com/bid/96497https://bugs.ghostscript.com/show_bug.cgi?id=694724https://bugs.ghostscript.com/show_bug.cgi?id=697169https://bugzilla.redhat.com/show_bug.cgi?id=1380327http://rhn.redhat.com/errata/RHSA-2017-0013.htmlhttp://rhn.redhat.com/errata/RHSA-2017-0014.htmlhttp://www.debian.org/security/2016/dsa-3691http://www.openwall.com/lists/oss-security/2016/09/29/28http://www.openwall.com/lists/oss-security/2016/09/29/5http://www.securityfocus.com/bid/96497https://bugs.ghostscript.com/show_bug.cgi?id=694724https://bugs.ghostscript.com/show_bug.cgi?id=697169https://bugzilla.redhat.com/show_bug.cgi?id=1380327
2017-03-07
Published