Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2016-10070

Heap-based buffer overflow in the CalcMinMax function in coders/mat.c in ImageMagick before 6.9.4-0 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted mat file.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2016-10070
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:17 UTC · Revision 1

Source evidence

CVE-2016-10070

core-osv · Original source

Published 3 Mar 2017, 18:59 UTC

Heap-based buffer overflow in the CalcMinMax function in coders/mat.c in ImageMagick before 6.9.4-0 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted mat file.

osv:CVE-2016-10070
Complete source record
{
  "id": "1530fc21c048b2180bb9bf0b410f470549ae87d813b82e0054d28d0dd022e32d",
  "url": "https://osv.dev/vulnerability/CVE-2016-10070",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2016-10070",
    "summary": "Heap-based buffer overflow in the CalcMinMax function in coders/mat.c in ImageMagick before 6.9.4-0 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted mat file.",
    "evidence": "osv:CVE-2016-10070",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2016-10070",
      "aliases": [
        "CVE-2016-10070"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/imagemagick/imagemagick",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "a6240a163cb787909703d9fc649cf861f60ddd7c"
                },
                {
                  "fixed": "b173a352397877775c51c9a0e9d59eb6ce24c455"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "fixed": "a6240a163cb787909703d9fc649cf861f60ddd7c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b173a352397877775c51c9a0e9d59eb6ce24c455"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10070.json",
            "vanir_signatures": [
              {
                "id": "CVE-2016-10070-68608b74",
                "digest": {
                  "length": 11010,
                  "function_hash": "228678083036095774681467336683464649209"
                },
                "source": "https://github.com/imagemagick/imagemagick/commit/b173a352397877775c51c9a0e9d59eb6ce24c455",
                "target": {
                  "file": "coders/mat.c",
                  "function": "ReadMATImage"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-10070-7ae0ecc2",
                "digest": {
                  "length": 11023,
                  "function_hash": "100542800754363567782106591142409616134"
                },
                "source": "https://github.com/imagemagick/imagemagick/commit/a6240a163cb787909703d9fc649cf861f60ddd7c",
                "target": {
                  "file": "coders/mat.c",
                  "function": "ReadMATImage"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-10070-af357e78",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "104979937262347713278373044487411267202",
                    "175834825612476563933057226562340664836",
                    "283322184526029343880825074926793675018",
                    "215957794696520767711439946383935888901"
                  ]
                },
                "source": "https://github.com/imagemagick/imagemagick/commit/a6240a163cb787909703d9fc649cf861f60ddd7c",
                "target": {
                  "file": "coders/mat.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2016-10070-b6c2d3e9",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "104979937262347713278373044487411267202",
                    "175834825612476563933057226562340664836",
                    "283322184526029343880825074926793675018",
                    "215957794696520767711439946383935888901"
                  ]
                },
                "source": "https://github.com/imagemagick/imagemagick/commit/b173a352397877775c51c9a0e9d59eb6ce24c455",
                "target": {
                  "file": "coders/mat.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:11:58Z"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/imagemagick/imagemagick6",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4bae9bed8a79e031884ca9a4681dce89dbd26855"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "6.9.4-0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10070.json"
          }
        }
      ],
      "modified": "2026-10-24T14:11:58.779973130Z",
      "provider": "osv",
      "references": [
        "https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/1545366",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1410510",
        "https://github.com/ImageMagick/ImageMagick/commit/a6240a163cb787909703d9fc649cf861f60ddd7c",
        "https://github.com/ImageMagick/ImageMagick/commit/b173a352397877775c51c9a0e9d59eb6ce24c455"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "imagemagick:imagemagick",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "6.9.3-10"
                  },
                  {
                    "last_affected": "6.9.3-10"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:opensuse:leap:42.1:*:*:*:*:*:*:*",
              "cpe:2.3:o:opensuse:leap:42.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "opensuse:leap",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "42.1"
                  },
                  {
                    "last_affected": "42.1"
                  },
                  {
                    "introduced": "42.2"
                  },
                  {
                    "last_affected": "42.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2016-10070",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443283,
  "published_at": "2017-03-03T18:59:00.147+00:00"
}