In `GammaImage()` of /MagickCore/enhance.c, depending on...
Moderate severity
Unreviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Mar 12, 2023
Description
Published by the National Vulnerability Database
Dec 3, 2020
Published to the GitHub Advisory Database
May 24, 2022
Last updated
Mar 12, 2023
In
GammaImage()
of /MagickCore/enhance.c, depending on thegamma
value, it's possible to trigger a divide-by-zero condition when a crafted input file is processed by ImageMagick. This could lead to an impact to application availability. The patch uses thePerceptibleReciprocal()
to prevent the divide-by-zero from occurring. This flaw affects ImageMagick versions prior to ImageMagick 7.0.8-68.References