CVE-2026-41523: CWE-94: Improper Control of Generation of Code ('Code Injection') in vllm-project vllm
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.
AI Analysis
Technical Summary
CVE-2026-41523 is a code injection vulnerability (CWE-94) in vLLM, an inference and serving engine for large language models. Before version 0.22.0, an assert-based security check in the activation function loading can be bypassed when vLLM runs in Python optimized mode (python -O or PYTHONOPTIMIZE=1). This bypass enables any unauthenticated attacker to achieve arbitrary code execution on the server by publishing a malicious HuggingFace model. The vulnerability is addressed in vLLM 0.22.0. The CVSS 3.1 base score is 7.5, indicating high severity with network attack vector, high impact on confidentiality, integrity, and availability, and requiring user interaction with high attack complexity.
Potential Impact
An attacker can remotely execute arbitrary code on the server running vulnerable versions of vLLM in Python optimized mode by supplying a malicious model. This compromises the confidentiality, integrity, and availability of the affected system. No known exploits in the wild have been reported yet.
Mitigation Recommendations
Upgrade vLLM to version 0.22.0 or later, where this vulnerability is fixed. Since this is a code execution vulnerability triggered by running vLLM in Python optimized mode, avoid running vLLM with python -O or PYTHONOPTIMIZE=1 if upgrading is not immediately possible. Patch status is confirmed fixed in 0.22.0 as per the vendor advisory.
CVE-2026-41523: CWE-94: Improper Control of Generation of Code ('Code Injection') in vllm-project vllm
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 v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-41523 is a code injection vulnerability (CWE-94) in vLLM, an inference and serving engine for large language models. Before version 0.22.0, an assert-based security check in the activation function loading can be bypassed when vLLM runs in Python optimized mode (python -O or PYTHONOPTIMIZE=1). This bypass enables any unauthenticated attacker to achieve arbitrary code execution on the server by publishing a malicious HuggingFace model. The vulnerability is addressed in vLLM 0.22.0. The CVSS 3.1 base score is 7.5, indicating high severity with network attack vector, high impact on confidentiality, integrity, and availability, and requiring user interaction with high attack complexity.
Potential Impact
An attacker can remotely execute arbitrary code on the server running vulnerable versions of vLLM in Python optimized mode by supplying a malicious model. This compromises the confidentiality, integrity, and availability of the affected system. No known exploits in the wild have been reported yet.
Mitigation Recommendations
Upgrade vLLM to version 0.22.0 or later, where this vulnerability is fixed. Since this is a code execution vulnerability triggered by running vLLM in Python optimized mode, avoid running vLLM with python -O or PYTHONOPTIMIZE=1 if upgrading is not immediately possible. Patch status is confirmed fixed in 0.22.0 as per the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-20T18:18:50.682Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-41523","vendor":"Red Hat"}]
Threat ID: 6a39b9b1eed863c81e85ff8f
Added to database: 06/22/2026, 22:39:45 UTC
Last enriched: 07/23/2026, 22:04:59 UTC
Last updated: 08/06/2026, 12:41:10 UTC
Views: 136
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.