{"id":"UBUNTU-CVE-2020-27756","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.","modified":"2026-04-22T14:18:47.469619Z","published":"2020-12-08T22:15:00Z","related":["USN-4988-1"],"upstream":["CVE-2020-27756"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-27756"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4988-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-27756"}],"affected":[{"package":{"name":"imagemagick","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/imagemagick@8:6.9.10.23+dfsg-2.1ubuntu11.4?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8:6.9.10.23+dfsg-2.1ubuntu11.4"}]}],"versions":["8:6.9.10.23+dfsg-2.1ubuntu3","8:6.9.10.23+dfsg-2.1ubuntu8","8:6.9.10.23+dfsg-2.1ubuntu9","8:6.9.10.23+dfsg-2.1ubuntu10","8:6.9.10.23+dfsg-2.1ubuntu11","8:6.9.10.23+dfsg-2.1ubuntu11.1","8:6.9.10.23+dfsg-2.1ubuntu11.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"imagemagick","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"imagemagick-6-common","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"imagemagick-6.q16","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"imagemagick-6.q16hdri","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"imagemagick-common","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libimage-magick-perl","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libimage-magick-q16-perl","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libimage-magick-q16hdri-perl","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libmagick++-6-headers","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libmagick++-6.q16-8","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libmagick++-6.q16hdri-8","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libmagickcore-6-arch-config","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libmagickcore-6-headers","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libmagickcore-6.q16-6","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4","binary_name":"libmagickcore-6.q16-6-extra"},{"binary_name":"libmagickcore-6.q16hdri-6","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libmagickcore-6.q16hdri-6-extra","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"libmagickwand-6-headers","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4","binary_name":"libmagickwand-6.q16-6"},{"binary_name":"libmagickwand-6.q16hdri-6","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"},{"binary_name":"perlmagick","binary_version":"8:6.9.10.23+dfsg-2.1ubuntu11.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-27756.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"low"}]}