A heap-based buffer overflow was discovered in ImageMagick in the way it applies a digital filter that improves the quality of a noisy image due to a MagickCore/enhance.c error. Applications compiled against ImageMagick libraries that accept untrustworthy images may be vulnerable to this flaw. An attacker could abuse this flaw by providing a specially crafted image to make the application crash or potentially execute code.