CVE-2023-43115
Published: 18 September 2023
In Artifex Ghostscript through 10.01.2, gdevijs.c in GhostPDL can lead to remote code execution via crafted PostScript documents because they can switch to the IJS device, or change the IjsServer parameter, after SAFER has been activated. NOTE: it is a documented risk that the IJS server can be specified on a gs command line (the IJS device inherently must execute a command to start the IJS server).
Notes
Author | Note |
---|---|
rodrigo-zaiden |
the risk of having programs being executed with IJS server is documented in the start of the devices/gdevijs.c source file and in the online documentation: https://ghostscript.readthedocs.io/en/gs10.02.0/Devices.html#ijs-inkjet-and-other-raster-devices "Note also that if -dSAFER is not specified, it’s possible for PostScript code to set this parameter, so it can cause arbitrary code to be executed." the commit that fixes this issue makes it clear that there is no way to properly validate it. what the fix does is to provide a minimal guard based on file opening path validation. it will prevent PostScript programs switching to the IJS device after SAFER has been activated. file opening path validation was added in version 9.28, with commmit 9de16a6637b73e35f79d2d622de403b24e6502f2, so in Ubuntu it is applicable starting from focal, for previous versions, the remediation is not applicable. applying file opening path validation for older versions sounds risky and could possible bring other problems. |
Priority
Status
Package | Release | Status |
---|---|---|
ghostscript
Launchpad, Ubuntu, Debian |
bionic |
Ignored
(patch not applicable)
|
focal |
Released
(9.50~dfsg-5ubuntu4.11)
|
|
jammy |
Released
(9.55.0~dfsg1-0ubuntu5.5)
|
|
lunar |
Released
(10.0.0~dfsg1-0ubuntu1.4)
|
|
mantic |
Released
(10.01.2~dfsg1-0ubuntu2.1)
|
|
trusty |
Ignored
(end of standard support)
|
|
upstream |
Released
(10.02.0~dfsg-1, 10.02.0)
|
|
xenial |
Ignored
(patch not applicable)
|
|
Patches:
upstream: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=e59216049cac290fb437a04c4f41ea46826cfba5 |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 8.8 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | Required |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | High |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |