Skip to main content

vLLM CVE-2026-54236

MEDIUM
Insertion of Sensitive Information into Log File (CWE-532)
2026-06-17 https://github.com/vllm-project/vllm GHSA-hgg8-fqqc-vfmw
5.3
CVSS 3.1 · Vendor: https://github.com/vllm-project/vllm
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Send POST /v1/messages with malformed image bytes
  2. Delivery
    PIL raises UnidentifiedImageError containing BytesIO heap address
  3. Exploit
    Unsanitized str(e) returned verbatim in JSON error response
  4. Install
    Extract heap address from error.message field
  5. C2
    Defeat ASLR using leaked address
  6. Execute
    Chain with CVE-2026-22778 heap overflow
  7. Impact
    Achieve remote code execution

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
Exploitation Conditions

The vLLM instance must be configured to serve the Anthropic-compatible API router (i.e., vllm/entrypoints/anthropic/api_router.py must be active), which is a non-default deployment mode distinct from vLLM's standard OpenAI-compatible endpoint. The attacker must be able to submit a request body containing an image content part with type: "image" and a source.data or type: "image_url" field - standard Anthropic Messages API functionality. No authentication is required per CVSS PR:N; the endpoint must be network-accessible to the attacker. For speech-to-text routes (routes 4 and 5), the realtime WebSocket endpoint must be enabled and accessible. Exploitation of this CVE alone yields only a heap address leak; achieving RCE additionally requires a separately exploitable heap overflow (such as CVE-2026-22778 in libopenjp2) to be present and unpatched. Network-level controls (firewall rules, API key enforcement at a reverse proxy, or disabling the Anthropic/speech-to-text entrypoints) limit exposure.

Impact

The CVSS 3.1 score of 5.3 Medium (AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N) is an accurate standalone rating: unauthenticated network access, trivial complexity, limited confidentiality impact of one heap address per request. However, this score understates real-world risk for deployments where CVE-2026-22778 is also present: the researcher explicitly documents that this leak re-enables Stage 1 of a two-stage RCE chain, reducing ASLR entropy to 8 candidates and making the parent CVE's heap overflow reliably exploitable. No EPSS data was provided in available intelligence. The vulnerability is not listed in CISA KEV as of the analysis date. A proof-of-concept (PoC.py) is referenced in the advisory, indicating exploit code exists but has not been independently confirmed as publicly released. Operators running the Anthropic API router or speech-to-text WebSocket in internet-facing deployments, particularly those not yet patched for CVE-2026-22778, should treat effective risk as materially higher than the standalone CVSS score implies.

Exploit ScenarioDerived

An unauthenticated attacker sends a POST request to /v1/messages on a vLLM instance serving the Anthropic API, including an image content part (type: "image") with malformed base64-encoded bytes. PIL.Image.open raises UnidentifiedImageError with the BytesIO heap address embedded in the message; vLLM's unpatched exception handler returns this string verbatim in the error.message JSON field. The attacker extracts the address, uses it to locate the heap layout, and combines it with the libopenjp2 heap overflow from CVE-2026-22778 to achieve remote code execution. A PoC script is referenced in the advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 18, 2026

Heap memory address leakage in vLLM's Anthropic API router and speech-to-text WebSocket paths exposes the same ASLR-bypass primitive previously fixed in CVE-2026-22778. Five exception-handling sites across vllm/entrypoints/anthropic/api_router.py, vllm/entrypoints/anthropic/serving.py, and vllm/entrypoints/speech_to_text/realtime/connection.py echo raw str(e) output - including PIL BytesIO object repr strings containing heap addresses - directly to unauthenticated callers. A proof-of-concept is referenced in the advisory, and when chained with the parent CVE's libopenjp2 heap overflow, this leak reduces ASLR entropy from approximately 4 billion candidates to 8, enabling RCE; no public exploit identified at time of analysis for this CVE in isolation.

RemediationAI

Apply the upstream fix from PR #45119 (commit 94923629729381d7f7c9efde72071a2441f7fd82, https://github.com/vllm-project/vllm/pull/45119), which wraps all five str(e) calls with sanitize_message() in vllm/entrypoints/anthropic/api_router.py (lines 78 and 124), vllm/entrypoints/anthropic/serving.py (line 808), and vllm/entrypoints/speech_to_text/realtime/connection.py (lines 75 and 265). This is an upstream fix available via PR/commit; a released tagged version is not independently confirmed in available data. Until an official release is available, operators can apply the five-line patch manually by importing sanitize_message from vllm.entrypoints.serve.utils.api_utils and wrapping each str(e) call in the affected exception handlers. As a compensating control, operators who do not require the Anthropic-compatible API can disable that router entirely, eliminating routes 1-3; operators who do not require speech-to-text can disable the realtime WebSocket, eliminating routes 4-5. Disabling these endpoints breaks the corresponding API surface. The advisory also recommends broadening the sanitizer regex from the narrow r" at 0x[0-9a-f]+>" pattern to r"\b0x[0-9a-fA-F]{6,}\b" to prevent future bypass via custom __repr__ formats or uppercase hex.

Affected Packages

pypi vllm fix: 0.24.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

vLLM's multimodal image pipeline passes user-supplied bytes to PIL.Image.open(); malformed input causes PIL to raise UnidentifiedImageError whose string representation includes the BytesIO heap address (e.g., <_io.BytesIO object at 0x7a95e299e750>). The CVE-2026-22778 fix introduced sanitize_message - a regex-based sanitizer stripping at 0x[0-9a-f]+> patterns - and applied it to four FastAPI exception-handling sites in the OpenAI router. However, three modules added after that fix (Anthropic router PR #32369 on 2026-01-15, count_tokens endpoint PR #35588 on 2026-03-02, speech-to-text WebSocket PR #42370 on 2026-05-12) use inline except Exception as e: blocks that return responses constructed with bare str(e), bypassing both sanitize_message and FastAPI's global exception handler (which fires only on unhandled exceptions escaping route coroutines). WebSocket paths additionally fall outside FastAPI's HTTP exception handler chain entirely. The root cause class is CWE-532 (Insertion of Sensitive Information into Log File / error output). The affected package is pkg:pip/vllm, confirmed present at main HEAD commit 771e1e48b (2026-05-26).

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/vllm-project/vllm) PRIMARY 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 5.3 MEDIUM

Network-reachable Anthropic API endpoint requires no authentication; only a single heap address is disclosed with no integrity or availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 5.3 MEDIUM

Primary rating from Vendor (https://github.com/vllm-project/vllm).

CVSS VectorVendor: https://github.com/vllm-project/vllm

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

1
CVSS changed
Jun 22, 2026 - 23:22 NVD
5.3 (MEDIUM)

DescriptionCVE.org

vLLM: incomplete CVE-2026-22778 fix leaks PIL repr addresses via the Anthropic API router

Researcher: Kai Aizen - SnailSploit (@SnailSploit), Adversarial & Offensive Security Research Severity: CVSS 3.1 5.3 (Medium) AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Target: https://github.com/vllm-project/vllm

---

Summary

The fix for CVE-2026-22778 / GHSA-4r2x-xpjr-7cvv (PRs #31987 and #32319) introduced sanitize_message and applied it at four FastAPI exception-handling sites in the OpenAI router. The sanitizer strips object-repr memory addresses (<_io.BytesIO object at 0x7a95e299e750> → <_io.BytesIO object>) before error messages reach the client, defeating the ASLR-bypass primitive that CVE-2026-22778 chained with a libopenjp2 heap overflow for RCE.

The fix is incomplete: response paths added to vLLM at or after the same time as the fix continue to echo str(exc) directly to clients without sanitize_message. The original Stage 1 primitive - sending malformed image bytes so PIL raises UnidentifiedImageError whose message contains the BytesIO object repr - reaches all of them unmodified and leaks the heap address verbatim in the response body.

All five lines below are present in main HEAD (771e1e48b, 2026-05-26).

Affected sites

Current main HEAD (771e1e48b, 2026-05-26):

| File | Line | Code |

|

Why the global exception handler does not save these paths

|---|---|---|---| | 1 | vllm/entrypoints/anthropic/api_router.py | 78 | message=str(e), (inside POST /v1/messages exception handler) | | 2 | vllm/entrypoints/anthropic/api_router.py | 124 | message=str(e), (inside POST /v1/messages/count_tokens) | | 3 | vllm/entrypoints/anthropic/serving.py | 808 | error=AnthropicError(type="internal_error", message=str(e)), (SSE streaming converter) | | 4 | vllm/entrypoints/speech_to_text/realtime/connection.py | 75 | await self.send_error(str(e), "processing_error") (WebSocket event loop) | | 5 | vllm/entrypoints/speech_to_text/realtime/connection.py | 265 | await self.send_error(str(e), "processing_error") (WebSocket generation loop) |

api_server.py registers a catch-all app.exception_handler(Exception)(exception_handler) at line 262, and that handler calls create_error_response(exc) which DOES apply sanitize_message. However, FastAPI exception handlers fire only on unhandled exceptions that propagate out of a route function.

All affected HTTP paths catch Exception *inside* the route coroutine and construct the response themselves:

python
# vllm/entrypoints/anthropic/api_router.py:71-81 (POST /v1/messages)
try:
    generator = await handler.create_messages(request, raw_request)
except Exception as e:
    logger.exception("Error in create_messages: %s", e)
    return JSONResponse(
        status_code=HTTPStatus.INTERNAL_SERVER_ERROR.value,
        content=AnthropicErrorResponse(
            error=AnthropicError(
                type="internal_error",
                message=str(e),
# <-- unsanitized
            )
        ).model_dump(),
    )

Because the exception is caught and a JSONResponse is returned in-route, every registered FastAPI exception handler - including the sanitizing global one - is bypassed. The WebSocket path bypasses it for a different reason: WebSocket frames don't traverse FastAPI's HTTP exception handler chain at all.

Reachability - the same primitive as the parent CVE

The Anthropic Messages API accepts image content parts in the request body (type: "image" with base64 source.data or type: "image_url"). Image bytes are passed to the same multimodal loader used by the OpenAI router. Malformed bytes cause PIL.Image.open to raise:

UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7a95e299e750>

The exception propagates up through handler.create_messages into the except Exception as e: at api_router.py:75. str(e) returns the exception message verbatim, including the address. The address ends up in the error.message field of the JSON response body returned to the attacker. ASLR entropy on the affected process drops from ~4 billion to ~8 candidates, identically to CVE-2026-22778 Stage 1.

The same primitive is reachable on POST /v1/messages/count_tokens (route #2), inside the SSE streaming converter when an exception is raised mid-stream (route #3), and over the realtime speech-to-text WebSocket when audio decoder or generation paths raise an exception containing any object repr (routes #4, #5).

Chronology - these are scope misses, not legacy code

  • 2026-01-09: PR #31987 (aa125ecf0) introduces sanitize_message and applies it to OpenAI router HTTP exception handlers.
  • 2026-01-15 (six days later): PR #32369 (4c1c501a7) adds vllm/entrypoints/anthropic/api_router.py containing line 78's message=str(e). The fix was not applied to the new router.
  • 2026-03-02 (~two months later): PR #35588 (9a87b0578) adds the Anthropic count_tokens endpoint, replicating the same message=str(e) pattern at line 124.
  • 2026-05-12 (~four months later): PR #42370 (d37e25ffb) consolidates speech-to-text entrypoints and the realtime WebSocket uses send_error(str(e), ...) for both error paths.
  • 2026-05-26: current main HEAD, all five lines still present.

Remediation

1. Apply sanitize_message symmetrically to the five sites

python
# vllm/entrypoints/anthropic/api_router.py - add at top:
from vllm.entrypoints.utils import sanitize_message
# Line 78 (POST /v1/messages) and Line 124 (count_tokens):
message=sanitize_message(str(e)),
python
# vllm/entrypoints/anthropic/serving.py - add at top:
from vllm.entrypoints.utils import sanitize_message
# Line 808:
error=AnthropicError(type="internal_error", message=sanitize_message(str(e))),
python
# vllm/entrypoints/speech_to_text/realtime/connection.py - add at top:
from vllm.entrypoints.utils import sanitize_message
# Lines 75 and 265:
await self.send_error(sanitize_message(str(e)), "processing_error")

2. Tighten the regex (defense in depth)

The current regex r" at 0x[0-9a-f]+>" is narrow - it only matches the exact CPython builtin object-repr suffix in lowercase hex with a trailing >. Future Python versions, C extensions, or custom __repr__ methods could produce non-matching formats that re-enable the leak:

python
# vllm/entrypoints/utils.py
def sanitize_message(message: str) -> str:
# Strip any standalone hex address; downstream observers don't need them.
    return re.sub(r"\b0x[0-9a-fA-F]{6,}\b", "0x?", message)

3. Future-proofing: consider a response middleware

Both the route-local exception handling pattern (Anthropic router) and the WebSocket path bypass FastAPI's exception handler chain. A response-level middleware that always invokes sanitize_message on outgoing error bodies would prevent this class of regression entirely.

Affected versions

  • All vLLM versions containing vllm/entrypoints/anthropic/api_router.py (introduced 2026-01-15 in PR #32369).
  • All vLLM versions containing vllm/entrypoints/speech_to_text/realtime/connection.py (introduced 2026-05-12 in PR #42370).
  • Confirmed present in main HEAD 771e1e48b (2026-05-26).

Steps to reproduce

  1. Clone the target: git clone --depth 1 https://github.com/vllm-project/vllm
  2. Run the proof of concept (PoC.py) against the cloned source.
  3. Observe the result shown under *Verified result* below.

Credit

Kai Aizen - SnailSploit (@SnailSploit). Adversarial & Offensive Security Research.

Fix

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

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 pypi packages depend on vllm (2 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.23.0.

Threat Intelligence Overview

EPSS Score
0.8%
Top 47% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA POC (1) Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +26
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

pkg:pip/vllm

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy