Name | CVE-2017-16545 |
Description | The 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-4321-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
graphicsmagick (PTS) | bullseye (security), bullseye | 1.4+really1.3.36+hg16481-2+deb11u1 | fixed |
| bookworm | 1.4+really1.3.40-4 | fixed |
| sid, trixie | 1.4+really1.3.45-1 | fixed |
The information below is based on the following data on fixed versions.
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.