{"schemaVersion":3,"id":"CVE-2019-13306","aliases":["ALPINE-CVE-2019-13306","UBUNTU-CVE-2019-13306","DEBIAN-CVE-2019-13306"],"status":"published","duplicateOf":null,"title":null,"description":"ImageMagick 7.0.8-50 Q16 has a stack-based buffer overflow at coders/pnm.c in WritePNMImage because of off-by-one errors.","dates":{"published":"2019-07-05T00:53:29.000Z","modified":"2024-08-04T23:49:24.575Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":6.8,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true}]},"epss":{"probability":0.02082,"percentile":0.81252,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02082},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02082,"percentile":0.81252}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02082,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02082,"percentile":0.81252}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_IMAGEMAGICK_IMAGEMAGICK","name":"Imagemagick","source":"github","url":"https://github.com/ImageMagick/ImageMagick/commit/5511ef530576ed18fd636baa3bb4eda3d667665d","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-193","name":"Off-by-one Error","description":"A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/193.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"alpine","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/imagemagick","purlType":"apk","versions":[{"text":"< 6.9.10.53-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.9.10.53-r0","eol":null,"hubHref":null},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"16.04","noFixRecorded":false,"fixedIn":null},{"text":"18.04","noFixRecorded":false,"fixedIn":null},{"text":"19.04","noFixRecorded":false,"fixedIn":null},{"text":"19.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"16.04 | 18.04 | 19.04 | 19.10","eol":{"isEol":true,"eolDate":"2021-04-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"16.04","label":"16.04 'Xenial Xerus' (LTS)","eolFrom":"2021-04-02T00:00:00.000Z","isLts":true,"isMaintained":false,"latestVersion":"16.04.7"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/imagemagick","purlType":"deb","versions":[{"text":"< 8:6.9.11.24+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8:6.9.11.24+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/imagemagick","purlType":"deb","versions":[{"text":"< 8:6.7.7.10-6ubuntu3.13+esm10","noFixRecorded":false,"fixedIn":null},{"text":"< 8:6.8.9.9-7ubuntu5.15","noFixRecorded":false,"fixedIn":null},{"text":"< 8:6.9.7.4+dfsg-16ubuntu6.8","noFixRecorded":false,"fixedIn":null},{"text":"< 8:6.9.10.23+dfsg-2.1ubuntu9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8:6.7.7.10-6ubuntu3.13+esm10 | < 8:6.8.9.9-7ubuntu5.15 | < 8:6.9.7.4+dfsg-16ubuntu6.8 | < 8:6.9.10.23+dfsg-2.1ubuntu9","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null},{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0 | 9.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"imagemagick","product":"imagemagick","name":"imagemagick","label":"imagemagick","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"7.0.8-50:q16","noFixRecorded":false,"fixedIn":null}],"versionsText":"7.0.8-50:q16","eol":null,"hubHref":"/vendor/imagemagick/imagemagick"},{"vendor":"opensuse","product":"leap","name":"leap","label":"leap","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"15.0","noFixRecorded":false,"fixedIn":null},{"text":"15.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.0 | 15.1","eol":{"isEol":true,"eolDate":"2019-12-03T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"15.0","label":"Leap 15.0","eolFrom":"2019-12-03T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/leap"}],"affectedCount":7,"eol":{"hasEol":true,"count":3},"references":[{"url":"https://github.com/ImageMagick/ImageMagick/issues/1612","label":"github.com/ImageMagick/ImageMagick/issues/1612","hostname":"github.com","tags":["X Refsource MISC","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://github.com/ImageMagick/ImageMagick6/commit/cb5ec7d98195aa74d5ed299b38eff2a68122f3fa","label":"github.com/ImageMagick/ImageMagick6/commit/cb5ec7d98195aa74d5ed299b38eff2a68122f3fa","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/e92040ea6ee2a844ebfd2344174076795a4787bd","label":"github.com/ImageMagick/ImageMagick/commit/e92040ea6ee2a844ebfd2344174076795a4787bd","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/08/msg00021.html","label":"lists.debian.org/debian-lts-announce/2019/08/msg00021.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00069.html","label":"lists.opensuse.org/opensuse-security-announce/2019-08/msg00069.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"https://usn.ubuntu.com/4192-1/","label":"usn.ubuntu.com/4192-1/","hostname":"usn.ubuntu.com","tags":["Vendor Advisory","X Refsource UBUNTU","Third Party Advisory"]},{"url":"https://www.debian.org/security/2020/dsa-4715","label":"www.debian.org/security/2020/dsa-4715","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2019-13306","label":"security.alpinelinux.org/vuln/CVE-2019-13306","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2019-13306","label":"ubuntu.com/security/CVE-2019-13306","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-4192-1","label":"ubuntu.com/security/notices/USN-4192-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-13306","label":"www.cve.org/CVERecord?id=CVE-2019-13306","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-7053-1","label":"ubuntu.com/security/notices/USN-7053-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2019-13306","label":"security-tracker.debian.org/tracker/CVE-2019-13306","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-1888-1","DSA-4712-1","DSA-4715-1","OPENSUSE-SU-2019:1983-1","OPENSUSE-SU-2024:11564-1","RHSA-2020:1180","SUSE-SU-2019:2106-1","USN-4192-1","USN-7053-1"],"duplicates":[],"related":["OPENSUSE-SU-2019:1983-1","OPENSUSE-SU-2024:11564-1","SUSE-SU-2019:2106-1","USN-4192-1","USN-7053-1"]},"timeline":[{"kind":"published","date":"2019-07-05T00:53:29.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T23:49:24.575Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":42,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T17:49:48.262Z","stale":false,"partial":false}}