Loading HuntDB...

GHSA-ghpq-hg85-4p3m

GitHub Security Advisory

⚠ Unreviewed MODERATE Has CVE

Advisory Details

In ParseMetaGeometry() of MagickCore/geometry.c, image height and width calculations can lead to divide-by-zero conditions which also lead to undefined behavior. This flaw can be triggered by a crafted input file processed by ImageMagick and could impact application availability. The patch uses multiplication in addition to the function `PerceptibleReciprocal()` in order to prevent such divide-by-zero conditions. This flaw affects ImageMagick versions prior to 7.0.9-0.

Related CVEs

Key Information

GHSA ID
GHSA-ghpq-hg85-4p3m
Published
May 24, 2022 5:35 PM
Last Modified
March 12, 2023 12:30 AM
CVSS Score
5.0 /10
Primary Ecosystem
Unknown
Primary Package
Unknown
GitHub Reviewed
✗ No

Dataset

Last updated: June 15, 2025 6:24 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.