oesa-2021-1007
Vulnerability from osv_openeuler
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
{
"affected": [
{
"ecosystem_specific": {
"aarch64": [
"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"
],
"src": [
"ImageMagick-6.9.10.67-9.oe1.src.rpm",
"ImageMagick-6.9.10.67-10.oe1.src.rpm"
],
"x86_64": [
"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"
]
},
"package": {
"ecosystem": "openEuler:20.03-LTS",
"name": "ImageMagick",
"purl": "pkg:rpm/openEuler/ImageMagick\u0026distro=openEuler-20.03-LTS"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "6.9.10.67-10.oe1"
}
],
"type": "ECOSYSTEM"
}
]
},
{
"ecosystem_specific": {
"aarch64": [
"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"
],
"src": [
"ImageMagick-6.9.10.67-10.oe1.src.rpm"
],
"x86_64": [
"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"
]
},
"package": {
"ecosystem": "openEuler:20.03-LTS-SP1",
"name": "ImageMagick",
"purl": "pkg:rpm/openEuler/ImageMagick\u0026distro=openEuler-20.03-LTS-SP1"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "6.9.10.67-10.oe1"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"severity": "High"
},
"details": "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\u00e9zier curves.\\r\\n\\r\\n\r\nSecurity Fix(es):\\r\\n\\r\\n\r\nA 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\r\nA 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\r\nWritePALMImage() 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\r\nA 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\r\nDue 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\r\nIn 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\r\nIn `GammaImage()` of /MagickCore/enhance.c, depending on the `gamma` value, it\u0027s 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\r\nA 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\r\nImageMagick 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\nIn /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",
"id": "OESA-2021-1007",
"modified": "2026-08-06T11:04:14Z",
"published": "2021-02-05T11:04:14Z",
"references": [
{
"type": "ADVISORY",
"url": "https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1007"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27762"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27766"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27761"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27767"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27770"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27759"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27760"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27765"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-29599"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-27764"
}
],
"schema_version": "1.7.2",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "ImageMagick security update",
"upstream": [
"CVE-2020-27762",
"CVE-2020-27766",
"CVE-2020-27761",
"CVE-2020-27767",
"CVE-2020-27770",
"CVE-2020-27759",
"CVE-2020-27760",
"CVE-2020-27765",
"CVE-2020-29599",
"CVE-2020-27764"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.