vendor:
Ghostscript
by:
N/A
8.8
CVSS
HIGH
PostScript Subroutine Injection
94
CWE
Product Name: Ghostscript
Affected Version From: 9.26
Affected Version To: 9.26
Patch Exists: No
Related CWE: N/A
CPE: o:ghostscript:ghostscript
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: N/A
2020
PostScript Subroutine Injection
PostScript is a programming language used to create documents for printing. It is vulnerable to subroutine injection, which is a type of attack that allows an attacker to inject malicious code into a subroutine. This can be done by changing the dictstack, which is similar to variable scope in other languages. This can allow an attacker to execute arbitrary code on the system, leading to a complete compromise.
Mitigation:
To mitigate this vulnerability, it is important to ensure that all subroutines are properly protected. This includes binding the routine, and making sure that all commands and operators are resolved at define-time.