← Back to Pull requests

Add vLLM Anthropic router info-leak scanner for CVE-2026-54236 #21593

Open
unknown opened this pull request with 342 lines diff across 4 files
View on GitHub
unknown unknown commented on Jun 21, 2026 23:15 UTC
Author

Description

Adds an auxiliary/scanner/http module for CVE-2026-54236 (GHSA-hgg8-fqqc-vfmw), the incomplete fix for CVE-2026-22778.

The CVE-2026-22778 fix added sanitize_message to the OpenAI router's exception handlers, so a malformed image no longer leaks Pillow's BytesIO object repr (<_io.BytesIO object at 0x...>, a live heap address). But the Anthropic-compatible router (/v1/messages, added early 2026) and the speech-to-text endpoints echo str(exc) directly, so the same malformed image still leaks the heap address verbatim through those paths. The leak weakens ASLR and is the entry primitive of the CVE-2026-22778 RCE chain. All versions up to and including 0.23.0 are affected; no fixed release was available at disclosure (fix pending in vllm-project/vllm#45119).

The module auto-detects the served model via /v1/models and sends a single benign malformed base64 image to /v1/messages. A leaked 0x address → Vulnerable; a sanitized message or absent endpoint → Safe. The probe never reaches the downstream heap-overflow code path (CRASH_SAFE).

This complements the OpenAI-router scanner in #21592 (CVE-2026-22778); the two endpoints behave differently on a patched server, so a separate module is warranted.

Verification

docker run -d -p 8000:8000 vllm/vllm-openai-cpu:latest-x86_64 \
  --model llava-hf/llava-interleave-qwen-0.5b-hf --max-model-len 4096 --enforce-eager

  • use auxiliary/scanner/http/vllm_anthropic_info_leak

  • set RHOSTS <target>

  • run

  • Expect on an affected server: The target is vulnerable. Heap-address leak confirmed via Anthropic /v1/messages (vLLM <version>)
  • Verified live against vLLM 0.23.0 (the latest release, which still leaks via /v1/messages while its OpenAI path is sanitized): module reports Vulnerable with the leaked heap address.

    References


  • CVE-2026-54236 / GHSA-hgg8-fqqc-vfmw

  • https://advisories.gitlab.com/pypi/vllm/CVE-2026-54236/

  • https://github.com/vllm-project/vllm/pull/45119
  • 🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Added a scanner that checks vLLM Anthropic endpoints for exposed heap addresses and reports confirmed findings.
    The scanner can identify the model automatically or use a configured model, and reports service version information when available.
    Documentation
    * Added setup, verification, option, and example guidance for the scanner, including how vulnerable and patched responses are classified.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 342 lines (+256 / -86) across 4 files Reviewer: kenlacroix Review duration: 233045m
    All Vouch review confidence checks passed
    Residual risk 0.32 = Change Risk (0.54) × (1 − Review Confidence (0.41)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.54 · 342 lines diff across 4 files
    0.54
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    40%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.349
    Shallow Review Depth shallow_review_depth
    0.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #21593"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 40.9% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 54.3% (MEDIUM) · Higher = larger blast radius
    54.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 40.9% · Lower = rushed or shallow review
    40.9%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 32.1% · Safe to merge
    32.1%