← Back to Pull requests

Add vLLM multimodal info-leak scanner for CVE-2026-22778 #21592

Closed
unknown closed this pull request without merging on Sep 26, 2026 22:19 UTC
View on GitHub
unknown unknown commented on Jun 21, 2026 22:32 UTC
Author

Description

Adds an auxiliary/scanner/http module that detects vLLM OpenAI-compatible servers affected by CVE-2026-22778 (CVSS 9.8, GHSA-4r2x-xpjr-7cvv).

When an invalid image is sent to a multimodal endpoint, Pillow raises UnidentifiedImageError whose message embeds the Python repr of the underlying BytesIO buffer (<_io.BytesIO object at 0x...>), leaking a live heap address to an unauthenticated client. Vulnerable versions return that message verbatim — the ASLR-defeating first stage of a chain that ends in a JPEG2000 heap overflow in the bundled FFmpeg/OpenCV video decoder (RCE). Affected: 0.8.3 through 0.14.0; fixed in 0.14.1, which sanitizes the address out of the message.

The module:

  • reads the unauthenticated /version banner and range-checks it,

  • auto-detects the served model via /v1/models (overridable with MODEL),

  • sends a single benign malformed base64 image to /v1/chat/completions.
  • Classification is behavior-first:

  • leaked 0x address → Vulnerable,

  • sanitized message (<_io.BytesIO object>) → Safe (0.14.1 fix present),

  • in-range version with no reachable multimodal model → Appears,

  • outside range → Safe.
  • The probe never sends a video URL and never reaches the heap-overflow code path (CRASH_SAFE).

    Verification

    Stand up a vLLM server with an image-capable model (any version; 0.14.1+ exercises the patched path):

    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_multimodal_info_leak

  • set RHOSTS <target>

  • run

  • On a patched server (e.g. 0.23.0): The target is not exploitable. Error message sanitized; CVE-2026-22778 fix present (vLLM <version>)

  • On a vulnerable server (0.8.3–0.14.0 with a multimodal model): reported Vulnerable with the leaked address
  • Verified live against vLLM 0.23.0 (Safe/sanitized path); the Vulnerable matcher was confirmed against the exact 0x-bearing error string from the advisory and source (no public vulnerable CPU image exists to host live).

    References


  • CVE-2026-22778

  • https://github.com/vllm-project/vllm/security/advisories/GHSA-4r2x-xpjr-7cvv

  • https://orca.security/resources/blog/cve-2026-22778-vllm-rce-vulnerability/
  • 🤖 Generated with Claude Code

    Diff: 300 lines (+225 / -75) across 3 files Reviewer: kenlacroix Review duration: 139666m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 300 lines diff across 3 files
    0.45
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.341
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #21592"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 45.1% (MEDIUM) · Higher = larger blast radius
    45.1%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 17.8% · Safe to merge
    17.8%