CVE-2019-7397

Source
https://cve.org/CVERecord?id=CVE-2019-7397
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-7397.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2019-7397
Downstream
DEBIAN (1)
JLSEC (1)
MGASA (1)
openSUSE (3)
RHSA (1)
SUSE (5)
UBUNTU (1)
Related
Published
2019-02-05T00:29:00Z
Modified
2026-10-22T07:16:04Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "last_affected":  "1.3.31"
                        }
                    ],
                    "source":  "CPE_RANGE"
                }
            ],
            "vendor_product":  "graphicsmagick:graphicsmagick"
        },
        {
            "cpes":  [
                "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "fixed":  "6.9.10-25"
                        }
                    ],
                    "source":  "CPE_RANGE"
                }
            ],
            "vendor_product":  "imagemagick:imagemagick"
        },
        {
            "cpes":  [
                "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "16.04"
                        },
                        {
                            "last_affected":  "16.04"
                        },
                        {
                            "introduced":  "18.04"
                        },
                        {
                            "last_affected":  "18.04"
                        },
                        {
                            "introduced":  "18.10"
                        },
                        {
                            "last_affected":  "18.10"
                        },
                        {
                            "introduced":  "19.04"
                        },
                        {
                            "last_affected":  "19.04"
                        }
                    ],
                    "source":  "CPE_STRING"
                }
            ],
            "vendor_product":  "canonical:ubuntu_linux"
        },
        {
            "cpes":  [
                "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "10.0"
                        },
                        {
                            "last_affected":  "10.0"
                        }
                    ],
                    "source":  "CPE_STRING"
                }
            ],
            "vendor_product":  "debian:debian_linux"
        },
        {
            "cpes":  [
                "cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "range":  [
                        {
                            "introduced":  "15.0"
                        },
                        {
                            "last_affected":  "15.0"
                        }
                    ],
                    "source":  "CPE_STRING"
                }
            ],
            "vendor_product":  "opensuse:leap"
        }
    ]
}
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
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "7.0.0-0"
                },
                {
                    "fixed":  "7.0.8-25"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "range":  [
                {
                    "fixed":  "306c1f0fa5754ca78efd16ab752f0e981d4f6b82"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

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
7.0.6-2
7.0.6-3
7.0.6-4
7.0.6-5
7.0.6-6
7.0.6-7
7.0.6-8
7.0.6-9
7.0.7-0
7.0.7-1
7.0.7-10
7.0.7-11
7.0.7-12
7.0.7-13
7.0.7-14
7.0.7-15
7.0.7-16
7.0.7-17
7.0.7-18
7.0.7-19
7.0.7-2
7.0.7-20
7.0.7-21
7.0.7-22
7.0.7-23
7.0.7-24
7.0.7-25
7.0.7-26
7.0.7-27
7.0.7-28
7.0.7-29
7.0.7-3
7.0.7-30
7.0.7-31
7.0.7-32
7.0.7-33
7.0.7-34
7.0.7-35
7.0.7-36
7.0.7-37
7.0.7-38
7.0.7-39
7.0.7-4
7.0.7-5
7.0.7-6
7.0.7-8
7.0.7-9
7.0.7.7
7.0.8-0
7.0.8-1
7.0.8-10
7.0.8-11
7.0.8-12
7.0.8-13
7.0.8-14
7.0.8-15
7.0.8-16
7.0.8-17
7.0.8-18
7.0.8-19
7.0.8-2
7.0.8-20
7.0.8-21
7.0.8-22
7.0.8-23
7.0.8-24
7.0.8-3
7.0.8-4
7.0.8-5
7.0.8-6
7.0.8-7
7.0.8-8
7.0.8-9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-7397.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "259240667232378247289142775153392571398",
            "length":  47833
        },
        "id":  "CVE-2019-7397-43cb7d93",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/imagemagick/imagemagick/commit/306c1f0fa5754ca78efd16ab752f0e981d4f6b82",
        "target":  {
            "file":  "coders/pdf.c",
            "function":  "WritePDFImage"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "106094136774705377065754960848104974498",
                "123052438036076283476025030887355299243",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "272247517054721271485080891482895198056",
                "245652099114995329375226879373238919499",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "276631345824161080120153518153068977993",
                "211317118708503711492959275845637454314",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "106094136774705377065754960848104974498",
                "123052438036076283476025030887355299243",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "272247517054721271485080891482895198056",
                "245652099114995329375226879373238919499",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "244439538885832093404179737647443701433",
                "195021429438140487776322366056483412788",
                "281685403714854786833041373748630345252",
                "170225170440950211048386781625793137487",
                "78016638745777651298475370470682150682",
                "171454763030531746383234678103101429401",
                "231346584277859562736825678366676988810",
                "276631345824161080120153518153068977993",
                "211317118708503711492959275845637454314",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "142706541755553594704543666200906851881",
                "195021429438140487776322366056483412788",
                "132325093330532921428763566095554861909",
                "186415488147582683466626500742346462168",
                "309511830569509712513867295259145097008",
                "210560851494422358774136279226300672522",
                "101237842577095342064698952977082934370",
                "231346584277859562736825678366676988810",
                "276631345824161080120153518153068977993",
                "211317118708503711492959275845637454314",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "88724694148967702729732270915399473506",
                "61546799042025798279335443871233161428",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "179938490043940784238808436566549352068",
                "118324850845584780384288462923084391660",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "276631345824161080120153518153068977993",
                "211317118708503711492959275845637454314",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "88724694148967702729732270915399473506",
                "61546799042025798279335443871233161428",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "179938490043940784238808436566549352068",
                "118324850845584780384288462923084391660",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "276631345824161080120153518153068977993",
                "211317118708503711492959275845637454314",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "276631345824161080120153518153068977993",
                "211317118708503711492959275845637454314",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764",
                "276631345824161080120153518153068977993",
                "211317118708503711492959275845637454314",
                "338678022389874016785070484529452567515",
                "237282912064473142423133775254599421764"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2019-7397-f4cddfa6",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/imagemagick/imagemagick/commit/306c1f0fa5754ca78efd16ab752f0e981d4f6b82",
        "target":  {
            "file":  "coders/pdf.c"
        }
    }
]
vanir_signatures_modified
"2026-10-22T07:16:04Z"