Skip to main content
Vulnerability Database/CVE-2026-109266

CVE-2026-109266: ImageMagick CIP Encoder XXE Vulnerability

CVE-2026-109266 is an XML injection flaw in ImageMagick that allows attackers to inject arbitrary markup into CIP format output. This post explains the technical details, affected versions, security impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-109266 Overview

CVE-2026-109266 is an XML injection vulnerability in ImageMagick's Cisco IP Phone (CIP) encoder. The flaw affects ImageMagick versions prior to 6.9.13-57 and 7.x versions prior to 7.1.2-32. The CIP encoder fails to properly escape input-derived data when writing Cisco IP Phone XML output. An attacker can supply a crafted image file that, upon conversion to CIP format, injects arbitrary markup into the generated XML document. The weakness is classified under CWE-79, covering improper neutralization of input during web page generation.

Critical Impact

Attackers can inject arbitrary XML markup into CIP output consumed by Cisco IP Phones, enabling downstream content manipulation of phone displays.

Affected Products

  • ImageMagick versions before 6.9.13-57
  • ImageMagick 7.x versions before 7.1.2-32
  • Applications and services that invoke the CIP encoder on untrusted input

Discovery Timeline

  • 2026-10-12 - CVE-2026-109266 published to the National Vulnerability Database
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-109266

Vulnerability Analysis

The vulnerability resides in coders/cip.c, the CIP encoder module responsible for emitting Cisco IP Phone XML output. The encoder writes attacker-controllable metadata, specifically the image title, directly into the XML document without escaping reserved characters. When an attacker supplies a crafted source image whose title field contains XML metacharacters such as <, >, &, or quote delimiters, the resulting CIP output contains unintended markup. Any downstream consumer parsing the generated XML, such as a Cisco IP Phone endpoint, processes the injected elements as structural markup rather than literal text.

Root Cause

The root cause is the absence of XML entity escaping in the CIP encoder write path. The patched version introduces inclusion of the xml-tree helpers so that string data is sanitized before being written. Without this escaping routine, user-controlled fields propagate directly into the XML stream.

Attack Vector

Exploitation requires an attacker to deliver a crafted image file to a target workflow that uses ImageMagick to convert images into CIP format. The injection then surfaces in the generated XML consumed by the target application or device. No authentication or user interaction is required at the ImageMagick processing stage.

c
// Patched header include in coders/cip.c (ImageMagick 7.x)
 #include "MagickCore/string_.h"
 #include "MagickCore/module.h"
 #include "MagickCore/utility.h"
+#include "MagickCore/xml-tree-private.h"
 
 /*
   Forward declarations.
*/
// Source: https://github.com/ImageMagick/ImageMagick/commit/45bb7328b36c163234f5ccb7f1d494b7c4c8c775

The patch adds the xml-tree-private.h header so that the encoder can call escaping helpers on the title string prior to emission. The equivalent fix for the 6.x branch adds magick/xml-tree.h. See the GitHub ImageMagick6 commit for the ImageMagick 6 patch.

Detection Methods for CVE-2026-109266

Indicators of Compromise

  • Image files whose embedded title or metadata contain XML metacharacters such as <, >, &, or stray </Title> closing tags
  • CIP output files containing nested or unexpected XML elements that do not correspond to legitimate Cisco IP Phone schema fields
  • convert or magick command-line invocations targeting the cip: output coder with untrusted inputs

Detection Strategies

  • Inventory ImageMagick installations and compare installed versions against 6.9.13-57 and 7.1.2-32
  • Audit application pipelines for use of the CIP coder and flag any path where image titles originate from untrusted sources
  • Parse generated CIP XML files and validate structure against the expected Cisco IP Phone schema to surface injected elements

Monitoring Recommendations

  • Log all ImageMagick conversion operations that produce cip output, including source filename and resolved coder
  • Alert on process executions where convert or magick is invoked with user-supplied content and a CIP destination
  • Track package manager updates to confirm ImageMagick remains patched across build and runtime hosts

How to Mitigate CVE-2026-109266

Immediate Actions Required

  • Upgrade ImageMagick to 6.9.13-57 or later for the 6.x branch, or 7.1.2-32 or later for the 7.x branch
  • Identify services that accept untrusted images and emit CIP output, and temporarily disable the CIP coder until patched
  • Validate and sanitize image metadata, specifically the title field, before passing files to ImageMagick

Patch Information

The fix is applied in coders/cip.c and escapes the title string before writing it into the Cisco IP Phone XML output. Refer to the GitHub Security Advisory GHSA-3429-f84m-8qhw and the VulnCheck Advisory on ImageMagick for complete remediation details.

Workarounds

  • Disable the CIP coder in ImageMagick policy.xml to block conversion to the vulnerable output format
  • Strip or sanitize image title metadata before processing with ImageMagick
  • Restrict ImageMagick processing to trusted inputs only, blocking user-uploaded content from reaching the CIP encoder
bash
# Example policy.xml entry to block the CIP coder
# Place within the <policymap> section of /etc/ImageMagick-7/policy.xml
<policy domain="coder" rights="none" pattern="CIP" />

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.