Back to blog
CVEMicrosoftBingSVGcommand injectionAI agents

Bing Images CVE-2026-32194: SVG command injection

Published on 2026-07-24 · Updated on 2026-10-294 min read
In short: CVE-2026-32194 and CVE-2026-32191 are two command injections rated CVSS 9.8 in Bing's image-processing tier. A crafted SVG, sent through image search or fetched by the crawler, made the worker run a command, as NT AUTHORITY\SYSTEM on Windows and as root on Linux. XBOW reported them privately; Microsoft fixed them server-side before the advisories of March 19, 2026, and the technical details came out on July 23. Customers had nothing to do.

What exactly happened?

According to The Hacker News, XBOW, an autonomous offensive-security startup, found two routes to the same defect. CVE-2026-32194 (CWE-77) goes through the public "Search by Image" feature: the SVG is sent base64-encoded in the imageBin field to /images/kblob. CVE-2026-32191 (CWE-78) goes through the crawler: the attacker hosts an SVG and supplies its URL in the imgurl parameter, and bingbot/2.0 fetches it. No authentication, cookie or user interaction was needed. Microsoft recorded no exploitation when the advisories were published.

The payload was a one-pixel SVG containing an image reference that began with a pipe character (|). A conversion layer handed that reference to a shell through an external "delegate" program instead of treating it as a filename. The command output was sent back to a collector controlled by XBOW.

Is this really an SVG parsing flaw?

No, it is a command injection in a conversion layer. The article does not name ImageMagick as Bing's component, but it explicitly compares the mechanism to ImageTragick (CVE-2016-3714), where a crafted filename also triggered a delegate. The nuance matters for defense: hardening an XML parser is not enough if a second component passes strings taken from the file to a shell.

Who is affected?

Bing users had nothing to patch: the advisories say "no customer action to resolve", since the vulnerable code ran only at Microsoft. The tested workers ran Windows Server 2022 Datacenter with SeImpersonatePrivilege and SeDebugPrivilege enabled, and root on Linux, across several hosts and network ranges. XBOW says it ran only harmless read-only commands.

You are exposed to the bug class if your product converts, resizes or analyzes third-party files with ImageMagick, Ghostscript, FFmpeg, LibreOffice or any command-line tool.

How do you detect or test this kind of flaw?

To test your own pipeline, use a test environment and a collector domain you control:

  1. List every place where a user-supplied file or URL reaches a converter (avatars, previews, document import, link thumbnails).
  2. Submit a harmless file whose internal reference points at your collector, and watch whether the worker makes an outbound request.
  3. Look for 500 errors that coincide with an outbound request: XBOW noticed workers returning errors while still fetching and parsing the file, a sign of a downstream component.
  4. Check the converter policy: with ImageMagick, policy.xml should deny delegates and restrict accepted formats.
  5. In production, alert on unexpected child processes of an image worker, its outbound connections and new files in its working directory.

How do you fix and harden?

Microsoft's fix was server-side. On your side, the article's recommendations converge:

  • Deny delegates in policy.xml and allow only the formats you need.
  • Isolate conversion in a container or sandbox with no outbound network access.
  • Run the worker with a least-privilege account, never root or SYSTEM.
  • Restrict server-side fetch destinations with an allowlist.
  • Sanitize SVG server-side before any processing, and never render it inline on your domain unfiltered.

What changes when an AI agent is in the picture?

An AI agent that can drop, generate or fetch files turns this local bug into an automatable chain. Points to examine:

  • The agent as a conveyor belt. An agent that downloads an image or document from a web page, an email or a knowledge base and passes it to a converter runs the attacker's file without knowing it. The attacker no longer needs the upload interface: placing the file where the agent will fetch it is enough. This is the pattern of indirect prompt injection.
  • Conversion tools exposed as agent tools. If an agent has a "convert this file" or "generate a thumbnail" tool, its arguments are text chosen by the model, so potentially by the attacker. A string like |command in a filename becomes an indirect command injection vector.
  • Secrets in context and environment. A worker compromised as SYSTEM reads environment variables, tokens and API keys. If the same host holds the agent or its credentials (model keys, calendar tokens, mailbox access), a booby-trapped file becomes control of the agent's actions.
  • Automatic actions. An agent that sends emails, opens tickets or edits documents after processing a file can spread the compromise without human approval. This is the risk area OWASP describes as LLM06 (Excessive Agency).
  • No readable trace. Logs show "the agent converted a file", not an injected command. Log the exact arguments passed to tools.

To reduce the risk, give the agent narrow tools (one format, a maximum size, no free-form argument), run conversion in a sandbox without network, and require human approval for any action outside the intended scope. The attack vectors are detailed in our pages on AI agent security and MCP security.

How do you test this risk on an AI agent?

An agent test follows the approach above: booby-trapped files are placed in the sources the agent reads (emails, shared documents, web pages), we observe which tools it calls with which arguments, and we check whether an unplanned command or action comes out. On the offer side, the Agent Red Team Express drops booby-trapped files into the agent's sources and tracks the arguments reaching the conversion tool (5 days, 1,900 euros). To start, a free 30-minute discovery call lets us examine which file formats your agent converts and with which arguments.

Does your product ship an AI agent? CleanIssue tests what a stranger can make it do with the Agent Red Team Express (5 days, €1,900), or a custom red team for several agents and MCP servers. First step: a free 30-minute discovery call.

Know what your agent can do before an attacker does.

A free 30-minute discovery call: you describe your agent, I tell you what I would test and what it costs. Five case studies are published.

Book a call