NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · vLLM

CVE-2026-12491: vLLM: image EXIF Rotation & PNG tRNS Transparency Not Normalized, Causing Mismatch Between Model Input and Expectations

mediumCVSS 3.1 4.8GHSA-8jr5-v98p-w75m

vLLM versions 0.11.0 up to but not including 0.24.0 do not normalize EXIF rotation or flatten PNG tRNS transparency before an image reaches a vision model. The model can see a different picture from the one a person sees, so a crafted image can carry content that is hidden from human reviewers. This is a medium-severity input-handling flaw. Upgrade to 0.24.0.

Published Jun 17, 2026 · Updated Jul 17, 2026 · Analysis Oct 26, 2026

What an attacker can do

vLLM's image loading in vllm/multimodal/image.py had two gaps. It never called ImageOps.exif_transpose after opening an image, so a JPEG stored upside down with an EXIF orientation tag is shown to a person the right way up but to the model rotated. And only RGBA images were composited against a background. PNGs in P, L or RGB mode with a tRNS chunk fell to a bare image.convert("RGB"), which turns transparent pixels into solid colors. Overlay elements that are invisible to a human can appear to the model. The reporter also noted that Pillow loads only the first frame of APNG and GIF files.

The attacker only needs to get an image to a vision model served by vLLM, for example through an upload or an image URL in a chat request. No privileges are needed, but the CVSS vector rates attack complexity as high. The effect is on integrity: hidden text or content in the image can steer the model's answer, as in prompt injection through images. It does not give code execution or data access by itself.

Who is affected

The vllm pip package from 0.11.0 up to but not including 0.24.0. The issue matters only when you serve multimodal models and accept images from users or from the web. Check:

pip show vllm

Text-only deployments do not process images and are not affected in practice.

vllm

Ecosystem
PyPI
Affected
>= 0.11.0, < 0.24.0
Fixed in
0.24.0
Check
pip show vllm

How to fix it

Upgrade to vLLM 0.24.0:

pip install --upgrade "vllm>=0.24.0"

The fix is pull request #44974, merged into main on June 9, 2026 as commit cf1c906. It calls ImageOps.exif_transpose right after Image.open in ImageMediaIO.load_bytes. It also adds a transparency check so that convert_image_mode() composites transparent P, L and RGB images against the configured rgba_background_color before converting to RGB. The advisory lists no workaround. Pre-processing untrusted images at a gateway to apply EXIF rotation and flatten transparency would match the fix, though no source recommends it.

How to tell if you were hit

There is no log line for this. Compare how an uploaded image looks to a person with how the pipeline renders it: open it with ImageOps.exif_transpose applied, and flatten any PNG with a tRNS chunk against a white or black background. Images that differ sharply, or that contain EXIF orientation tags of 180 degrees or PNG transparency hiding content, are suspicious. Review model outputs that describe content the reviewer cannot see in the original image.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Issue 1: EXIF orientation not normalized → The image orientation processed by the model differs from how humans view it, introducing interpretation bias.

Issue 2: PNG tRNS not explicitly flattened before converting to RGB → After conversion, transparent/semi-transparent pixels are rendered unexpectedly, making otherwise subtle overlay elements visible and distorting the input content. (This attack is similar to AlphaDog: RGBA handling is already correct in vLLM, but since tRNS permits RGB images, the correct processing path isn’t taken.)

Issue 3 : Pillow only loads the first frame when loading APNG or GIF files.

---

Root Cause

  • Rotation: After opening an image, ImageOps.exif_transpose is not called to normalize EXIF orientation.
  • Transparency: Only RGBA→RGB is flattened with a background; PNGs carrying `tRNS` in `P`/`L`/`RGB + tRNS` and other non-RGBA modes take the image.convert("RGB") path, which implicitly discards/remaps transparency semantics.

---

Affected Code

https://github.com/vllm-project/vllm/blob/16b37f3119918c1e5a39f303e0d0892c65c07a90/vllm/multimodal/image.py#L77-L84

https://github.com/vllm-project/vllm/blob/16b37f3119918c1e5a39f303e0d0892c65c07a90/vllm/multimodal/image.py#L37-L43

https://github.com/vllm-project/vllm/blob/16b37f3119918c1e5a39f303e0d0892c65c07a90/vllm/multimodal/image.py#L26-L34 > Current state: ImageOps.exif_transpose is not used. (Although the rescale_image_size function (https://github.com/vllm-project/vllm/blob/main/vllm/multimodal/image.py#L14) exists and includes a transpose parameter, I’ve found that it doesn’t seem to be called anywhere outside the test directory.)

Call order: _convert_image_mode runs first; if the conditions are met, convert_image_mode is called. > > Issue: Only the “RGBA → RGB” path is explicitly flattened. P, L, or RGB with tRNS all fall back to image.convert("RGB"). For PNGs that include tRNS, convert("RGB") directly produces 24-bit RGB, leading to: > > * `P` mode: The transparent index becomes an actual RGB color (often black, white, or an undefined background), so transparency is lost. > * `L/LA` and `RGB + tRNS`: convert("RGB") doesn’t composite against a chosen background first, so elements that relied on transparency to be hidden or softened become solid.

Impact & Scope

  • Impact: Pixels the model sees can diverge from operator expectations (due to orientation or transparency handling), potentially altering downstream reasoning.
  • Scope: The image I/O and mode-conversion paths in vllm/multimodal/image.py. The existing RGBA→RGB flattening is correct; the issues center on missing EXIF normalization and non-RGBA `tRNS` not being explicitly composited.

Case

EXIF: http://qiniu.funxingzuo.top/exif_orient_180.jpg tRNS: http://qiniu.funxingzuo.top/hello.png

Fix

A fix for this vulnerability was merged here: https://github.com/vllm-project/vllm/pull/44974

Credited to kexinoh, russellb, jperezdealgaba, DarkLight1337.

Questions

Does this allow code execution on the vLLM server?

No. The flaw makes the model see an image differently from a human. The effect is on integrity of the model's input, not on the server. The CVSS vector shows low integrity and availability impact.

Which vLLM versions are affected by CVE-2026-12491?

0.11.0 up to but not including 0.24.0. Version 0.24.0 contains the fix.

Does it only concern PNGs?

No. Two issues are in scope: EXIF orientation in JPEGs and tRNS transparency in PNGs. The reporter also notes Pillow reads only the first frame of APNG and GIF files.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More vLLM vulnerabilities

All vLLM entries