Safeguard
Vulnerability Analysis•

CVE-2026-22770: ImageMagick Invalid Pointer Free Before 7.1.2-13

CVE-2026-22770 is a medium flaw (CVSS 6.5) in ImageMagick BilateralBlurImage before 7.1.2-13. Update to 7.1.2-13 or later and check your distro package.

Safeguard Security Team
2 min read

CVE-2026-22770 is a medium severity flaw (CVSS 6.5) in ImageMagick, in the BilateralBlurImage method. A buffer is left uninitialized, so a failed memory allocation leads to freeing an invalid pointer. It affects versions before 7.1.2-13. Update to 7.1.2-13 or later.

What's affected

ImageMagick versions before 7.1.2-13. The fixed version is 7.1.2-13.

The advisory describes the cause as the last element of a set of double buffers not being initialised in AcquireBilateralTLS, which DestroyBilateralTLS then frees when an allocation fails.

How to check if you're exposed

Print the version.

magick -version
convert -version

The first works on ImageMagick 7, and the second on older installs. Also check bundled copies: some apps and containers carry their own ImageMagick, and Linux distributions often backport fixes without changing the version string, so read your distribution advisory.

What to do now

  1. Update ImageMagick to 7.1.2-13 or later, or install the distribution package that includes the fix.
  2. Rebuild container images that bundle ImageMagick, and redeploy them.
  3. If you process untrusted images, keep resource limits in place with the policy file.
  4. Search your applications for libraries that wrap or call ImageMagick.
  5. Run a dependency scan to find copies you did not know about.

Why it matters

The weakness is CWE-763, release of an invalid pointer or reference. The failure only occurs when memory allocation fails, which explains the high attack complexity in the vector. The impact is rated as low for integrity and high for availability.

ImageMagick is widely embedded, so the useful question is where it runs in your estate and whether it handles input from outside. The record does not say the flaw is exploited in the wild, and it is not on the CISA KEV list.

Quick check

Do I need ImageMagick installed to be exposed?

Applications and images can bundle it. A software inventory shows where it is present.

Does a distro package show 7.1.2-13?

Not always. Distributions may backport the fix under an older version number, so check the distribution advisory.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.