CVE-2018-18025
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function...
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
- Record
CVE-2018-18025- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-125
- Updated
- 2026-11-02
CVE List No score
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
- Record
CVE-2018-18025- Updated
- 2026-11-02
EUVDEUVD-2018-9764 No score
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
- Record
EUVD-2018-9764- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-mvr7-hfrr-v3v5
6.5
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function...
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
- Record
GHSA-mvr7-hfrr-v3v5- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-125
- Updated
- 2026-11-02
OSVALPINE-CVE-2018-18025
6.5
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
- Record
ALPINE-CVE-2018-18025- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
6.5
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
- Record
CVE-2018-18025- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 4 moreShow less
OSVDEBIAN-CVE-2018-18025
6.5
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
- Record
DEBIAN-CVE-2018-18025- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2018-18025
6.5
In ImageMagick 7.0.8-13 Q16, there is a heap-based buffer over-read in the EncodeImage function of coders/pict.c, which allows attackers to cause a denial of service via a crafted SVG image file.
- Record
UBUNTU-CVE-2018-18025- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUSN-4034-1 No score
imagemagick vulnerabilities
It was discovered that ImageMagick incorrectly handled certain malformed image files. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service or possibly execute code with the privileges of the user invoking the program.
Due to a large number of issues discovered in GhostScript that prevent it from being used by ImageMagick safely, the update for Ubuntu 18.10 and Ubuntu 19.04 includes a default policy change that disables support for the Postscript and PDF formats in ImageMagick. This policy can be overridden if necessary by using an alternate ImageMagick policy configuration.
- Record
USN-4034-1- Updated
- 2026-11-02
OSVUSN-6980-1 No score
imagemagick vulnerabilities
It was discovered that ImageMagick incorrectly handled certain malformed image files. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service or possibly execute code with the privileges of the user invoking the program.
- Record
USN-6980-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
imagemagick6Alpine:v3.10 |
before 6.9.10.37-r0 | 6.9.10.37-r0 |
imagemagick6Alpine:v3.11 |
before 6.9.10.37-r0 | 6.9.10.37-r0 |
imagemagick6Alpine:v3.12 |
before 6.9.10.37-r0 | 6.9.10.37-r0 |
imagemagick6Alpine:v3.13 |
before 6.9.10.37-r0 | 6.9.10.37-r0 |
imagemagick6Alpine:v3.14 |
before 6.9.10.37-r0 | 6.9.10.37-r0 |
imagemagick6Alpine:v3.15 |
before 6.9.10.37-r0 | 6.9.10.37-r0 |
imagemagick6Alpine:v3.16 |
before 6.9.10.37-r0 | 6.9.10.37-r0 |
imagemagick6Alpine:v3.7 |
before 6.9.10.39-r0 | 6.9.10.39-r0 |
imagemagick6Alpine:v3.8 |
before 6.9.10.39-r0 | 6.9.10.39-r0 |
imagemagick6Alpine:v3.9 |
before 6.9.10.39-r0 | 6.9.10.39-r0 |
Show 8 moreShow less
| Package | Affected | Fixed |
|---|---|---|
imagemagickDebian:12 |
before 8:6.9.10.14+dfsg-1 | 8:6.9.10.14+dfsg-1 |
imagemagickDebian:13 |
before 8:6.9.10.14+dfsg-1 | 8:6.9.10.14+dfsg-1 |
imagemagickDebian:14 |
before 8:6.9.10.14+dfsg-1 | 8:6.9.10.14+dfsg-1 |
imagemagickDebian:8 |
before 8:6.8.9.9-5+deb8u15, plus listed versions 8:6.8.9.9-58:6.8.9.9-5+deb8u18:6.8.9.9-5+deb8u108:6.8.9.9-5+deb8u118:6.8.9.9-5+deb8u12 Show 10 moreShow less8:6.8.9.9-5+deb8u138:6.8.9.9-5+deb8u148:6.8.9.9-5+deb8u28:6.8.9.9-5+deb8u38:6.8.9.9-5+deb8u48:6.8.9.9-5+deb8u58:6.8.9.9-5+deb8u68:6.8.9.9-5+deb8u78:6.8.9.9-5+deb8u88:6.8.9.9-5+deb8u9 |
8:6.8.9.9-5+deb8u15 |
imagemagickDebian:9 |
before 8:6.9.7.4+dfsg-11+deb9u10, plus listed versions 8:6.9.7.4+dfsg-118:6.9.7.4+dfsg-11+deb9u18:6.9.7.4+dfsg-11+deb9u28:6.9.7.4+dfsg-11+deb9u38:6.9.7.4+dfsg-11+deb9u4 Show 5 moreShow less8:6.9.7.4+dfsg-11+deb9u58:6.9.7.4+dfsg-11+deb9u68:6.9.7.4+dfsg-11+deb9u78:6.9.7.4+dfsg-11+deb9u88:6.9.7.4+dfsg-11+deb9u9 |
8:6.9.7.4+dfsg-11+deb9u10 |
imagemagickUbuntu:Pro:14.04:LTS |
before 8:6.7.7.10-6ubuntu3.13+esm8, plus listed versions 8:6.7.7.10-5ubuntu38:6.7.7.10-5ubuntu48:6.7.7.10-6ubuntu18:6.7.7.10-6ubuntu28:6.7.7.10-6ubuntu3 Show 19 moreShow less8:6.7.7.10-6ubuntu3.18:6.7.7.10-6ubuntu3.28:6.7.7.10-6ubuntu3.38:6.7.7.10-6ubuntu3.48:6.7.7.10-6ubuntu3.58:6.7.7.10-6ubuntu3.68:6.7.7.10-6ubuntu3.78:6.7.7.10-6ubuntu3.88:6.7.7.10-6ubuntu3.98:6.7.7.10-6ubuntu3.118:6.7.7.10-6ubuntu3.128:6.7.7.10-6ubuntu3.138:6.7.7.10-6ubuntu3.13+esm18:6.7.7.10-6ubuntu3.13+esm28:6.7.7.10-6ubuntu3.13+esm38:6.7.7.10-6ubuntu3.13+esm48:6.7.7.10-6ubuntu3.13+esm58:6.7.7.10-6ubuntu3.13+esm68:6.7.7.10-6ubuntu3.13+esm7 |
8:6.7.7.10-6ubuntu3.13+esm8 |
imagemagickUbuntu:16.04:LTS |
before 8:6.8.9.9-7ubuntu5.14, plus listed versions 8:6.8.9.9-5ubuntu28:6.8.9.9-68:6.8.9.9-6build18:6.8.9.9-78:6.8.9.9-7ubuntu1 Show 16 moreShow less8:6.8.9.9-7ubuntu28:6.8.9.9-7ubuntu38:6.8.9.9-7ubuntu48:6.8.9.9-7ubuntu58:6.8.9.9-7ubuntu5.18:6.8.9.9-7ubuntu5.28:6.8.9.9-7ubuntu5.38:6.8.9.9-7ubuntu5.48:6.8.9.9-7ubuntu5.58:6.8.9.9-7ubuntu5.68:6.8.9.9-7ubuntu5.78:6.8.9.9-7ubuntu5.88:6.8.9.9-7ubuntu5.98:6.8.9.9-7ubuntu5.118:6.8.9.9-7ubuntu5.128:6.8.9.9-7ubuntu5.13 |
8:6.8.9.9-7ubuntu5.14 |
imagemagickUbuntu:18.04:LTS |
before 8:6.9.7.4+dfsg-16ubuntu6.7, plus listed versions 8:6.9.7.4+dfsg-16ubuntu28:6.9.7.4+dfsg-16ubuntu38:6.9.7.4+dfsg-16ubuntu48:6.9.7.4+dfsg-16ubuntu58:6.9.7.4+dfsg-16ubuntu68:6.9.7.4+dfsg-16ubuntu6.28:6.9.7.4+dfsg-16ubuntu6.38:6.9.7.4+dfsg-16ubuntu6.4 |
8:6.9.7.4+dfsg-16ubuntu6.7 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2018-18025 is a medium vulnerability (CVSS 6.5) in Imagemagick, published October 7, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.54%, the 85th percentile. Fixed in imagemagick6 6.9.10.37-r0.
References
lists.debian.org/debian-lts-announce/2018/11/msg00014.html
github.com/ImageMagick/ImageMagick/issues/1335
usn.ubuntu.com/4034-1
lists.debian.org/debian-lts-announce/2020/09/msg00007.html
nvd.nist.gov/vuln/detail/CVE-2018-18025
github.com/advisories/GHSA-mvr7-hfrr-v3v5
Show 36 moreShow less
security.alpinelinux.org/vuln/CVE-2018-18025
security-tracker.debian.org/tracker/CVE-2018-18025
ubuntu.com/security/CVE-2018-18025
ubuntu.com/security/notices/USN-4034-1
cve.org/CVERecord?id=CVE-2018-18025
ubuntu.com/security/notices/USN-6980-1
ubuntu.com/security/CVE-2017-12805
ubuntu.com/security/CVE-2017-12806
ubuntu.com/security/CVE-2018-14434
ubuntu.com/security/CVE-2018-15607
ubuntu.com/security/CVE-2018-16323
ubuntu.com/security/CVE-2018-16412
ubuntu.com/security/CVE-2018-16413
ubuntu.com/security/CVE-2018-16644
ubuntu.com/security/CVE-2018-16645
ubuntu.com/security/CVE-2018-17965
ubuntu.com/security/CVE-2018-17966
ubuntu.com/security/CVE-2018-18016
ubuntu.com/security/CVE-2018-18023
ubuntu.com/security/CVE-2018-18024
ubuntu.com/security/CVE-2018-18544
ubuntu.com/security/CVE-2018-20467
ubuntu.com/security/CVE-2019-7175
ubuntu.com/security/CVE-2019-7395
ubuntu.com/security/CVE-2019-7396
ubuntu.com/security/CVE-2019-7397
ubuntu.com/security/CVE-2019-7398
ubuntu.com/security/CVE-2019-9956
ubuntu.com/security/CVE-2019-10131
ubuntu.com/security/CVE-2019-10649
ubuntu.com/security/CVE-2019-10650
ubuntu.com/security/CVE-2019-11470
ubuntu.com/security/CVE-2019-11472
ubuntu.com/security/CVE-2019-11597
ubuntu.com/security/CVE-2019-11598
ubuntu.com/security/CVE-2017-13144