Skip to main content

Integer Overflow or Wraparound


Severity Medium
Score 5.5/10


An integer overflow issue was discovered in ImageMagick's "ExportIndexQuantum()" function in "MagickCore/quantum-export.c". Function calls to "GetPixelIndex()" could result in values outside the range of representable for the "unsigned char". When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash. This issue affects ImageMagick-6.x prior to 6.9.11-57 and ImageMagick-7.x prior to 7.0.10-57.

  • LOW
  • NONE
  • NONE
  • NONE
  • HIGH

CWE-190 - Integer Overflow or Wraparound

The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

Advisory Timeline

  • Published