CVE-2026-41523
Modified Modified - Updated After Analysis

Arbitrary Code Execution in vLLM via Malicious Model

Vulnerability report for CVE-2026-41523, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-22

Last updated on: 2026-07-07

Assigner: GitHub, Inc.

Description

vLLM is an inference and serving engine for large language models (LLMs). Prior to 0.22.0, an assert-based security check in vLLM's activation function loading allows any unauthenticated attacker to achieve arbitrary code execution on the server by publishing a malicious HuggingFace model, when vLLM runs in Python optimized mode (python -O or PYTHONOPTIMIZE=1). This vulnerability is fixed in 0.22.0.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-22
Last Modified
2026-07-07
Generated
2026-07-13
AI Q&A
2026-06-23
EPSS Evaluated
2026-07-11
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
vllm vllm to 0.22.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CWE-617 The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability exists in vLLM, an inference and serving engine for large language models. Prior to version 0.22.0, an assert-based security check in the activation function loading process can be bypassed when vLLM is run in Python optimized mode (using python -O or PYTHONOPTIMIZE=1). This allows any unauthenticated attacker to execute arbitrary code on the server by publishing a malicious HuggingFace model.

Impact Analysis

This vulnerability can lead to arbitrary code execution on the server running vLLM, which means an attacker could potentially take full control of the server, compromise data, disrupt services, or use the server as a foothold for further attacks.

Mitigation Strategies

To mitigate this vulnerability, upgrade vLLM to version 0.22.0 or later, where the issue has been fixed.

Avoid running vLLM in Python optimized mode (using python -O or setting PYTHONOPTIMIZE=1) until the upgrade is applied.

Compliance Impact

The vulnerability allows unauthenticated attackers to achieve arbitrary code execution on the server, impacting confidentiality, integrity, and availability of the system. Such a compromise can lead to unauthorized access to sensitive data or disruption of services.

Because of these impacts, organizations using affected versions of vLLM may face challenges in maintaining compliance with standards and regulations like GDPR and HIPAA, which require protection of personal and sensitive data against unauthorized access and ensuring system integrity and availability.

Failure to patch this vulnerability could result in data breaches or service disruptions, potentially leading to regulatory penalties or loss of trust.

Detection Guidance

This vulnerability can be detected by identifying if your system is running a vulnerable version of the vLLM library prior to 0.22.0 and if it is running in Python optimized mode (using the python -O flag or PYTHONOPTIMIZE=1 environment variable).

To detect the vulnerable version of vLLM, you can check the installed package version with the following command:

  • pip show vllm

To check if Python is running in optimized mode, you can run a Python command to verify if the __debug__ variable is set to False (which indicates optimized mode):

  • python -c "import sys; print('Optimized mode:', not __debug__)"

Additionally, monitoring for any loading of HuggingFace models with cross-encoder architectures (e.g., BERT or RoBERTa with sequence classification) in your environment may help identify potential exploitation attempts.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-41523. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart