VulnarioBlogImageMagick vulnerabilities

ImageMagick Vulnerabilities: The 10 Most Critical ImageMagick Security Bugs (CVEs)

ImageMagick vulnerabilities are security flaws in ImageMagick that attackers can abuse to steal data, take over a server or interrupt a service. ImageMagick is a widely used image processing library and toolkit. The National Vulnerability Database (NVD) lists 849 CVEs for ImageMagick, 50 of them rated critical, and 188 were published in the last 12 months. CISA lists 3 of them in its Known Exploited Vulnerabilities (KEV) catalog, which means attackers have used them against real systems.

This guide lists the 10 most critical ImageMagick security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers ImageMagick security basics and a free way to be told about the next ImageMagick CVE as soon as it is published.

Key takeaways

  • 3 CVEs are in CISA's KEV catalog, so attackers have exploited them in the wild.
  • 50 ImageMagick CVEs are rated critical (CVSS v3), and 188 new ones were published in the last 12 months.
  • The newest CVE in this guide is CVE-2026-25897, published Feb 24, 2026.
  • You can monitor ImageMagick for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these ImageMagick CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 10 most critical ImageMagick CVEs at a glance

Most critical ImageMagick vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2016-37148.4 High2016-05-05ImageMagick Improper Input ValidationYes
2CVE-2016-37155.5 Medium2016-05-05ImageMagick Arbitrary File DeletionYes
3CVE-2016-37185.5 Medium2016-05-05ImageMagick Server-Side Request Forgery (SSRF)Yes
4CVE-2026-258979.8 Critical2026-02-24Heap buffer overflowNo
5CVE-2026-259689.8 Critical2026-02-24Stack buffer overflowNo
6CVE-2026-259719.8 Critical2026-02-24Out-of-bounds writeNo
7CVE-2026-259839.8 Critical2026-02-24Use after freeNo
8CVE-2026-259869.8 Critical2026-02-24Out-of-bounds writeNo
9CVE-2026-227709.8 Critical2026-01-20Critical security flawNo
10CVE-2026-238769.8 Critical2026-01-20Heap buffer overflowNo

Each ImageMagick CVE explained

1. CVE-2016-3714: ImageMagick Improper Input Validation

  • CVSS 8.4 High
  • In CISA KEV (added 2024-09-09)
  • Published 2016-05-05
  • CWE-20
What NVD says
The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to execute arbitrary code via shell metacharacters in a crafted image, aka "ImageTragick."
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 6.9.3-9; 7.0.0-0; 7.0.1-0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2016-3714 (opens in a new tab)

2. CVE-2016-3715: ImageMagick Arbitrary File Deletion

  • CVSS 5.5 Medium
  • In CISA KEV (added 2021-11-03)
  • Published 2016-05-05
  • CWE-552
What NVD says
The EPHEMERAL coder in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allows remote attackers to delete arbitrary files via a crafted image.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing no privileges and user interaction. It has high impact on integrity.
Affected versions
before 6.9.3-10; 7.0.0-0; 7.0.1-0
What to do
Upgrade to 6.9.3-10 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2016-3715 (opens in a new tab)

3. CVE-2016-3718: ImageMagick Server-Side Request Forgery (SSRF)

  • CVSS 5.5 Medium
  • In CISA KEV (added 2021-11-03)
  • Published 2016-05-05
  • CWE-918
What NVD says
The (1) HTTP and (2) FTP coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to conduct server-side request forgery (SSRF) attacks via a crafted image.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing no privileges and user interaction. It has high impact on integrity.
Affected versions
before 6.9.3-10; 7.0.0-0; 7.0.1-0
What to do
Upgrade to 6.9.3-10 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2016-3718 (opens in a new tab)

4. CVE-2026-25897: Heap buffer overflow

  • CVSS 9.8 Critical
  • Published 2026-02-24
  • CWE-122
What NVD says
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, an Integer Overflow vulnerability exists in the sun decoder. On 32-bit systems/builds, a carefully crafted image can lead to an out of bounds heap write. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 6.9.13-40; 7.0.0-0 to before 7.1.2-15
What to do
Upgrade to the fixed release for your branch (6.9.13-40, 7.1.2-15) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-25897 (opens in a new tab)

5. CVE-2026-25968: Stack buffer overflow

  • CVSS 9.8 Critical
  • Published 2026-02-24
  • CWE-121
What NVD says
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a stack buffer overflow occurs when processing the an attribute in msl.c. A long value overflows a fixed-size stack buffer, leading to memory corruption. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 6.9.13-40; 7.0.0-0 to before 7.1.2-15
What to do
Upgrade to the fixed release for your branch (6.9.13-40, 7.1.2-15) or a later one, then restart the service.

NVD record for CVE-2026-25968 (opens in a new tab)

6. CVE-2026-25971: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2026-02-24
  • CWE-674
What NVD says
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, Magick fails to check for circular references between two MSLs, leading to a stack overflow. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 6.9.13-40; 7.0.0-0 to before 7.1.2-15
What to do
Upgrade to the fixed release for your branch (6.9.13-40, 7.1.2-15) or a later one, then restart the service.

NVD record for CVE-2026-25971 (opens in a new tab)

7. CVE-2026-25983: Use after free

  • CVSS 9.8 Critical
  • Published 2026-02-24
  • CWE-416
What NVD says
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a crafted MSL script triggers a heap-use-after-free. The operation element handler replaces and frees the image while the parser continues reading from it, leading to a UAF in ReadBlobString during further parsing. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 6.9.13-40; 7.0.0-0 to before 7.1.2-15
What to do
Upgrade to the fixed release for your branch (6.9.13-40, 7.1.2-15) or a later one, then restart the service.

NVD record for CVE-2026-25983 (opens in a new tab)

8. CVE-2026-25986: Out-of-bounds write

  • CVSS 9.8 Critical
  • Published 2026-02-24
  • CWE-787
What NVD says
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, a heap buffer overflow write vulnerability exists in ReadYUVImage() (coders/yuv.c) when processing malicious YUV 4:2:2 (NoInterlace) images. The pixel-pair loop writes one pixel beyond the allocated row buffer. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 6.9.13-40; 7.0.0-0 to before 7.1.2-15
What to do
Upgrade to the fixed release for your branch (6.9.13-40, 7.1.2-15) or a later one, then restart the service.

NVD record for CVE-2026-25986 (opens in a new tab)

9. CVE-2026-22770: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2026-01-20
  • CWE-763
What NVD says
ImageMagick is free and open-source software used for editing and manipulating digital images. The BilateralBlurImage method will allocate a set of double buffers inside AcquireBilateralTLS. But, in versions prior to 7.1.2-13, the last element in the set is not properly initialized. This will result in a release of an invalid pointer inside DestroyBilateralTLS when the memory allocation fails.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 7.1.2-13
What to do
Upgrade to 7.1.2-13 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-22770 (opens in a new tab)

10. CVE-2026-23876: Heap buffer overflow

  • CVSS 9.8 Critical
  • Published 2026-01-20
  • CWE-122
What NVD says
ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-13 and 6.9.13-38, a heap buffer overflow vulnerability in the XBM image decoder (ReadXBMImage) allows an attacker to write controlled data past the allocated heap buffer when processing a maliciously crafted image file.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 6.9.13-38; 7.0.0-0 to before 7.1.2-13
What to do
Upgrade to the fixed release for your branch (6.9.13-38, 7.1.2-13) or a later one, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2026-23876 (opens in a new tab)

How to check if your ImageMagick is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

convert -version

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

ImageMagick security checklist

  1. Update through your distribution's package manager and restart services that load the library.
  2. Do not feed untrusted input to the tool without validation or sandboxing.
  3. Track where it is embedded in your software, since many applications bundle their own copy.
  4. Run processing jobs as an unprivileged user with limited resources.

Where you run ImageMagick matters as much as how you patch it. Whether your site lives on a VPS, a dedicated server or shared hosting (opens in a new tab), check who is responsible for updating ImageMagick: on most plans the operating system and applications are yours to patch unless the plan says otherwise.

Your stack is bigger than ImageMagick. A flaw anywhere in the chain can be the way in, so also review our guides to PHP vulnerabilities, Ghostscript vulnerabilities and FFmpeg vulnerabilities.

How to get alerted about new ImageMagick vulnerabilities

NVD received 188 new ImageMagick CVEs in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose ImageMagick and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run ImageMagick alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about ImageMagick vulnerabilities

What are the most critical ImageMagick vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical ImageMagick CVEs include CVE-2016-3714 (CVSS 8.4), CVE-2016-3715 (CVSS 5.5), CVE-2016-3718 (CVSS 5.5). The guide above ranks the 10 most critical with affected versions and fixes.

Have ImageMagick vulnerabilities been exploited in real attacks?

Yes. CISA's Known Exploited Vulnerabilities (KEV) catalog lists 3 ImageMagick CVEs, including CVE-2016-3714, CVE-2016-3715, CVE-2016-3718. Treat these as the highest priority to patch.

How many vulnerabilities does ImageMagick have?

As of Nov 3, 2026 the National Vulnerability Database lists 849 CVEs for ImageMagick, with 50 rated critical by CVSS v3. 188 were published in the previous twelve months.

How do I check which ImageMagick version I run?

Run convert -version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new ImageMagick CVE is published?

Add ImageMagick to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose ImageMagick and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is ImageMagick secure?

ImageMagick is as secure as its patch level. NVD published 188 new ImageMagick CVEs in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2016-3714?

CVE-2016-3714 is a high ImageMagick vulnerability with a CVSS score of 8.4, published May 5, 2016. The (1) EPHEMERAL, (2) HTTPS, (3) MVG, (4) MSL, (5) TEXT, (6) SHOW, (7) WIN, and (8) PLT coders in ImageMagick before 6.9.3-10 and 7.x before 7.0.1-1 allow remote attackers to execute arbitrary code via shell metacharacters in a crafted image, aka "ImageTragick."

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.