Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

Security advisory

DLA-2602-1

Active Unknown

imagemagick - security update

Published
22 Mar 2021, 00:00:00 UTC

Related CVEs

CVE identifiers linked by this publisher.

24
Publisher relationship details 24 records
Explicit publisher CVE relationships
CVEPublisher evidence
CVE-2020-25666https://security-tracker.debian.org/tracker/CVE-2020-25666
CVE-2020-25675https://security-tracker.debian.org/tracker/CVE-2020-25675
CVE-2020-25676https://security-tracker.debian.org/tracker/CVE-2020-25676
CVE-2020-27754https://security-tracker.debian.org/tracker/CVE-2020-27754
CVE-2020-27757https://security-tracker.debian.org/tracker/CVE-2020-27757
CVE-2020-27758https://security-tracker.debian.org/tracker/CVE-2020-27758
CVE-2020-27759https://security-tracker.debian.org/tracker/CVE-2020-27759
CVE-2020-27761https://security-tracker.debian.org/tracker/CVE-2020-27761
CVE-2020-27762https://security-tracker.debian.org/tracker/CVE-2020-27762
CVE-2020-27764https://security-tracker.debian.org/tracker/CVE-2020-27764
CVE-2020-27766https://security-tracker.debian.org/tracker/CVE-2020-27766
CVE-2020-27767https://security-tracker.debian.org/tracker/CVE-2020-27767
CVE-2020-27768https://security-tracker.debian.org/tracker/CVE-2020-27768
CVE-2020-27769https://security-tracker.debian.org/tracker/CVE-2020-27769
CVE-2020-27770https://security-tracker.debian.org/tracker/CVE-2020-27770
CVE-2020-27771https://security-tracker.debian.org/tracker/CVE-2020-27771
CVE-2020-27772https://security-tracker.debian.org/tracker/CVE-2020-27772
CVE-2020-27774https://security-tracker.debian.org/tracker/CVE-2020-27774
CVE-2020-27775https://security-tracker.debian.org/tracker/CVE-2020-27775
CVE-2020-27776https://security-tracker.debian.org/tracker/CVE-2020-27776
CVE-2021-20176https://security-tracker.debian.org/tracker/CVE-2021-20176
CVE-2021-20241https://security-tracker.debian.org/tracker/CVE-2021-20241
CVE-2021-20244https://security-tracker.debian.org/tracker/CVE-2021-20244
CVE-2021-20246https://security-tracker.debian.org/tracker/CVE-2021-20246

Description

CVE-2020-25666: There are 4 places in HistogramCompare() in MagickCore/histogram.c where an integer overflow is possible during simple math calculations. This occurs in the rgb values and `count` value for a color. The patch uses casts to `ssize_t` type for these calculations, instead of `int`. This flaw could impact application reliability in the event

Read full publisher description 10522 characters

CVE-2020-25666: There are 4 places in HistogramCompare() in MagickCore/histogram.c where an integer overflow is possible during simple math calculations. This occurs in the rgb values and `count` value for a color. The patch uses casts to `ssize_t` type for these calculations, instead of `int`. This flaw could impact application reliability in the event that ImageMagick processes a crafted input file. This flaw affects ImageMagick versions prior to 7.0.9-0. CVE-2020-25675: In the CropImage() and CropImageToTiles() routines of MagickCore/transform.c, rounding calculations performed on unconstrained pixel offsets was causing undefined behavior in the form of integer overflow and out-of-range values as reported by UndefinedBehaviorSanitizer. Such issues could cause a negative impact to application availability or other problems related to undefined behavior, in cases where ImageMagick processes untrusted input data. The upstream patch introduces functionality to constrain the pixel offsets and prevent these issues. This flaw affects ImageMagick versions prior to 7.0.9-0. CVE-2020-25676: In CatromWeights(), MeshInterpolate(), InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo(), which are all functions in /MagickCore/pixel.c, there were multiple unconstrained pixel offset calculations which were being used with the floor() function. These calculations produced undefined behavior in the form of out-of-range and integer overflows, as identified by UndefinedBehaviorSanitizer. These instances of undefined behavior could be triggered by an attacker who is able to supply a crafted input file to be processed by ImageMagick. These issues could impact application availability or potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.9-0. CVE-2020-27754: In IntensityCompare() of /magick/quantize.c, there are calls to PixelPacketIntensity() which could return overflowed values to the caller when ImageMagick processes a crafted input file. To mitigate this, the patch introduces and uses the ConstrainPixelIntensity() function, which forces the pixel intensities to be within the proper bounds in the event of an overflow. This flaw affects ImageMagick versions prior to 6.9.10-69 and 7.0.8-69. CVE-2020-27757: A floating point math calculation in ScaleAnyToQuantum() of /MagickCore/quantum-private.h could lead to undefined behavior in the form of a value outside the range of type unsigned long long. The flaw could be triggered by a crafted input file under certain conditions when it is processed by ImageMagick. Red Hat Product Security marked this 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 7.0.8-68. CVE-2020-27758: A flaw was found in ImageMagick in coders/txt.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 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-68. CVE-2020-27759: 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-27761: 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-27762: 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-27764: 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-27766: 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-27767: 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-27768: In ImageMagick, there is an outside the range of representable values of type 'unsigned int' at MagickCore/quantum-private.h. This flaw affects ImageMagick versions prior to 7.0.9-0. CVE-2020-27769: In ImageMagick versions before 7.0.9-0, there are outside the range of representable values of type 'float' at MagickCore/quantize.c. CVE-2020-27770: 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-27771: In RestoreMSCWarning() of /coders/pdf.c there are several areas where calls to GetPixelIndex() could result in values outside the range of representable for the unsigned char type. The patch casts the return value of GetPixelIndex() to ssize_t type to avoid this bug. This undefined behavior could be triggered when ImageMagick processes a crafted pdf file. 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 demonstrated in this case. This flaw affects ImageMagick versions prior to 7.0.9-0. CVE-2020-27772: A flaw was found in ImageMagick in coders/bmp.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 int`. 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-27774: 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 a too large shift for 64-bit type `ssize_t`. 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-27775: 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 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 7.0.9-0. CVE-2020-27776: 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.9-0. CVE-2021-20176: A divide-by-zero flaw was found in ImageMagick 6.9.11-57 and 7.0.10-57 in gem.c. This flaw allows an attacker who submits a crafted file that is processed by ImageMagick to trigger undefined behavior through a division by zero. The highest threat from this vulnerability is to system availability. CVE-2021-20241: A flaw was found in ImageMagick in coders/jp2.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. The highest threat from this vulnerability is to system availability. CVE-2021-20244: A flaw was found in ImageMagick in MagickCore/visual-effects.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. The highest threat from this vulnerability is to system availability. CVE-2021-20246: A flaw was found in ImageMagick in MagickCore/resample.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. The highest threat from this vulnerability is to system availability.

No solution guidance was provided.

Affected packages

Each item is one publisher package occurrence. Shared details are shown once; differences stay with the occurrence.

1

Shared package data

Applies to this occurrence
Package role
Source package
Ecosystem
Debian:stretch
Fixed version
8:6.9.7.4+dfsg-11+deb9u12

Affected ranges and events

  • ECOSYSTEMRepository Not supplied in this record
    • Fixed at 8:6.9.7.4+dfsg-11+deb9u12
  1. 1imagemagickSource package

CVSS assessments

Publisher supplied scores and vectors; these do not replace the advisory severity above.

0

No CVSS assessments were provided.

Publisher references

25
  • DLA-2602-1 advisory · Tags: Unknown https://www.debian.org/lts/security/2021/dla-2602
  • CVE-2020-25666 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-25666
  • CVE-2020-25675 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-25675
  • CVE-2020-25676 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-25676
  • CVE-2020-27754 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27754
  • CVE-2020-27757 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27757
  • CVE-2020-27758 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27758
  • CVE-2020-27759 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27759
  • CVE-2020-27761 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27761
  • CVE-2020-27762 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27762
  • CVE-2020-27764 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27764
  • CVE-2020-27766 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27766
  • CVE-2020-27767 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27767
  • CVE-2020-27768 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27768
  • CVE-2020-27769 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27769
  • CVE-2020-27770 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27770
  • CVE-2020-27771 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27771
  • CVE-2020-27772 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27772
  • CVE-2020-27774 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27774
  • CVE-2020-27775 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27775
  • CVE-2020-27776 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2020-27776
  • CVE-2021-20176 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2021-20176
  • CVE-2021-20241 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2021-20241
  • CVE-2021-20244 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2021-20244
  • CVE-2021-20246 report · Tags: Unknown https://security-tracker.debian.org/tracker/CVE-2021-20246

Provenance

Schema version
Unknown
Parser version
debian-dsa-dla-tracker/1
Attribution
Debian Security Team
Publisher document provenance records
KindLocatorSource commitDocument hashParserFetched
structured_advisory_listhttps://salsa.debian.org/security-tracker-team/security-tracker/-/raw/master/data/DLA/listUnknown421e084fc08172d1c2b50a39bf4855042169de5afa8e02c03c15bd6e4fac68cedebian-dsa-dla-tracker/1Unknown

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected