Integer Overflow or Wraparound Affecting imagemagick package, versions <8:6.9.7.4+dfsg-11+deb9u10
Snyk CVSS
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DEBIAN9-IMAGEMAGICK-402574
- published 7 Sep 2017
- disclosed 7 Sep 2017
How to fix?
Upgrade Debian:9
imagemagick
to version 8:6.9.7.4+dfsg-11+deb9u10 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream imagemagick
package and not the imagemagick
package as distributed by Debian
.
See How to fix?
for Debian:9
relevant fixed versions and status.
In the function ReadTXTImage() in coders/txt.c in ImageMagick 7.0.6-10, an integer overflow might occur for the addition operation "GetQuantumRange(depth)+1" when "depth" is large, producing a smaller value than expected. As a result, an infinite loop would occur for a crafted TXT file that claims a very large "max_value" value.
References
- https://security-tracker.debian.org/tracker/CVE-2017-14173
- https://github.com/ImageMagick/ImageMagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9
- https://lists.debian.org/debian-lts-announce/2019/05/msg00015.html
- https://security.gentoo.org/glsa/201711-07
- https://github.com/ImageMagick/ImageMagick/commit/48bcf7c39302cdf9b0d9202ad03bf1b95152c44d
- https://github.com/ImageMagick/ImageMagick/issues/713
- https://lists.debian.org/debian-lts-announce/2020/09/msg00007.html
- http://people.ubuntu.com/~ubuntu-security/cve/CVE-2017-14173
- https://usn.ubuntu.com/3681-1/