CVE-2026-12491
JSON

4.8medium

Vllm: vllm: image exif rotation & png trns transparency not normalized, causing mismatch between model input and expectations

Severity
4.8medium CVSS:3.1 by redhat
Exploit likelihood
0.30% (higher than 23% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-8jr5-v98p-w75mPYSEC-2026-3406

Description

A flaw was found in vLLM, an open-source library for large language model inference. This vulnerability arises from improper handling of image metadata, specifically EXIF orientation and PNG transparency (tRNS) data, during image processing. When images are converted to RGB, transparency information may be implicitly discarded or remapped, leading to unexpected rendering of transparent pixels and distortion of input content. This can result in the model misinterpreting image content, potentially affecting the integrity of processed data.

Affected

Product or packageVersionsReported by
vllmfrom 0.11.0 before 0.24.0CVE List
rhaii/vllm-cpu-rhel9Not specified
Not affected: from 1795123582 before *
CVE List
rhaii/vllm-cuda-rhel9Not specified
Not affected: from 1795543686 before *
CVE List
rhaii/vllm-spyre-rhel9Not specified
Not affected: from 1795543686 before *
CVE List
rhaiis/vllm-cpu-rhel9Not specifiedCVE List
rhaiis/vllm-cuda-rhel9Not specifiedCVE List
rhaiis/vllm-neuron-rhel9Not specifiedCVE List
rhaiis/vllm-rocm-rhel9Not specifiedCVE List
rhaiis/vllm-spyre-rhel9Not specifiedCVE List
rhaiis/vllm-tpu-rhel9Not specifiedCVE List
rhaii/vllm-gaudi-rhel9Not specifiedCVE List
rhaii/vllm-neuron-rhel9Not specifiedCVE List

All scores

redhat4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
GitHub4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
PyPA Advisory Database4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L

Classification

CWE-115CWE-436

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

A flaw was found in vLLM, an open-source library for large language model inference. This vulnerability arises from improper handling of image metadata, specifically EXIF orientation and PNG transparency (tRNS) data, during image processing. When images are converted to RGB, transparency information may be implicitly discarded or remapped, leading to unexpected rendering of transparent pixels and distortion of input content. This can result in the model misinterpreting image content, potentially affecting the integrity of processed data.

GitHub Advisory Database

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

References

https://access.redhat.com/errata/RHSA-2026:103315vendor-advisory
https://access.redhat.com/errata/RHSA-2026:103421vendor-advisory
https://access.redhat.com/errata/RHSA-2026:103423vendor-advisory
https://access.redhat.com/security/cve/CVE-2026-12491vdb-entry, web
https://bugzilla.redhat.com/show_bug.cgi?id=2489786issue-tracking, web
https://github.com/vllm-project/vllm/security/advisories/GHSA-8jr5-v98p-w75mweb
https://nvd.nist.gov/vuln/detail/CVE-2026-12491advisory
https://github.com/vllm-project/vllm/pull/44974web
https://github.com/vllm-project/vllm/commit/cf1c90672404548aa3bc51f92c4745576a65ee26web
https://github.com/advisories/GHSA-8jr5-v98p-w75madvisory
https://github.com/pypa/advisory-database/tree/main/vulns/vllm/PYSEC-2026-3406.yamlweb
https://github.com/vllm-project/vllmpackage

Sources

SourceRecordLicence
CVE ListCVE-2026-12491 changed 2026-11-25CVE Terms of Use
GitHub Advisory DatabaseGHSA-8jr5-v98p-w75m changed 2026-09-10CC-BY-4.0
NVDCVE-2026-12491 changed 2026-11-25Public domain
PyPA Advisory DatabasePYSEC-2026-3406 changed 2026-07-13CC-BY-4.0