Skip to content

Commit c9a1d5a

Browse files
committed
Merge pull request #34 from heroku/CVE-2016–3714
CVE-2016–3714: patch the policy file as a workaround.
2 parents 864dc67 + 3f81979 commit c9a1d5a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

bin/cedar-14.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,17 @@ apt-cache search language-pack \
142142
| grep -v '\-base$' \
143143
| xargs apt-get install -y --force-yes --no-install-recommends
144144

145+
# Workaround for CVE-2016–3714 until new ImageMagick packages come out.
146+
cat > /etc/ImageMagick/policy.xml <<'IMAGEMAGICK_POLICY'
147+
<policymap>
148+
<policy domain="coder" rights="none" pattern="EPHEMERAL" />
149+
<policy domain="coder" rights="none" pattern="URL" />
150+
<policy domain="coder" rights="none" pattern="HTTPS" />
151+
<policy domain="coder" rights="none" pattern="MVG" />
152+
<policy domain="coder" rights="none" pattern="MSL" />
153+
</policymap>
154+
IMAGEMAGICK_POLICY
155+
145156
cd /
146157
rm -rf /var/cache/apt/archives/*.deb
147158
rm -rf /root/*

0 commit comments

Comments
 (0)