Bug 1743757 (CVE-2019-14811) - CVE-2019-14811 ghostscript: Safer mode bypass by .forceput exposure in .pdf_hook_DSC_Creator (701445)
Summary: CVE-2019-14811 ghostscript: Safer mode bypass by .forceput exposure in .pdf_h...
Alias: CVE-2019-14811
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1744008 1744009 1744010 1744011 1747908
Blocks: 1743530
TreeView+ depends on / blocked
Reported: 2019-08-20 15:48 UTC by Cedric Buissart
Modified: 2021-02-16 21:28 UTC (History)
7 users (show)

Fixed In Version: ghostscript 9.50
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the .pdf_hook_DSC_Creator procedure where it did not properly secure its privileged calls, enabling scripts to bypass `-dSAFER` restrictions. A specially crafted PostScript file could disable security protection and then have access to the file system, or execute arbitrary commands.
Clone Of:
Last Closed: 2019-09-02 13:07:26 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:2675 0 None None None 2019-09-05 17:27:43 UTC
Red Hat Product Errata RHSA-2019:2586 0 None None None 2019-09-02 07:54:05 UTC
Red Hat Product Errata RHSA-2019:2591 0 None None None 2019-09-02 07:54:28 UTC

Description Cedric Buissart 2019-08-20 15:48:39 UTC
In Ghostscript 9.27, some ephemeral routines in .pdf_hook_DSC_Creator can expose .forceput operator when hooking errors. This issue is similar to upstream bug https://bugs.ghostscript.com/show_bug.cgi?id=700317. 

There is no direct path to reach .pdf_hook_DSC_Creator however it can be obtained from .pdfdsc.


 651           } bind .makeoperator .forceput
 652           systemdict /.pdf_hooked_DSC_Creator //true .forceput
 653         } executeonly if
 654         pop
 655       } if

This can be used to disable -dSAFER and, for example, access files outside of the restricted area, or command execution.


Comment 4 Cedric Buissart 2019-08-21 06:43:10 UTC

Please refer to the "Mitigation" section of CVE-2018-16509 : https://access.redhat.com/security/cve/cve-2018-16509

Comment 10 Cedric Buissart 2019-08-27 15:21:53 UTC

Name: Artifex Software
Upstream: Hiroki MATSUKUMA (Cyber Defense Institute)

Comment 11 errata-xmlrpc 2019-09-02 07:54:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2019:2586 https://access.redhat.com/errata/RHSA-2019:2586

Comment 12 errata-xmlrpc 2019-09-02 07:54:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2019:2591 https://access.redhat.com/errata/RHSA-2019:2591

Comment 13 Cedric Buissart 2019-09-02 08:53:28 UTC
Created ghostscript tracking bugs for this issue:

Affects: fedora-all [bug 1747908]

Comment 14 Product Security DevOps Team 2019-09-02 13:07:26 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):


Note You need to log in before you can comment on or make changes to this bug.