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.
{ "vanir_signatures": [ { "signature_version": "v1", "source": "https://github.com/imagemagick/imagemagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9", "deprecated": false, "id": "CVE-2017-14173-b628027c", "signature_type": "Function", "digest": { "length": 4820.0, "function_hash": "150276388619045766393549832452160647631" }, "target": { "file": "coders/txt.c", "function": "ReadTXTImage" } }, { "signature_version": "v1", "source": "https://github.com/imagemagick/imagemagick/commit/50f54462076648ac2e36c3f58f4dadd4babbf1c9", "deprecated": false, "id": "CVE-2017-14173-e38dc641", "signature_type": "Line", "digest": { "threshold": 0.9, "line_hashes": [ "311074768544482919032467925574160356393", "122138833527173680934513774449372318840", "132437139816850860091932509113197936588", "213319536479349872619834108391588387466" ] }, "target": { "file": "coders/txt.c" } } ] }