CVE-2015-3228
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and...
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
Exploit likelihood
What each source reports
NVD Score used
6.8
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
- Record
CVE-2015-3228- CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-189
- Updated
- 2026-11-02
CVE List No score
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
- Record
CVE-2015-3228- Updated
- 2026-11-02
EUVDEUVD-2015-3284 No score
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
- Record
EUVD-2015-3284- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jf9j-9gh2-gp45 No score
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and...
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
- Record
GHSA-jf9j-9gh2-gp45- Updated
- 2026-11-02
OSVBELL-CVE-2015-3228
6.8
CVE-2015-3228 does not affect BellSoft software
- Record
BELL-CVE-2015-3228- CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
OSV No score
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
- Record
CVE-2015-3228- Updated
- 2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2015-3228 No score
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
- Record
DEBIAN-CVE-2015-3228- Updated
- 2026-11-02
OSVMGASA-2015-0308 No score
Updated ghostscript package fixes security vulnerability
GhostScript is vulnerable to an integer overflow when processing a crafted PostScript file using the ps2pdf command (CVE-2015-3228).
- Record
MGASA-2015-0308- 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:0884-1 No score
Security update for ghostscript
ghostscript was updated to fix one security issue and one bug.
The following vulnerability was fixed:
- CVE-2015-3228: Specially crafted ps files could have caused an out of bound read/write due to an integer overflow, causing a segfault in the application or having unspecified further impact.
Also a non security bug was fixed:
- fix a crash in mutex handling (bsc#963017)
- Record
SUSE-SU-2016:0884-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
OSVUBUNTU-CVE-2015-3228 No score
Integer overflow in the gs_heap_alloc_bytes function in base/gsmalloc.c in Ghostscript 9.15 and earlier allows remote attackers to cause a denial of service (crash) via a crafted Postscript (ps) file, as demonstrated by using the ps2pdf command, which triggers an out-of-bounds read or write.
- Record
UBUNTU-CVE-2015-3228- Updated
- 2026-11-02
OSVUSN-2697-1 No score
ghostscript vulnerability
William Robinet and Stefan Cornelius discovered that Ghostscript did not correctly handle 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.
- Record
USN-2697-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
ghostscriptDebian:12 |
before 9.15~dfsg-1 | 9.15~dfsg-1 |
ghostscriptDebian:13 |
before 9.15~dfsg-1 | 9.15~dfsg-1 |
ghostscriptDebian:14 |
before 9.15~dfsg-1 | 9.15~dfsg-1 |
ghostscriptDebian:6.0 |
before 8.71~dfsg2-9+squeeze2, plus listed versions 8.71~dfsg2-98.71~dfsg2-9+squeeze1 |
8.71~dfsg2-9+squeeze2 |
ghostscriptDebian:7 |
before 9.05~dfsg-6.3+deb7u2, plus listed versions 9.05~dfsg-6.39.05~dfsg-6.3+deb7u1 |
9.05~dfsg-6.3+deb7u2 |
ghostscriptDebian:8 |
before 9.06~dfsg-2+deb8u1, plus listed versions 9.06~dfsg-2 |
9.06~dfsg-2+deb8u1 |
ghostscriptMageia:4 |
before 9.10-2.1.mga4 | 9.10-2.1.mga4 |
ghostscriptMageia:5 |
before 9.14-3.1.mga5 | 9.14-3.1.mga5 |
ghostscriptSUSE:Linux Enterprise Desktop 12 |
before 9.15-6.5 | 9.15-6.5 |
ghostscriptSUSE:Linux Enterprise Desktop 12 SP1 |
before 9.15-6.5 | 9.15-6.5 |
Show 18 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 |
before 9.15-6.5 | 9.15-6.5 |
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 9.15-6.5 | 9.15-6.5 |
ghostscriptSUSE:Linux Enterprise Server 12 |
before 9.15-6.5 | 9.15-6.5 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 |
before 9.15-6.5 | 9.15-6.5 |
ghostscriptSUSE:Linux Enterprise Server 12 SP1 |
before 9.15-6.5 | 9.15-6.5 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 9.15-6.5 | 9.15-6.5 |
ghostscript-librarySUSE:Linux Enterprise Software Development Kit 11 SP4 From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:OpenStack Cloud 5 From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Manager 2.1 From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Manager Proxy 2.1 From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Point of Sale 11 SP3 From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP2-LTSS From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP3-LTSS From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP3-TERADATA From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP4 From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscript-librarySUSE:Linux Enterprise Server for SAP Applications 11 SP4 From an advisory covering 4 CVEs |
before 8.62-32.38.1 | 8.62-32.38.1 |
ghostscriptUbuntu:14.04:LTS |
before 9.10~dfsg-0ubuntu10.4, plus listed versions 9.10~dfsg-0ubuntu29.10~dfsg-0ubuntu39.10~dfsg-0ubuntu49.10~dfsg-0ubuntu59.10~dfsg-0ubuntu6 Show 7 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.3 |
9.10~dfsg-0ubuntu10.4 |
ghostscriptopenSUSE:Tumbleweed From an advisory covering 7 CVEs |
before 9.20-2.1 | 9.20-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2015-3228 is a medium vulnerability (CVSS 6.8) in Artifex Afpl Ghostscript, published July 24, 2015. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.88%, the 90th percentile. Fixed in ghostscript 9.15~dfsg-1.
References
debian.org/security/2015/dsa-3326
bugs.ghostscript.com/show_bug.cgi?id=696070
securitytracker.com/id/1033149
bugzilla.redhat.com/show_bug.cgi?id=1232805
git.ghostscript.com?p=ghostpdl.git%3Ba=commitdiff%3Bh=0c0b0859
oracle.com/technetwork/topics/security/bulletinjul2016-3090568.html
Show 28 moreShow less
bugs.ghostscript.com/show_bug.cgi?id=696041
security.gentoo.org/glsa/201612-33
securityfocus.com/bid/76017
ubuntu.com/usn/USN-2697-1
openwall.com/lists/oss-security/2015/07/23/14
nvd.nist.gov/vuln/detail/CVE-2015-3228
git.ghostscript.com?p=ghostpdl.git;a=commitdiff;h=0c0b0859
github.com/advisories/GHSA-jf9j-9gh2-gp45
docs.bell-sw.com/security/cves/CVE-2015-3228
security-tracker.debian.org/tracker/CVE-2015-3228
advisories.mageia.org/MGASA-2015-0308.html
bugs.mageia.org/show_bug.cgi?id=16453
bugzilla.redhat.com/show_bug.cgi?id=CVE-2015-3228
suse.com/support/update/announcement/2016/suse-su-20160884-1
bugzilla.suse.com/939342
bugzilla.suse.com/963017
suse.com/security/cve/CVE-2015-3228
suse.com/support/update/announcement/2016/suse-su-20162493-1
bugzilla.suse.com/1001951
suse.com/security/cve/CVE-2013-5653
suse.com/security/cve/CVE-2016-7977
suse.com/security/cve/CVE-2016-7979
ubuntu.com/security/CVE-2015-3228
ubuntu.com/security/notices/USN-2697-1
cve.org/CVERecord?id=CVE-2015-3228
suse.com/security/cve/CVE-2016-7976
suse.com/security/cve/CVE-2016-7978
suse.com/security/cve/CVE-2016-8602