CVE-2016-5118

NameCVE-2016-5118
DescriptionThe OpenBlob function in blob.c in GraphicsMagick before 1.3.24 and ImageMagick allows remote attackers to execute arbitrary code via a | (pipe) character at the start of a filename.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-500-1, DLA-502-1, DSA-3591-1, DSA-3746-1
NVD severityhigh (attack range: remote)
Debian Bugs825799, 825800

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
graphicsmagick (PTS)wheezy1.3.16-1.1vulnerable
wheezy (security)1.3.16-1.1+deb7u15fixed
jessie1.3.20-3+deb8u1vulnerable
jessie (security)1.3.20-3+deb8u2fixed
stretch1.3.25-8fixed
buster, sid1.3.26-19fixed
imagemagick (PTS)wheezy8:6.7.7.10-5+deb7u4vulnerable
wheezy (security)8:6.7.7.10-5+deb7u18fixed
jessie8:6.8.9.9-5+deb8u9fixed
jessie (security)8:6.8.9.9-5+deb8u11fixed
stretch8:6.9.7.4+dfsg-11+deb9u1fixed
stretch (security)8:6.9.7.4+dfsg-11+deb9u3fixed
buster, sid8:6.9.7.4+dfsg-16fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
graphicsmagicksource(unstable)1.3.24-1high825800
graphicsmagicksourcejessie1.3.20-3+deb8u2highDSA-3746-1
graphicsmagicksourcewheezy1.3.16-1.1+deb7u2highDLA-502-1
imagemagicksource(unstable)8:6.8.9.9-7.1high825799
imagemagicksourcejessie8:6.8.9.9-5+deb8u3highDSA-3591-1
imagemagicksourcewheezy8:6.7.7.10-5+deb7u6highDLA-500-1

Notes

fixed by http://hg.graphicsmagick.org/hg/GraphicsMagick/rev/ae3928faa858
patch available at http://www.openwall.com/lists/oss-security/2016/05/29/7

Search for package or bug name: Reporting problems