An update for ImageMagick is now available for openEuler-20.03-LTS and openEuler-20.03-LTS-SP1 Security Advisory openeuler-security@openeuler.org openEuler security committee openEuler-SA-2021-1007 Final 1.0 1.0 2021-02-05 Initial 2021-02-05 2021-02-05 openEuler SA Tool V1.0 2021-02-05 ImageMagick security update An update for ImageMagick is now available for openEuler-20.03-LTS and openEuler-20.03-LTS-SP1. Use ImageMagick to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, GIF, HEIC, TIFF, DPX, EXR, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.\r\n\r\n Security Fix(es):\r\n\r\n A flaw was found in ImageMagick in coders/hdr.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type `unsigned char`. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to ImageMagick 7.0.8-68.(CVE-2020-27762)\r\n\r\n A flaw was found in ImageMagick in MagickCore/statistic.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type `unsigned long`. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.8-69.(CVE-2020-27766)\r\n\r\n WritePALMImage() in /coders/palm.c used size_t casts in several areas of a calculation which could lead to values outside the range of representable type `unsigned long` undefined behavior when a crafted input file was processed by ImageMagick. The patch casts to `ssize_t` instead to avoid this issue. Red Hat Product Security marked the Severity as Low because although it could potentially lead to an impact to application availability, no specific impact was shown in this case. This flaw affects ImageMagick versions prior to ImageMagick 7.0.9-0.(CVE-2020-27761)\r\n\r\n A flaw was found in ImageMagick in MagickCore/quantum.h. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of types `float` and `unsigned char`. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.9-0.(CVE-2020-27767)\r\n\r\n Due to a missing check for 0 value of `replace_extent`, it is possible for offset `p` to overflow in SubstituteString(), causing potential impact to application availability. This could be triggered by a crafted input file that is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68.(CVE-2020-27770)\r\n\r\n In IntensityCompare() of /MagickCore/quantize.c, a double value was being casted to int and returned, which in some cases caused a value outside the range of type `int` to be returned. The flaw could be triggered by a crafted input file under certain conditions when processed by ImageMagick. Red Hat Product Security marked this as Low severity because although it could potentially lead to an impact to application availability, no specific impact was shown in this case. This flaw affects ImageMagick versions prior to 7.0.8-68.(CVE-2020-27759)\r\n\r\n In `GammaImage()` of /MagickCore/enhance.c, depending on the `gamma` 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 the `PerceptibleReciprocal()` to prevent the divide-by-zero from occurring. This flaw affects ImageMagick versions prior to ImageMagick 7.0.8-68.(CVE-2020-27760)\r\n\r\n A flaw was found in ImageMagick in MagickCore/segment.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.9-0.(CVE-2020-27765)\r\n\r\n ImageMagick before 6.9.11-40 and 7.x before 7.0.10-40 mishandles the -authenticate option, which allows setting a password for password-protected PDF files. The user-controlled password was not properly escaped/sanitized and it was therefore possible to inject additional shell commands via coders/pdf.c.(CVE-2020-29599)\r\n\r\n In /MagickCore/statistic.c, there are several areas in ApplyEvaluateOperator() where a size_t cast should have been a ssize_t cast, which causes out-of-range values under some circumstances when a crafted input file is processed by ImageMagick. Red Hat Product Security marked this as Low severity because although it could potentially lead to an impact to application availability, no specific impact was shown in this case. This flaw affects ImageMagick versions prior to 6.9.10-69.(CVE-2020-27764)\r\n\r\n An update for ImageMagick is now available for openEuler-20.03-LTS and openEuler-20.03-LTS-SP1.\r\n\r\n openEuler Security has rated this update as having a security impact of high. A Common Vunlnerability Scoring System(CVSS)base score,which gives a detailed severity rating, is available for each vulnerability from the CVElink(s) in the References section. High ImageMagick https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27762 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27766 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27761 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27767 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27770 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27759 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27760 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27765 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-29599 https://openeuler.org/en/security/cve/detail.html?id=CVE-2020-27764 https://nvd.nist.gov/vuln/detail/CVE-2020-27762 https://nvd.nist.gov/vuln/detail/CVE-2020-27766 https://nvd.nist.gov/vuln/detail/CVE-2020-27761 https://nvd.nist.gov/vuln/detail/CVE-2020-27767 https://nvd.nist.gov/vuln/detail/CVE-2020-27770 https://nvd.nist.gov/vuln/detail/CVE-2020-27759 https://nvd.nist.gov/vuln/detail/CVE-2020-27760 https://nvd.nist.gov/vuln/detail/CVE-2020-27765 https://nvd.nist.gov/vuln/detail/CVE-2020-29599 https://nvd.nist.gov/vuln/detail/CVE-2020-27764 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 ImageMagick-c++-6.9.10.67-9.oe1.aarch64.rpm ImageMagick-devel-6.9.10.67-9.oe1.aarch64.rpm ImageMagick-perl-6.9.10.67-9.oe1.aarch64.rpm ImageMagick-c++-devel-6.9.10.67-9.oe1.aarch64.rpm ImageMagick-help-6.9.10.67-9.oe1.aarch64.rpm ImageMagick-debugsource-6.9.10.67-9.oe1.aarch64.rpm ImageMagick-debuginfo-6.9.10.67-9.oe1.aarch64.rpm ImageMagick-6.9.10.67-9.oe1.aarch64.rpm ImageMagick-help-6.9.10.67-10.oe1.aarch64.rpm ImageMagick-6.9.10.67-10.oe1.aarch64.rpm ImageMagick-debuginfo-6.9.10.67-10.oe1.aarch64.rpm ImageMagick-perl-6.9.10.67-10.oe1.aarch64.rpm ImageMagick-debugsource-6.9.10.67-10.oe1.aarch64.rpm ImageMagick-c++-6.9.10.67-10.oe1.aarch64.rpm ImageMagick-c++-devel-6.9.10.67-10.oe1.aarch64.rpm ImageMagick-devel-6.9.10.67-10.oe1.aarch64.rpm ImageMagick-6.9.10.67-9.oe1.src.rpm ImageMagick-6.9.10.67-10.oe1.src.rpm ImageMagick-debuginfo-6.9.10.67-9.oe1.x86_64.rpm ImageMagick-6.9.10.67-9.oe1.x86_64.rpm ImageMagick-c++-devel-6.9.10.67-9.oe1.x86_64.rpm ImageMagick-help-6.9.10.67-9.oe1.x86_64.rpm ImageMagick-devel-6.9.10.67-9.oe1.x86_64.rpm ImageMagick-c++-6.9.10.67-9.oe1.x86_64.rpm ImageMagick-debugsource-6.9.10.67-9.oe1.x86_64.rpm ImageMagick-perl-6.9.10.67-9.oe1.x86_64.rpm ImageMagick-c++-6.9.10.67-10.oe1.x86_64.rpm ImageMagick-debugsource-6.9.10.67-10.oe1.x86_64.rpm ImageMagick-devel-6.9.10.67-10.oe1.x86_64.rpm ImageMagick-c++-devel-6.9.10.67-10.oe1.x86_64.rpm ImageMagick-6.9.10.67-10.oe1.x86_64.rpm ImageMagick-debuginfo-6.9.10.67-10.oe1.x86_64.rpm ImageMagick-perl-6.9.10.67-10.oe1.x86_64.rpm ImageMagick-help-6.9.10.67-10.oe1.x86_64.rpm A flaw was found in ImageMagick in coders/hdr.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type `unsigned char`. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to ImageMagick 7.0.8-68. 2021-02-05 CVE-2020-27762 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 Medium 5.5 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 A flaw was found in ImageMagick in MagickCore/statistic.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of type `unsigned long`. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.8-69. 2021-02-05 CVE-2020-27766 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 High 7.8 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 WritePALMImage() in /coders/palm.c used size_t casts in several areas of a calculation which could lead to values outside the range of representable type `unsigned long` undefined behavior when a crafted input file was processed by ImageMagick. The patch casts to `ssize_t` instead to avoid this issue. Red Hat Product Security marked the Severity as Low because although it could potentially lead to an impact to application availability, no specific impact was shown in this case. This flaw affects ImageMagick versions prior to ImageMagick 7.0.9-0. 2021-02-05 CVE-2020-27761 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 Low 3.3 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 A flaw was found in ImageMagick in MagickCore/quantum.h. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of values outside the range of types `float` and `unsigned char`. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.9-0. 2021-02-05 CVE-2020-27767 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 Low 3.3 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 Due to a missing check for 0 value of `replace_extent`, it is possible for offset `p` to overflow in SubstituteString(), causing potential impact to application availability. This could be triggered by a crafted input file that is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68. 2021-02-05 CVE-2020-27770 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 Medium 5.5 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 In IntensityCompare() of /MagickCore/quantize.c, a double value was being casted to int and returned, which in some cases caused a value outside the range of type `int` to be returned. The flaw could be triggered by a crafted input file under certain conditions when processed by ImageMagick. Red Hat Product Security marked this as Low severity because although it could potentially lead to an impact to application availability, no specific impact was shown in this case. This flaw affects ImageMagick versions prior to 7.0.8-68. 2021-02-05 CVE-2020-27759 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 Low 3.3 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 In `GammaImage()` of /MagickCore/enhance.c, depending on the `gamma` 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 the `PerceptibleReciprocal()` to prevent the divide-by-zero from occurring. This flaw affects ImageMagick versions prior to ImageMagick 7.0.8-68. 2021-02-05 CVE-2020-27760 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 Medium 5.5 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 A flaw was found in ImageMagick in MagickCore/segment.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. This would most likely lead to an impact to application availability, but could potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.9-0. 2021-02-05 CVE-2020-27765 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 Low 3.3 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 ImageMagick before 6.9.11-40 and 7.x before 7.0.10-40 mishandles the -authenticate option, which allows setting a password for password-protected PDF files. The user-controlled password was not properly escaped/sanitized and it was therefore possible to inject additional shell commands via coders/pdf.c. 2021-02-05 CVE-2020-29599 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 High 7.8 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007 In /MagickCore/statistic.c, there are several areas in ApplyEvaluateOperator() where a size_t cast should have been a ssize_t cast, which causes out-of-range values under some circumstances when a crafted input file is processed by ImageMagick. Red Hat Product Security marked this as Low severity because although it could potentially lead to an impact to application availability, no specific impact was shown in this case. This flaw affects ImageMagick versions prior to 6.9.10-69. 2021-02-05 CVE-2020-27764 openEuler-20.03-LTS openEuler-20.03-LTS-SP1 Low 3.3 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L ImageMagick security update 2021-02-05 https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007