5.5medium
In ParseMetaGeometry() of MagickCore/geometry.c, image height and width calculations can lead to divide-by-zero conditions which also lead…
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.84% (higher than 55% of CVEs)
- Published
- Last changed
- Assigned by
- redhat
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ImageMagick | prior to 7.0.9-0 | CVE List |
| imagemagick imagemagick | from 6.9.9-34 before 6.9.10-69, from 7.0.0-0 before 7.0.9-0 | NVD |
All scores
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
En la función ParseMetaGeometry() del archivo MagickCore/geometry.c, los cálculos de altura y ancho de la imagen pueden conllevar a condiciones de división por cero que también conllevan a un comportamiento indefinido. Este fallo puede ser desencadenado por un archivo de entrada diseñado procesado por ImageMagick y podría impactar la disponibilidad de la aplicación. El parche utiliza la multiplicación aunado a la función "PerceptibleReciprocal()" a fin de impedir tales condiciones de división por cero. Este fallo afecta a ImageMagick versiones anteriores a 7.0.9-0
References
| https://bugzilla.redhat.com/show_bug.cgi?id=1894233 | exploit, issue-tracking, patch, third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html | mailing-list | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-27756 changed 2024-08-04 | CVE Terms of Use |
| NVD | CVE-2020-27756 changed 2026-06-17 | Public domain |