CVE-2026-12491: vLLM: image EXIF Rotation & PNG tRNS Transparency Not Normalized, Causing Mismatch Between Model Input and Expectations
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 vllmText-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_transposeis 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
Read for this analysis:
- https://github.com/vllm-project/vllm/security/advisories/GHSA-8jr5-v98p-w75m
- https://github.com/vllm-project/vllm/pull/44974
- https://github.com/vllm-project/vllm/commit/cf1c90672404548aa3bc51f92c4745576a65ee26
- https://nvd.nist.gov/vuln/detail/CVE-2026-12491
- https://access.redhat.com/security/cve/CVE-2026-12491
- https://bugzilla.redhat.com/show_bug.cgi?id=2489786
- https://github.com/advisories/GHSA-8jr5-v98p-w75m
- https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2026-3406.yaml
- https://github.com/vllm-project/vllm
- https://pypi.org/project/vllm
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 entriesCVE-2026-115911
vLLM: DoS via unbounded chat_template Jinja2 rendering exhausts the renderer thread pool
medium6.5Oct 28, 2026CVE-2026-115912
vLLM: Public multimodal SHM handle forgery reaches worker-side `pickle.loads()` with insecure serialization disabled
high7.5Oct 28, 2026CVE-2026-115913
vLLM: Phi-4 multimodal audio encoder materializes and retains full attention matrices: a single max-length audio OOM-crashes the vLLM engine
medium6.5Oct 28, 2026CVE-2026-115914
vLLM DeepSeek-OCR image processing vulnerable to denial of service
medium6.5Oct 28, 2026CVE-2026-115915
vLLM: Untrusted EPS inputs can trigger denial of service or Ghostscript RCE
high8.1Oct 28, 2026CVE-2026-115916
vLLM: Out-of-vocabulary prompt token id passes input validation and triggers a CUDA device-side assert (engine crash / DoS)
medium6.5Oct 28, 2026
