Cloudanix VulnDB

CVE-2015-3228

None

CVSS

—

EPSS

3.9%

Published

Aug 11, 2015

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in an older version of a common document-processing tool lets specially made files crash the program when they are converted or viewed.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Moderate
Impact
Denial Of Service
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Integer overflow in gs_heap_alloc_bytes allows crafted Postscript input to trigger out-of-bounds memory access, resulting in process crash.

Why it matters to the business

Disruption to document conversion and rendering workflows that rely on Ghostscript, with potential for availability loss in print and PDF pipelines.

How an attack unfolds

An attacker creates a malicious Postscript file that overflows an allocation size calculation inside Ghostscript; when the file is processed via ps2pdf or similar utilities the overflow leads to invalid memory access and denial of service.

How to fix it

Upgrade Ghostscript to a version that corrects the allocation integer overflow; replace any remaining instances of 9.15 or earlier with a maintained release.

How to confirm the fix worked

Confirm Ghostscript version is newer than 9.15; reprocess known trigger Postscript files and verify absence of crash or memory corruption.

Typical attack path

  1. Craft a Postscript file that triggers the integer overflow in gs_heap_alloc_bytes
  2. Deliver the file to a target system or service that invokes Ghostscript
  3. Victim or automated process executes Ghostscript on the file (e.g., ps2pdf)
  4. Overflow causes out-of-bounds read or write and process termination

How to detect it

Review application and system logs for Ghostscript crashes or segmentation faults occurring during Postscript or PDF conversion; correlate with file-processing timestamps.

What your security team should do

  • Inventory all systems using Ghostscript and schedule immediate upgrade
  • Block or sandbox untrusted Postscript and PDF conversion jobs until patched
  • Add Ghostscript version checks to configuration compliance scans

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 ghostscript 0 9.15~dfsg-1
Debian:12 ghostscript 0 9.15~dfsg-1
Debian:13 ghostscript 0 9.15~dfsg-1
Debian:6.0 ghostscript 0 8.71~dfsg2-9+squeeze2
Debian:7 ghostscript 0 9.05~dfsg-6.3+deb7u2
Debian:8 ghostscript 0 9.06~dfsg-2+deb8u1
Mageia:4 ghostscript 0 9.10-2.1.mga4
Mageia:5 ghostscript 0 9.14-3.1.mga5
SUSE:Linux Enterprise Desktop 12 ghostscript 0 9.15-6.5
SUSE:Linux Enterprise Desktop 12 SP1 ghostscript 0 9.15-6.5
SUSE:Linux Enterprise Point of Sale 11 SP3 ghostscript-library 0 8.62-32.38.1
SUSE:Linux Enterprise Server 11 SP2-LTSS ghostscript-library 0 8.62-32.38.1
SUSE:Linux Enterprise Server 11 SP3-LTSS ghostscript-library 0 8.62-32.38.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA ghostscript-library 0 8.62-32.38.1
SUSE:Linux Enterprise Server 11 SP4 ghostscript-library 0 8.62-32.38.1
SUSE:Linux Enterprise Server 12 ghostscript 0 9.15-6.5
SUSE:Linux Enterprise Server 12 SP1 ghostscript 0 9.15-6.5
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 ghostscript-library 0 8.62-32.38.1
SUSE:Linux Enterprise Server for SAP Applications 12 ghostscript 0 9.15-6.5
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 ghostscript 0 9.15-6.5
SUSE:Linux Enterprise Software Development Kit 11 SP4 ghostscript-library 0 8.62-32.38.1
SUSE:Linux Enterprise Software Development Kit 12 ghostscript 0 9.15-6.5
SUSE:Linux Enterprise Software Development Kit 12 SP1 ghostscript 0 9.15-6.5
SUSE:Manager 2.1 ghostscript-library 0 8.62-32.38.1
SUSE:Manager Proxy 2.1 ghostscript-library 0 8.62-32.38.1
SUSE:OpenStack Cloud 5 ghostscript-library 0 8.62-32.38.1
Ubuntu:14.04:LTS ghostscript 0 9.10~dfsg-0ubuntu10.4
openSUSE:Tumbleweed ghostscript 0 9.20-2.1

Related vulnerabilities