# ImageMagick CVE-2016–3714

**URL:** <https://meta.discourse.org/t/imagemagick-cve-2016-3714/43624>\
**Category:** Bug\
**Created:** [5월 3, 2016, 6:04오후 UTC](https://meta.discourse.org/t/imagemagick-cve-2016-3714/43624 "2016-05-03T18:04:52Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![levlaz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/levlaz/32/116859_2.png) [@levlaz](https://meta.discourse.org/u/levlaz)\
**Post date:** [5월 3, 2016, 6:04오후 UTC](https://meta.discourse.org/t/imagemagick-cve-2016-3714/43624/1 "2016-05-03T18:04:52Z")

</div>

Hi friends!

Just wanted to give everyone a heads up. As you may have heard there is a nasty CVE related to the ImageMagick library that allows for remote code execution. [https://medium.com/@rhuber/imagemagick-is-on-fire-cve-2016-3714-379faf762247#.1doeoa5zx](https://medium.com/@rhuber/imagemagick-is-on-fire-cve-2016-3714-379faf762247#.1doeoa5zx)

Discourse uses this library, protecting yourself is pretty simple. We are using v1.5.1 stable (so the file locations _may_ be different depending on your version).

1. SSH into your discourse server and go to where your discourse installation is

2. `./launcher enter app`

3. Edit the policy.xml file `vim /usr/local/etc/ImageMagick-6/policy.xml`

4. Add the following to the policy map:

5. Save the file

You should now be protected. It usually takes a bit of time to get patches done upstream so this is the best thing that you can do to protected your self hosted discourse site.

AFAIK this container is blown away and recreated each time you upgrade, so be sure to do this each time you upgrade until there is an upstream patch.

---

_[View the full topic](https://meta.discourse.org/t/imagemagick-cve-2016-3714/43624)._
