CVE-2017-16545

NameCVE-2017-16545
DescriptionThe ReadWPGImage function in coders/wpg.c in GraphicsMagick 1.3.26 does not properly validate colormapped images, which allows remote attackers to cause a denial of service (ImportIndexQuantumType invalid write and application crash) or possibly have unspecified other impact via a malformed WPG image.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDSA-4321-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
graphicsmagick (PTS)buster1.4+really1.3.35-1~deb10u2fixed
buster (security)1.4+really1.3.35-1~deb10u3fixed
bullseye (security), bullseye1.4+really1.3.36+hg16481-2+deb11u1fixed
bookworm1.4+really1.3.40-4fixed
trixie1.4+really1.3.42-1fixed
sid1.4+really1.3.43-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
graphicsmagicksourcejessie1.3.20-3+deb8u3
graphicsmagicksourcestretch1.3.30+hg15796-1~deb9u1DSA-4321-1
graphicsmagicksource(unstable)1.3.26-18

Notes

[wheezy] - graphicsmagick <no-dsa> (Not possible to trigger with presented test case)
http://hg.code.sf.net/p/graphicsmagick/code/rev/e8086faa52d0
https://sourceforge.net/p/graphicsmagick/bugs/519/
The wheezy version gives an assert before the vulnerability can be triggered. Due to this
the severity of the wheezy version is low even though the vulnerable code is still present.
The patch is trivial so it may be worth fixing in combination with some other fix.

Search for package or bug name: Reporting problems