mediumCVE-2026-61861

CVE-2026-61861 ImageMagick Use-After-Free Vulnerability

ImageMagick before 7.1.2-26 contains a use-after-free vulnerability in the FormatMagickCaption method when memory allocation fails. Attackers can trigger memory allocation failures to cause a dangling pointer to reference freed memory, potentially enabling denial of service or code execution.

ProductImageMagick
CVSS6.3
EPSS0.00323
UpdatedJuly 15, 2026

Quick answer

ImageMagick should be reviewed and updated if it matches the affected versions. The recommended fix is to apply the vendor-supported patched version or the mitigation steps below, then retest the public website with Fixnx.

Who is affected

Affected versions

  • < 6.9.13-51
  • >= 7.0.0-0, < 7.1.2-26

Fixed versions

  • 6.9.13-51
  • 7.1.2-26

How to fix it

ImageMagick is affected by this security issue. The safest fix is to update to the fixed version, then test the site or service again to make sure the risky path is closed.

  1. Find every place where ImageMagick is installed or used.
  2. Update to 6.9.13-51, 7.1.2-26 or a later vendor-supported version.
  3. Back up the site or service before changing production systems.
  4. Apply the update in staging first if possible, then deploy it to production.
  5. If you cannot update right away, restrict access to the affected feature and monitor logs closely.

Scan now. Google sign-in is only needed to unlock fix guidance.

Verify the fix

  • Confirm the installed version is no longer in the affected range.
  • Retest the affected page, API, upload, login, or document flow.
  • Check logs after the change for blocked attempts or errors.
  • Run a fresh Fixnx scan and save the report.

Related categories

Trusted references

FAQ

What is affected by CVE-2026-61861?

ImageMagick versions listed as affected should be reviewed: < 6.9.13-51, >= 7.0.0-0, < 7.1.2-26.

What should I fix first?

Start with internet-facing sites, admin panels, login flows, plugins, themes, modules, packages, and systems that process user-controlled input or sensitive data.

How do I confirm the fix worked?

Apply the patched version or mitigation, clear caches where relevant, retest the affected workflow, and run a new Fixnx scan to verify public website exposure signals.

How are Fixnx security risk categories chosen?

Fixnx keeps one canonical risk page and assigns only broad, relevant categories such as ecosystem, technology area, or vulnerability class.