High
Security advisory
In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-7397
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:29 UTC · Revision 1
Source evidence
In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.
osv:CVE-2019-7397
Complete source record
{
"id": "435cf04f8e45cc481cbbe012c9e4f92e928edada4dcac212c4ef2845fd94be86",
"url": "https://osv.dev/vulnerability/CVE-2019-7397",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-7397",
"summary": "In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.",
"evidence": "osv:CVE-2019-7397",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-7397",
"aliases": [
"CVE-2019-7397"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/imagemagick/imagemagick",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "6e7c9e78a83bd984834cb387031a6afcceb35d15"
},
{
"fixed": "306c1f0fa5754ca78efd16ab752f0e981d4f6b82"
}
],
"database_specific": {
"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"
}
]
}
}
],
"versions": [
"7.0.8-24",
"7.0.8-23",
"7.0.8-22",
"7.0.8-21",
"7.0.8-20",
"7.0.8-19",
"7.0.8-18",
"7.0.8-17",
"7.0.8-16",
"7.0.8-15",
"7.0.8-14",
"7.0.8-13",
"7.0.8-12",
"7.0.8-11",
"7.0.8-10",
"7.0.8-9",
"7.0.8-8",
"7.0.8-7",
"7.0.8-6",
"7.0.8-5",
"7.0.8-4",
"7.0.8-3",
"7.0.8-2",
"7.0.8-1",
"7.0.8-0",
"7.0.7-39",
"7.0.7-38",
"7.0.7-37",
"7.0.7-36",
"7.0.7-35",
"7.0.7-34",
"7.0.7-33",
"7.0.7-32",
"7.0.7-31",
"7.0.7-30",
"7.0.7-29",
"7.0.7-28",
"7.0.7-27",
"7.0.7-26",
"7.0.7-25",
"7.0.7-24",
"7.0.7-23",
"7.0.7-22",
"7.0.7-21",
"7.0.7-20",
"7.0.7-19",
"7.0.7-18",
"7.0.7-17",
"7.0.7-16",
"7.0.7-15",
"7.0.7-14",
"7.0.7-13",
"7.0.7-12",
"7.0.7-11",
"7.0.7-10",
"7.0.7-9",
"7.0.7-8",
"7.0.7.7",
"7.0.7-6",
"7.0.7-5",
"7.0.7-4",
"7.0.7-3",
"7.0.7-2",
"7.0.7-1",
"7.0.7-0",
"7.0.6-9",
"7.0.6-8",
"7.0.6-7",
"7.0.6-6",
"7.0.6-5",
"7.0.6-4",
"7.0.6-3",
"7.0.6-2",
"7.0.6-1",
"7.0.6-0",
"7.0.5-10",
"7.0.5-9",
"7.0.5-8",
"7.0.5-7",
"7.0.5-6",
"7.0.5-5",
"7.0.5-4",
"7.0.5-3",
"7.0.5-2",
"7.0.5-1",
"7.0.5-0",
"7.0.4-10",
"7.0.4-9",
"7.0.4-8",
"7.0.4-7",
"7.0.4-6",
"7.0.4-5",
"7.0.4-4",
"7.0.4-3",
"7.0.4-2",
"7.0.4-1",
"7.0.4-0",
"7.0.3-10",
"7.0.3-9",
"7.0.3-8",
"7.0.3-7",
"7.0.3-6",
"7.0.3-5",
"7.0.3-4",
"7.0.3-3",
"7.0.3-2",
"7.0.3-1",
"7.0.3-0",
"7.0.2-10",
"7.0.2-9",
"7.0.2-8",
"7.0.2-7",
"7.0.2-6",
"7.0.2-5",
"7.0.2-4",
"7.0.2-3",
"7.0.2-2",
"7.0.2-1",
"7.0.2-0",
"7.0.1-10",
"7.0.1-9",
"7.0.1-8",
"7.0.1-7",
"7.0.1-6",
"7.0.1-5",
"7.0.1-4",
"7.0.1-3",
"7.0.1-2",
"7.0.1-1",
"7.0.1-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-7397.json",
"vanir_signatures": [
{
"id": "CVE-2019-7397-43cb7d93",
"digest": {
"length": 47833,
"function_hash": "259240667232378247289142775153392571398"
},
"source": "https://github.com/imagemagick/imagemagick/commit/306c1f0fa5754ca78efd16ab752f0e981d4f6b82",
"target": {
"file": "coders/pdf.c",
"function": "WritePDFImage"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2019-7397-f4cddfa6",
"digest": {
"threshold": 0.9,
"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"
]
},
"source": "https://github.com/imagemagick/imagemagick/commit/306c1f0fa5754ca78efd16ab752f0e981d4f6b82",
"target": {
"file": "coders/pdf.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:50:56Z"
}
},
{
"ranges": [
{
"repo": "https://github.com/imagemagick/imagemagick6",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "cf5b4609752c5ae81cd9d7865e384ebf607ab622"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "6.9.10-25"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"6.9.10-24",
"6.9.10-23",
"6.9.10-22",
"6.9.10-21",
"6.9.10-20",
"6.9.10-19",
"6.9.10-18",
"6.9.10-17",
"6.9.10-16",
"6.9.10-15",
"6.9.10-14",
"6.9.10-13",
"6.9.10-12",
"6.9.10-11",
"6.9.10-10",
"6.9.10-9",
"6.9.10-8",
"6.9.10-7",
"6.9.10-6",
"6.9.10-5",
"6.9.10-4",
"6.9.10-3",
"6.9.10-2",
"6.9.10-1",
"6.9.10-0",
"6.9.9-51",
"6.9.9-50",
"6.9.9-49",
"6.9.9-48",
"6.9.9-47",
"6.9.9-46",
"6.9.9-45",
"6.9.9-44",
"6.9.9-43",
"6.9.9-42",
"6.9.9-41",
"6.9.9-40",
"6.9.9-39",
"6.9.9-38",
"6.9.9-37",
"6.9.9-36",
"6.9.9-35",
"6.9.9-34",
"6.9.9-33",
"6.9.9-32",
"6.9.9-31",
"6.9.9-30",
"6.9.9-29",
"6.9.9-28",
"6.9.9-27",
"6.9.9-26",
"6.9.9-25",
"6.9.9-24",
"6.9.9-23",
"6.9.9-22",
"6.9.9-21",
"6.9.9-20",
"6.9.9-19",
"6.9.9-18",
"6.9.9-17",
"6.9.9-15",
"6.9.9-14",
"6.9.9-13",
"6.9.9-12",
"6.9.9-11",
"6.9.9-10",
"6.9.9-9",
"6.9.9-8",
"6.9.9-7",
"6.9.9-6",
"6.9.9-5",
"6.9.9-4",
"6.9.9-3",
"6.9.9-2",
"6.9.9-1",
"6.9.9-0",
"6.9.8-10",
"6.9.8-9",
"6.9.8-8",
"6.9.8-7",
"6.9.8-6",
"6.9.8-5",
"6.9.8-4",
"6.9.8-3",
"6.9.8-2",
"6.9.8-1",
"6.9.8-0",
"6.9.7-10",
"6.9.7-9",
"6.9.7-8",
"6.9.7-7",
"6.9.7-6",
"6.9.7-5",
"6.9.7-4",
"6.9.7-3",
"6.9.7-2",
"6.9.7-1",
"6.9.7-0",
"6.9.6-8",
"6.9.6-7",
"6.9.6-6",
"6.9.6-5",
"6.9.6-4",
"6.9.6-3",
"6.9.6-2",
"6.9.6-1",
"6.9.6-0",
"6.9.5-10",
"6.9.5-9",
"6.9.5-8",
"6.9.5-7",
"6.9.5-6",
"6.9.5-5",
"6.9.5-4",
"6.9.5-3",
"6.9.5-2",
"6.9.5-1",
"6.9.5-0",
"6.9.4-10",
"6.9.4-9",
"6.9.4-8",
"6.9.4-7",
"6.9.4-6",
"6.9.4-5",
"6.9.4-4",
"6.9.4-3",
"6.9.4-2",
"6.9.4-1",
"6.9.4-0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-7397.json"
}
}
],
"modified": "2026-10-24T14:50:56.501878122Z",
"provider": "osv",
"references": [
"https://usn.ubuntu.com/4034-1/",
"https://www.debian.org/security/2020/dsa-4712",
"https://github.com/ImageMagick/ImageMagick/commit/306c1f0fa5754ca78efd16ab752f0e981d4f6b82",
"https://github.com/ImageMagick/ImageMagick/issues/1454"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:graphicsmagick:graphicsmagick:*:*:*:*:*:*:*:*"
],
"vendor_product": "graphicsmagick:graphicsmagick",
"extracted_events": [
{
"range": [
{
"last_affected": "1.3.31"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*"
],
"vendor_product": "imagemagick:imagemagick",
"extracted_events": [
{
"range": [
{
"fixed": "6.9.10-25"
},
{
"introduced": "7.0.0-0"
},
{
"fixed": "7.0.8-25"
}
],
"source": "CPE_RANGE"
}
]
},
{
"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:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"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"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.0"
},
{
"last_affected": "15.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2019-7397",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443837,
"published_at": "2019-02-05T00:29:00.51+00:00"
}