CVE-2017-13146

Source
https://nvd.nist.gov/vuln/detail/CVE-2017-13146
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-13146.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2017-13146
Downstream
Related
Published
2017-08-23T06:29:00Z
Modified
2025-10-14T16:01:28.178072Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In ImageMagick before 6.9.8-5 and 7.x before 7.0.5-6, there is a memory leak in the ReadMATImage function in coders/mat.c.

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
Type
GIT
Repo
https://github.com/imagemagick/imagemagick6
Events
Introduced
0 Unknown introduced commit / All previous commits are affected

Affected versions

7.*

7.0.1-0
7.0.1-1
7.0.1-10
7.0.1-2
7.0.1-3
7.0.1-4
7.0.1-5
7.0.1-6
7.0.1-7
7.0.1-8
7.0.1-9
7.0.2-0
7.0.2-1
7.0.2-10
7.0.2-2
7.0.2-3
7.0.2-4
7.0.2-5
7.0.2-6
7.0.2-7
7.0.2-8
7.0.2-9
7.0.3-0
7.0.3-1
7.0.3-10
7.0.3-2
7.0.3-3
7.0.3-4
7.0.3-5
7.0.3-6
7.0.3-7
7.0.3-8
7.0.3-9
7.0.4-0
7.0.4-1
7.0.4-10
7.0.4-2
7.0.4-3
7.0.4-4
7.0.4-5
7.0.4-6
7.0.4-7
7.0.4-8
7.0.4-9
7.0.5-0
7.0.5-1
7.0.5-2
7.0.5-3
7.0.5-4
7.0.5-5

Database specific

{
    "vanir_signatures": [
        {
            "digest": {
                "length": 11363.0,
                "function_hash": "66561016854124679092711662741146009121"
            },
            "signature_version": "v1",
            "deprecated": false,
            "source": "https://github.com/imagemagick/imagemagick/commit/79e5dbcdd1fc2f714f9bae548bc55d5073f3ed20",
            "target": {
                "file": "coders/mat.c",
                "function": "ReadMATImage"
            },
            "id": "CVE-2017-13146-c0525c5e",
            "signature_type": "Function"
        },
        {
            "digest": {
                "length": 4455.0,
                "function_hash": "62442047964201575198656316227182035916"
            },
            "signature_version": "v1",
            "deprecated": false,
            "source": "https://github.com/imagemagick/imagemagick/commit/79e5dbcdd1fc2f714f9bae548bc55d5073f3ed20",
            "target": {
                "file": "coders/mat.c",
                "function": "ReadMATImageV4"
            },
            "id": "CVE-2017-13146-d517871f",
            "signature_type": "Function"
        },
        {
            "digest": {
                "threshold": 0.9,
                "line_hashes": [
                    "6801935747741891127209687601919449223",
                    "112540166003253754394516907670662171714",
                    "28667401872025313039192182376068700856",
                    "23033081034074236493185232819164857988",
                    "230433092232287733806505522510989485797",
                    "264839155689175760015679956298325458933",
                    "71341263378551870284953978548556506666",
                    "132342348340361713044224733661574163922",
                    "113061094659967753381962645053913412758",
                    "8143358960286404424177715230823897145",
                    "284418397577245764414872217168703862399",
                    "106831276100630174436229663985004961793",
                    "151516533500303868451200786649383428346",
                    "84440811493561661529050265931427950648"
                ]
            },
            "signature_version": "v1",
            "deprecated": false,
            "source": "https://github.com/imagemagick/imagemagick/commit/79e5dbcdd1fc2f714f9bae548bc55d5073f3ed20",
            "target": {
                "file": "coders/mat.c"
            },
            "id": "CVE-2017-13146-e23d557e",
            "signature_type": "Line"
        }
    ]
}