CVE-2017-12640

Source
https://cve.org/CVERecord?id=CVE-2017-12640
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-12640.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2017-12640
Downstream
Related
Published
2017-08-07T15:29:00.300Z
Modified
2026-07-11T18:15:04.219777Z
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

ImageMagick 7.0.6-1 has an out-of-bounds read vulnerability in ReadOneMNGImage in coders/png.c.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
                {
                    "introduced": "8.0"
                },
                {
                    "last_affected": "8.0"
                },
                {
                    "introduced": "9.0"
                },
                {
                    "last_affected": "9.0"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpes": [
                "cpe:2.3:a:imagemagick:imagemagick:7.0.6-1:*:*:*:*:*:*:*"
            ],
            "vendor_product": "imagemagick:imagemagick",
            "extracted_events": [
                {
                    "introduced": "7.0.6-1"
                },
                {
                    "last_affected": "7.0.6-1"
                },
                {
                    "introduced": "7.0.6-1"
                },
                {
                    "last_affected": "7.0.6-1"
                }
            ],
            "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"
}

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-10
7.0.5-2
7.0.5-3
7.0.5-4
7.0.5-5
7.0.5-6
7.0.5-7
7.0.5-8
7.0.5-9
7.0.6-0

Database specific

vanir_signatures
[
    {
        "signature_version": "v1",
        "signature_type": "Function",
        "target": {
            "file": "coders/png.c",
            "function": "ReadOneMNGImage"
        },
        "id": "CVE-2017-12640-d10ad556",
        "deprecated": false,
        "digest": {
            "length": 46724.0,
            "function_hash": "36244493604687856662586930448989595769"
        },
        "source": "https://github.com/imagemagick/imagemagick/commit/307fa45d512641fcd105f0d57ca50c1437cd1b81"
    },
    {
        "signature_version": "v1",
        "signature_type": "Line",
        "target": {
            "file": "coders/png.c"
        },
        "id": "CVE-2017-12640-ee513c59",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "152853999237181391986133234558635795508",
                "63158914722812412835756768275409076630",
                "258829486961669500152028542393678270907",
                "74120493628515550250525474420513271129"
            ]
        },
        "source": "https://github.com/imagemagick/imagemagick/commit/307fa45d512641fcd105f0d57ca50c1437cd1b81"
    }
]
vanir_signatures_modified
"2026-07-11T18:15:04Z"
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-12640.json"