CVE-2017-13658

Source
https://cve.org/CVERecord?id=CVE-2017-13658
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-13658.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2017-13658
Downstream
Related
Published
2017-08-24T06:29:00.193Z
Modified
2026-07-11T18:19:16.733829Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In ImageMagick before 6.9.9-3 and 7.x before 7.0.6-3, there is a missing NULL check in the ReadMATImage function in coders/mat.c, leading to a denial of service (assertion failure and application exit) in the DestroyImageInfo function in MagickCore/image.c.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "7.0.1-0"
                },
                {
                    "last_affected": "7.0.1-0"
                },
                {
                    "introduced": "7.0.1-0"
                },
                {
                    "last_affected": "7.0.1-0"
                },
                {
                    "introduced": "7.0.1-1"
                },
                {
                    "last_affected": "7.0.1-1"
                },
                {
                    "introduced": "7.0.1-1"
                },
                {
                    "last_affected": "7.0.1-1"
                },
                {
                    "introduced": "7.0.1-2"
                },
                {
                    "last_affected": "7.0.1-2"
                },
                {
                    "introduced": "7.0.1-2"
                },
                {
                    "last_affected": "7.0.1-2"
                },
                {
                    "introduced": "7.0.1-3"
                },
                {
                    "last_affected": "7.0.1-3"
                },
                {
                    "introduced": "7.0.1-3"
                },
                {
                    "last_affected": "7.0.1-3"
                },
                {
                    "introduced": "7.0.1-4"
                },
                {
                    "last_affected": "7.0.1-4"
                },
                {
                    "introduced": "7.0.1-4"
                },
                {
                    "last_affected": "7.0.1-4"
                },
                {
                    "introduced": "7.0.1-5"
                },
                {
                    "last_affected": "7.0.1-5"
                },
                {
                    "introduced": "7.0.1-5"
                },
                {
                    "last_affected": "7.0.1-5"
                },
                {
                    "introduced": "7.0.1-6"
                },
                {
                    "last_affected": "7.0.1-6"
                },
                {
                    "introduced": "7.0.1-6"
                },
                {
                    "last_affected": "7.0.1-6"
                },
                {
                    "introduced": "7.0.1-7"
                },
                {
                    "last_affected": "7.0.1-7"
                },
                {
                    "introduced": "7.0.1-7"
                },
                {
                    "last_affected": "7.0.1-7"
                },
                {
                    "introduced": "7.0.1-8"
                },
                {
                    "last_affected": "7.0.1-8"
                },
                {
                    "introduced": "7.0.1-8"
                },
                {
                    "last_affected": "7.0.1-8"
                },
                {
                    "introduced": "7.0.1-9"
                },
                {
                    "last_affected": "7.0.1-9"
                },
                {
                    "introduced": "7.0.1-9"
                },
                {
                    "last_affected": "7.0.1-9"
                },
                {
                    "introduced": "7.0.1-10"
                },
                {
                    "last_affected": "7.0.1-10"
                },
                {
                    "introduced": "7.0.1-10"
                },
                {
                    "last_affected": "7.0.1-10"
                },
                {
                    "introduced": "7.0.2-0"
                },
                {
                    "last_affected": "7.0.2-0"
                },
                {
                    "introduced": "7.0.2-0"
                },
                {
                    "last_affected": "7.0.2-0"
                },
                {
                    "introduced": "7.0.2-1"
                },
                {
                    "last_affected": "7.0.2-1"
                },
                {
                    "introduced": "7.0.2-1"
                },
                {
                    "last_affected": "7.0.2-1"
                },
                {
                    "introduced": "7.0.2-2"
                },
                {
                    "last_affected": "7.0.2-2"
                },
                {
                    "introduced": "7.0.2-2"
                },
                {
                    "last_affected": "7.0.2-2"
                },
                {
                    "introduced": "7.0.2-3"
                },
                {
                    "last_affected": "7.0.2-3"
                },
                {
                    "introduced": "7.0.2-3"
                },
                {
                    "last_affected": "7.0.2-3"
                },
                {
                    "introduced": "7.0.2-4"
                },
                {
                    "last_affected": "7.0.2-4"
                },
                {
                    "introduced": "7.0.2-4"
                },
                {
                    "last_affected": "7.0.2-4"
                },
                {
                    "introduced": "7.0.2-5"
                },
                {
                    "last_affected": "7.0.2-5"
                },
                {
                    "introduced": "7.0.2-5"
                },
                {
                    "last_affected": "7.0.2-5"
                },
                {
                    "introduced": "7.0.2-6"
                },
                {
                    "last_affected": "7.0.2-6"
                },
                {
                    "introduced": "7.0.2-6"
                },
                {
                    "last_affected": "7.0.2-6"
                },
                {
                    "introduced": "7.0.2-7"
                },
                {
                    "last_affected": "7.0.2-7"
                },
                {
                    "introduced": "7.0.2-7"
                },
                {
                    "last_affected": "7.0.2-7"
                },
                {
                    "introduced": "7.0.2-8"
                },
                {
                    "last_affected": "7.0.2-8"
                },
                {
                    "introduced": "7.0.2-8"
                },
                {
                    "last_affected": "7.0.2-8"
                },
                {
                    "introduced": "7.0.2-9"
                },
                {
                    "last_affected": "7.0.2-9"
                },
                {
                    "introduced": "7.0.2-9"
                },
                {
                    "last_affected": "7.0.2-9"
                },
                {
                    "introduced": "7.0.2-10"
                },
                {
                    "last_affected": "7.0.2-10"
                },
                {
                    "introduced": "7.0.2-10"
                },
                {
                    "last_affected": "7.0.2-10"
                },
                {
                    "introduced": "7.0.3-0"
                },
                {
                    "last_affected": "7.0.3-0"
                },
                {
                    "introduced": "7.0.3-0"
                },
                {
                    "last_affected": "7.0.3-0"
                },
                {
                    "introduced": "7.0.3-1"
                },
                {
                    "last_affected": "7.0.3-1"
                },
                {
                    "introduced": "7.0.3-1"
                },
                {
                    "last_affected": "7.0.3-1"
                },
                {
                    "introduced": "7.0.3-2"
                },
                {
                    "last_affected": "7.0.3-2"
                },
                {
                    "introduced": "7.0.3-2"
                },
                {
                    "last_affected": "7.0.3-2"
                },
                {
                    "introduced": "7.0.3-3"
                },
                {
                    "last_affected": "7.0.3-3"
                },
                {
                    "introduced": "7.0.3-3"
                },
                {
                    "last_affected": "7.0.3-3"
                },
                {
                    "introduced": "7.0.3-4"
                },
                {
                    "last_affected": "7.0.3-4"
                },
                {
                    "introduced": "7.0.3-4"
                },
                {
                    "last_affected": "7.0.3-4"
                },
                {
                    "introduced": "7.0.3-5"
                },
                {
                    "last_affected": "7.0.3-5"
                },
                {
                    "introduced": "7.0.3-5"
                },
                {
                    "last_affected": "7.0.3-5"
                },
                {
                    "introduced": "7.0.3-6"
                },
                {
                    "last_affected": "7.0.3-6"
                },
                {
                    "introduced": "7.0.3-6"
                },
                {
                    "last_affected": "7.0.3-6"
                },
                {
                    "introduced": "7.0.3-7"
                },
                {
                    "last_affected": "7.0.3-7"
                },
                {
                    "introduced": "7.0.3-7"
                },
                {
                    "last_affected": "7.0.3-7"
                },
                {
                    "introduced": "7.0.3-8"
                },
                {
                    "last_affected": "7.0.3-8"
                },
                {
                    "introduced": "7.0.3-8"
                },
                {
                    "last_affected": "7.0.3-8"
                },
                {
                    "introduced": "7.0.3-9"
                },
                {
                    "last_affected": "7.0.3-9"
                },
                {
                    "introduced": "7.0.3-9"
                },
                {
                    "last_affected": "7.0.3-9"
                },
                {
                    "introduced": "7.0.3-10"
                },
                {
                    "last_affected": "7.0.3-10"
                },
                {
                    "introduced": "7.0.3-10"
                },
                {
                    "last_affected": "7.0.3-10"
                },
                {
                    "introduced": "7.0.4-0"
                },
                {
                    "last_affected": "7.0.4-0"
                },
                {
                    "introduced": "7.0.4-0"
                },
                {
                    "last_affected": "7.0.4-0"
                },
                {
                    "introduced": "7.0.4-1"
                },
                {
                    "last_affected": "7.0.4-1"
                },
                {
                    "introduced": "7.0.4-1"
                },
                {
                    "last_affected": "7.0.4-1"
                },
                {
                    "introduced": "7.0.4-2"
                },
                {
                    "last_affected": "7.0.4-2"
                },
                {
                    "introduced": "7.0.4-2"
                },
                {
                    "last_affected": "7.0.4-2"
                },
                {
                    "introduced": "7.0.4-3"
                },
                {
                    "last_affected": "7.0.4-3"
                },
                {
                    "introduced": "7.0.4-3"
                },
                {
                    "last_affected": "7.0.4-3"
                },
                {
                    "introduced": "7.0.4-4"
                },
                {
                    "last_affected": "7.0.4-4"
                },
                {
                    "introduced": "7.0.4-4"
                },
                {
                    "last_affected": "7.0.4-4"
                },
                {
                    "introduced": "7.0.4-5"
                },
                {
                    "last_affected": "7.0.4-5"
                },
                {
                    "introduced": "7.0.4-5"
                },
                {
                    "last_affected": "7.0.4-5"
                },
                {
                    "introduced": "7.0.4-6"
                },
                {
                    "last_affected": "7.0.4-6"
                },
                {
                    "introduced": "7.0.4-6"
                },
                {
                    "last_affected": "7.0.4-6"
                },
                {
                    "introduced": "7.0.4-7"
                },
                {
                    "last_affected": "7.0.4-7"
                },
                {
                    "introduced": "7.0.4-7"
                },
                {
                    "last_affected": "7.0.4-7"
                },
                {
                    "introduced": "7.0.4-8"
                },
                {
                    "last_affected": "7.0.4-8"
                },
                {
                    "introduced": "7.0.4-8"
                },
                {
                    "last_affected": "7.0.4-8"
                },
                {
                    "introduced": "7.0.4-9"
                },
                {
                    "last_affected": "7.0.4-9"
                },
                {
                    "introduced": "7.0.4-9"
                },
                {
                    "last_affected": "7.0.4-9"
                },
                {
                    "introduced": "7.0.4-10"
                },
                {
                    "last_affected": "7.0.4-10"
                },
                {
                    "introduced": "7.0.4-10"
                },
                {
                    "last_affected": "7.0.4-10"
                },
                {
                    "introduced": "7.0.5-0"
                },
                {
                    "last_affected": "7.0.5-0"
                },
                {
                    "introduced": "7.0.5-0"
                },
                {
                    "last_affected": "7.0.5-0"
                },
                {
                    "introduced": "7.0.5-1"
                },
                {
                    "last_affected": "7.0.5-1"
                },
                {
                    "introduced": "7.0.5-1"
                },
                {
                    "last_affected": "7.0.5-1"
                },
                {
                    "introduced": "7.0.5-4"
                },
                {
                    "last_affected": "7.0.5-4"
                },
                {
                    "introduced": "7.0.5-4"
                },
                {
                    "last_affected": "7.0.5-4"
                },
                {
                    "introduced": "7.0.5-5"
                },
                {
                    "last_affected": "7.0.5-5"
                },
                {
                    "introduced": "7.0.5-5"
                },
                {
                    "last_affected": "7.0.5-5"
                },
                {
                    "introduced": "7.0.5-6"
                },
                {
                    "last_affected": "7.0.5-6"
                },
                {
                    "introduced": "7.0.5-6"
                },
                {
                    "last_affected": "7.0.5-6"
                },
                {
                    "introduced": "7.0.5-7"
                },
                {
                    "last_affected": "7.0.5-7"
                },
                {
                    "introduced": "7.0.5-7"
                },
                {
                    "last_affected": "7.0.5-7"
                },
                {
                    "introduced": "7.0.5-8"
                },
                {
                    "last_affected": "7.0.5-8"
                },
                {
                    "introduced": "7.0.5-8"
                },
                {
                    "last_affected": "7.0.5-8"
                },
                {
                    "introduced": "7.0.5-9"
                },
                {
                    "last_affected": "7.0.5-9"
                },
                {
                    "introduced": "7.0.5-9"
                },
                {
                    "last_affected": "7.0.5-9"
                },
                {
                    "introduced": "7.0.5-10"
                },
                {
                    "last_affected": "7.0.5-10"
                },
                {
                    "introduced": "7.0.5-10"
                },
                {
                    "last_affected": "7.0.5-10"
                },
                {
                    "introduced": "7.0.6-0"
                },
                {
                    "last_affected": "7.0.6-0"
                },
                {
                    "introduced": "7.0.6-0"
                },
                {
                    "last_affected": "7.0.6-0"
                },
                {
                    "introduced": "7.0.6-1"
                },
                {
                    "last_affected": "7.0.6-1"
                },
                {
                    "introduced": "7.0.6-1"
                },
                {
                    "last_affected": "7.0.6-1"
                },
                {
                    "introduced": "7.0.6-2"
                },
                {
                    "last_affected": "7.0.6-2"
                },
                {
                    "introduced": "7.0.6-2"
                },
                {
                    "last_affected": "7.0.6-2"
                }
            ],
            "cpes": [
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-0:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-10:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-1:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-2:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-3:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-4:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-5:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-6:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-7:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-8:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.1-9:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-0:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-10:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-1:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-2:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-3:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-4:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-5:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-6:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-7:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-8:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.2-9:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-0:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-10:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-1:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-2:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-3:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-4:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-5:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-6:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-7:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-8:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.3-9:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-0:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-10:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-1:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-2:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-3:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-4:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-5:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-6:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-7:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-8:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.4-9:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-0:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-10:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-1:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-4:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-5:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-6:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-7:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-8:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.5-9:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.6-0:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.6-1:*:*:*:*:*:*:*",
                "cpe:2.3:a:imagemagick:imagemagick:7.0.6-2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "imagemagick:imagemagick",
            "source": "CPE_STRING"
        }
    ]
}
References

Affected packages

Git / github.com/imagemagick/imagemagick

Affected ranges

Type
GIT
Repo
https://github.com/imagemagick/imagemagick
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "source": "REFERENCES"
}

Database specific

vanir_signatures
[
    {
        "source": "https://github.com/imagemagick/imagemagick/commit/e5c063a1007506ba69e97a35effcdef944421c89",
        "deprecated": false,
        "digest": {
            "function_hash": "293712838801584744090017267013273637519",
            "length": 11829.0
        },
        "id": "CVE-2017-13658-59c036bf",
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "function": "ReadMATImage",
            "file": "coders/mat.c"
        }
    },
    {
        "source": "https://github.com/imagemagick/imagemagick/commit/e5c063a1007506ba69e97a35effcdef944421c89",
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "196372200781272399580337409078976674031",
                "150586695525905005355183413701924109268",
                "10433274608074049300448930201816478828",
                "297997508868761914743686034058668692117"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2017-13658-a57e7ea9",
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "coders/mat.c"
        }
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-13658.json"
vanir_signatures_modified
"2026-07-11T18:19:16Z"

Git / github.com/imagemagick/imagemagick6

Affected ranges

Type
GIT
Repo
https://github.com/imagemagick/imagemagick6
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "6.9.9-2"
        }
    ],
    "cpe": "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
    "source": "CPE_RANGE"
}

Affected versions

6.*
6.9.4-0
6.9.4-1
6.9.4-10
6.9.4-2
6.9.4-3
6.9.4-4
6.9.4-5
6.9.4-6
6.9.4-7
6.9.4-8
6.9.4-9
6.9.5-0
6.9.5-1
6.9.5-10
6.9.5-2
6.9.5-3
6.9.5-4
6.9.5-5
6.9.5-6
6.9.5-7
6.9.5-8
6.9.5-9
6.9.6-0
6.9.6-1
6.9.6-2
6.9.6-3
6.9.6-4
6.9.6-5
6.9.6-6
6.9.6-7
6.9.6-8
6.9.7-0
6.9.7-1
6.9.7-10
6.9.7-2
6.9.7-3
6.9.7-4
6.9.7-5
6.9.7-6
6.9.7-7
6.9.7-8
6.9.7-9
6.9.8-0
6.9.8-1
6.9.8-10
6.9.8-2
6.9.8-3
6.9.8-4
6.9.8-5
6.9.8-6
6.9.8-7
6.9.8-8
6.9.8-9
6.9.9-0
6.9.9-1
6.9.9-2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-13658.json"