UBUNTU-CVE-2020-27756

Source
https://ubuntu.com/security/CVE-2020-27756
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-27756.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2020-27756
Related
Published
2020-12-08T22:15:00Z
Modified
2024-11-20T12:15:12Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
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.

References

Affected packages

Ubuntu:20.04:LTS / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8:6.9.10.23+dfsg-2.1ubuntu11.4

Affected versions

8:6.*

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",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "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-doc"
        },
        {
            "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.q16-dbgsym"
        },
        {
            "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-6.q16hdri-dbgsym"
        },
        {
            "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": "imagemagick-doc"
        },
        {
            "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-q16-perl-dbgsym"
        },
        {
            "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": "libimage-magick-q16hdri-perl-dbgsym"
        },
        {
            "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.q16-8-dbgsym"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagick++-6.q16-dev"
        },
        {
            "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": "libmagick++-6.q16hdri-8-dbgsym"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagick++-6.q16hdri-dev"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagick++-dev"
        },
        {
            "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_name": "libmagickcore-6.q16-6-dbgsym"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickcore-6.q16-6-extra"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickcore-6.q16-6-extra-dbgsym"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickcore-6.q16-dev"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickcore-6.q16hdri-6"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickcore-6.q16hdri-6-dbgsym"
        },
        {
            "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": "libmagickcore-6.q16hdri-6-extra-dbgsym"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickcore-6.q16hdri-dev"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickcore-dev"
        },
        {
            "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_name": "libmagickwand-6.q16-6"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickwand-6.q16-6-dbgsym"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickwand-6.q16-dev"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickwand-6.q16hdri-6"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickwand-6.q16hdri-6-dbgsym"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickwand-6.q16hdri-dev"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "libmagickwand-dev"
        },
        {
            "binary_version": "8:6.9.10.23+dfsg-2.1ubuntu11.4",
            "binary_name": "perlmagick"
        }
    ]
}

Ubuntu:22.04:LTS / imagemagick

Package

Name
imagemagick
Purl
pkg:deb/ubuntu/imagemagick?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
8:6.9.11.60+dfsg-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "low",
    "binaries": [
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick-6-common"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick-6-doc"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick-6.q16"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick-6.q16-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick-6.q16hdri"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick-6.q16hdri-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick-common"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "imagemagick-doc"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libimage-magick-perl"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libimage-magick-q16-perl"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libimage-magick-q16-perl-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libimage-magick-q16hdri-perl"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libimage-magick-q16hdri-perl-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagick++-6-headers"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagick++-6.q16-8"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagick++-6.q16-8-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagick++-6.q16-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagick++-6.q16hdri-8"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagick++-6.q16hdri-8-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagick++-6.q16hdri-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagick++-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6-arch-config"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6-headers"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16-6"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16-6-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16-6-extra"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16-6-extra-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16hdri-6"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16hdri-6-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16hdri-6-extra"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16hdri-6-extra-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-6.q16hdri-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickcore-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickwand-6-headers"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickwand-6.q16-6"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickwand-6.q16-6-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickwand-6.q16-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickwand-6.q16hdri-6"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickwand-6.q16hdri-6-dbgsym"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickwand-6.q16hdri-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "libmagickwand-dev"
        },
        {
            "binary_version": "8:6.9.11.60+dfsg-1ubuntu1",
            "binary_name": "perlmagick"
        }
    ]
}