CVE-2017-12662

Source
https://cve.org/CVERecord?id=CVE-2017-12662
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-12662.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2017-12662
Downstream
Related
Published
2017-08-07T21:29:00.190Z
Modified
2026-07-11T18:19:26.059752Z
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-2 has a memory leak vulnerability in WritePDFImage in coders/pdf.c.

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

Database specific

vanir_signatures_modified
"2026-07-11T18:19:26Z"
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2017-12662.json"
vanir_signatures
[
    {
        "target": {
            "file": "coders/pdf.c",
            "function": "WritePDFImage"
        },
        "deprecated": false,
        "id": "CVE-2017-12662-a0ca3e3c",
        "signature_version": "v1",
        "digest": {
            "function_hash": "209648147439680799536164208007129637566",
            "length": 47492.0
        },
        "source": "https://github.com/imagemagick/imagemagick/commit/bd40cc5f53067322861b881485cbd70f509f3829",
        "signature_type": "Function"
    },
    {
        "target": {
            "file": "coders/pdf.c"
        },
        "deprecated": false,
        "id": "CVE-2017-12662-fcddfeb2",
        "signature_version": "v1",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "262713240857588198297543869369547118031",
                "324597284479844702237096376011841781917",
                "59969184702294046742818960858320763916",
                "207277949029396891506517216028207985432",
                "211186830916768807744920295224893816223",
                "304122978349532794200352615952628552940",
                "259237517369535398486874022511918915679",
                "308098927326024666737335025659096386841",
                "81483251600641205893240912801696513933"
            ]
        },
        "source": "https://github.com/imagemagick/imagemagick/commit/bd40cc5f53067322861b881485cbd70f509f3829",
        "signature_type": "Line"
    }
]