Bug 2241112

Summary: CVE-2023-43115 ghostscript: GhostPDL can lead to remote code execution via crafted PostScript documents [fedora-all]
Product: [Fedora] Fedora Reporter: Dhananjay Arunesh <darunesh>
Component: ghostscriptAssignee: Richard Lescak <rlescak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: 39CC: akhaitovich, alexander.neumann, awilliam, mjg, mosvald, rlescak, robatino, zdohnal
Target Milestone: ---Keywords: Reopened, Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AcceptedBlocker
Fixed In Version: ghostscript-10.01.2-4.fc38 ghostscript-10.01.2-4.fc39 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-10-16 15:27:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2241108, 2143446    

Description Dhananjay Arunesh 2023-09-28 06:42:51 UTC
More information about this security flaw is available in the following bug:

http://bugzilla.redhat.com/show_bug.cgi?id=2241108

Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Comment 1 Dhananjay Arunesh 2023-09-28 06:42:55 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=high

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2241108,2241112

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Alexander Neumann 2023-10-10 14:31:02 UTC
This is a highly critical issue, I've described two ways to exploit this on a fully updated Fedora 38 to execute arbitrary commands here: https://bugzilla.redhat.com/show_bug.cgi?id=2241108#c3

Comment 3 Alexander Neumann 2023-10-12 08:49:43 UTC
Just to be clear: opening a LibreOffice document is enough to trigger the RCE: we've made a video here: https://twitter.com/RedTeamPT/status/1712379361146318896

Here's a video which shows the exploit for convert: https://twitter.com/RedTeamPT/status/1712379364136964411

Comment 4 Fedora Update System 2023-10-12 09:52:08 UTC
FEDORA-2023-c2665a9ff3 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-c2665a9ff3

Comment 5 Fedora Update System 2023-10-12 09:53:43 UTC
FEDORA-2023-66d60c3df7 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-66d60c3df7

Comment 6 Fedora Update System 2023-10-13 02:14:06 UTC
FEDORA-2023-c2665a9ff3 has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-c2665a9ff3`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-c2665a9ff3

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2023-10-13 03:23:30 UTC
FEDORA-2023-66d60c3df7 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-66d60c3df7`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-66d60c3df7

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Blocker Bugs Application 2023-10-13 16:36:19 UTC
Proposed as a Blocker for 39-final by Fedora user thebeanogamer using the blocker tracking app because:

 The release must contain no known security bugs of 'important' or higher impact according to the Red Hat severity classification scale which cannot be satisfactorily resolved by a package update (e.g. issues during installation). 

This impacts Libreoffice and ImageMagick, which can run in a live environment before package updates.

Comment 9 Adam Williamson 2023-10-13 22:51:07 UTC
+3 in https://pagure.io/fedora-qa/blocker-review/issue/1408 , marking accepted.

Comment 10 Fedora Update System 2023-10-15 01:43:06 UTC
FEDORA-2023-66d60c3df7 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-10-16 15:27:37 UTC
FEDORA-2023-c2665a9ff3 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.