Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in Popular Apps
A patched flaw in Ghostscript lets crafted files escape its sandbox to run commands on servers processing uploads in common applications.
Overview
A security flaw in Ghostscript allowed a crafted file to bypass the program's safety restrictions and run commands on a serverA computer or program on a network that stores data and responds to requests from client devices. This issue affected about ten common applications that use Ghostscript to process uploaded files, such as images or documents. The vulnerabilityA flaw in software or hardware that lets an attacker do something the maker did not intend worked because standard image libraries could pass hidden malicious content to Ghostscript even if the file had a normal name like .png or .jpg. The bug was a use-after-freeA memory bug where a program keeps using a memory slot after releasing it error in the font loading section that disabled the -dSAFER sandboxAn isolated test environment where a program can run without touching the rest of the computer. Security firm pwn.ai demonstrated that this flaw could be triggered by simple actions like printing a job or opening an email attachment without needing a login. The flaw was fixed in version 10.08.0 on September 8, and no attacks have been reported using it.
Terms in this story
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- use-after-free
- A memory bug where a program keeps using a memory slot after releasing it. Software makers frequently patch use-after-free bugs because an attacker can fill that freed memory slot with crafted data and trick the program into running malicious code.
- sandbox
- An isolated test environment where a program can run without touching the rest of the computer. Web browsers run each tab inside a sandbox so a malicious page cannot read your personal files, and analysts detonate suspicious attachments in a sandbox to watch what they do. Security+ objective 4.1 lists the term
- Sandbox-Escape
- A flaw that lets malicious code break out of an isolated container into the host system. Even if an attacker tricks your browser tab into running code, they usually need a separate sandbox escape bug to reach your personal files or install malware on the computer.
- RCE
- A flaw that lets an attacker run their own code on someone else's computer over a network. This is one of the most dangerous bug classes in the news because an attacker across the internet can send a crafted request and take control of a server.
- patched
- A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
- CVE
- The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term
- plugin
- An add-on software module that extends a website, browser, or application with extra features. Small businesses add dozens of third-party plugins to their websites for contact forms or shopping carts, and an unpatched plugin flaw is a common way attackers take over a site.
- security advisory
- An official bulletin from a vendor or agency warning users about a flaw and its fix. When a bug is patched, the vendor publishes a security advisory listing affected versions, the CVE code, the severity rating, and instructions for updating.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The Hacker News website. Cite the article, not this page.
Read the full article on The Hacker News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"A now-patched flaw in Ghostscript..." Found by reading the article; these exact words are in it - Security+ 2.3 Explain various types of vulnerabilities.
"A now-patched flaw in Ghostscript allows a crafted file to..." Found in the opening sentences - Security+ 2.5 Explain the purpose of mitigation techniques used to secure the enterprise.
"A now-patched flaw in Ghostscript allows a crafted file..." Found in the opening sentences - Security+ 4.1 Given a scenario, apply common security techniques to computing resources.
"Researchers Demonstrate Ghostscript Sandbox-Escape RCE via Crafted File Uploads in..." Found in the headline - CYBR 101 week 3: cyber hygiene, privacy, OSINT and social engineering
"A now-patched flaw in Ghostscript allows a crafted file..." Found in the opening sentences - CYBR 101 week 5: hashes, how passwords are stored and cracked, Linux basics
"......it. Ghostscript is the interpreter that many Linux servers use to convert uploaded PDFs, PostScript..." Found in the opening sentences - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"......it. Ghostscript is the interpreter that many Linux servers use to convert uploaded PDFs, PostScript..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......images into other formats, often without the application calling it directly." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of how different file types can be used for anomalous behavior.
"...file to escape the programs security sandbox..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze countermeasures and mitigations against potential exploitations of programming language weaknesses and vulnerabilities in system and elements.
"...switch off the checks in -dSAFER..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role