FS#59778 - [libmagick] Apply workaround for Ghostscript RCE vuln
Attached to Project:
Arch Linux
Opened by Tommy Schmitt (spinka) - Thursday, 23 August 2018, 16:25 GMT
Last edited by Antonio Rojas (arojas) - Monday, 22 October 2018, 15:51 GMT
Opened by Tommy Schmitt (spinka) - Thursday, 23 August 2018, 16:25 GMT
Last edited by Antonio Rojas (arojas) - Monday, 22 October 2018, 15:51 GMT
|
Details
Description:
Recently new batch of Ghostscript RCE bugs were disclosed in public: http://openwall.com/lists/oss-security/2018/08/21/2 https://www.kb.cert.org/vuls/id/332928 There is no upstream patch for them and there are other 2 years old still unfixed: http://openwall.com/lists/oss-security/2018/08/22/3 The one thing that Arch can do is to add below line to '/etc/ImageMagick-7/policy.xml' which belongs to libmagick package: <policy domain="coder" rights="none" pattern="{PS,PS2,PS3,EPS,PDF,XPS}" /> This is recommended action for all distros to do. Steps to reproduce: 1. Install 'imagemagick' and 'ghostscript' packages. 2. Create shellexec.jpg with below content: cat shellexec.jpeg %!PS userdict /setpagedevice undef save legal { null restore } stopped { pop } if { legal } stopped { pop } if restore mark /OutputFile (%pipe%id) currentdevice putdeviceprops 3. Execute 'convert shellexec.jpeg whatever.gif' |
This task depends upon
Closed by Antonio Rojas (arojas)
Monday, 22 October 2018, 15:51 GMT
Reason for closing: Fixed
Additional comments about closing: libmagick 7.0.8.13-1
Monday, 22 October 2018, 15:51 GMT
Reason for closing: Fixed
Additional comments about closing: libmagick 7.0.8.13-1
http://openwall.com/lists/oss-security/2018/08/23/1
http://openwall.com/lists/oss-security/2018/08/23/4
The solution proposed here will block all known and unknown exploits thus it's still recommended.
Can you re-open this with lower severity and maybe change to "General gripe"?
FS#59799does not fix all known issues.Except, no, not really. cf.
FS#60370We're just going to keep seeing more vulnerabilities, aren't we? I think this workaround is needed, the reactive approach is not working out.
EDIT: Well, it would help to assign the libmagick maintainer rather than the ghostscript maintainer. Suddenly things make sense. :o