By NHI Mgmt Group Editorial TeamBased on Salt: “Critical vLLM Flaw Exposes the Soft Underbelly of AI Infrastructure” (December 5, 2025)

TL;DR: A critical flaw in vLLM, CVE-2025-62164, lets attackers trigger remote code execution or a crash by sending a malicious API request, showing how unsafe deserialization in AI serving infrastructure can bypass standard SAST and WAF controls, according to Salt. The real control gap is not model safety but runtime trust in API payloads.


At a glance

What this is: Salt says a critical vLLM flaw allows remote code execution or denial of service through a malicious API request, exposing unsafe deserialization in AI serving infrastructure.

Why it matters: AI teams need to treat serving APIs, payload validation, and runtime trust as security controls, because model-focused governance does not stop infrastructure-layer exploitation.


Context

AI serving stacks are part of the attack surface, not just the model itself. When an application accepts complex payloads over an API, the security question shifts from whether the model behaves safely to whether the infrastructure correctly validates, parses, and isolates what it receives.

This article is about an AI API runtime failure with a genuine identity and access angle because AI infrastructure often depends on API keys, service permissions, and shadow deployments that security teams may not inventory well. The practical lesson is that control failures in the serving layer can create footholds that later become workload identity and lateral movement problems.


Key questions

Q: What breaks when an AI serving API trusts serialized input too much?

A: The service can be forced to interpret hostile data as executable structure, which opens the door to memory corruption, denial of service, or remote code execution. In practice, the failure is not model behaviour but unsafe parsing at the runtime boundary, where data validation should have happened before deserialization.

Q: Why do AI API payload flaws create more risk than prompt injection alone?

A: Prompt injection targets model behaviour, but payload flaws attack the infrastructure that parses, stores, and executes requests. If the serving layer can be made to process a malicious object, the attacker may gain code execution before any model guardrail is relevant.

Q: How do security teams know if runtime controls are actually working for AI workloads?

A: They should be able to reconstruct a complete sequence from prompt ingestion to process activity to identity use to data access. If a tool only produces isolated alerts, it is not proving runtime control. Effective monitoring should preserve the execution chain even if the pod is rescheduled or the workload is short-lived.

Q: What should teams do if an inference server can reach internal databases and APIs?

A: Treat that access as part of the attack surface, not an engineering convenience. Restrict outbound and east-west permissions, separate serving workloads from sensitive systems, and review the server’s workload identity so a single exploit does not become an environment-wide foothold.


Technical breakdown

Unsafe deserialization in AI serving APIs

Unsafe deserialization happens when a service converts incoming structured data back into in-memory objects without validating that the payload is trustworthy. In vLLM, the vulnerable path involved prompt embeddings sent to the Completions API, which the server unpacked before fully verifying the contents. That matters because deserialization bugs often sit below normal application logic and can translate a malformed payload into memory corruption, service crash, or code execution. In AI infrastructure, the risk is amplified because data blobs may look routine to generic controls even when they are structurally dangerous.

Practical implication: validate and constrain deserialized payloads at the serving boundary, not only in model or application code.

Why SAST and WAFs miss AI infrastructure exploits

Static application security testing is strong at finding code-pattern issues, but it struggles when the real failure emerges from dependency interaction, framework behaviour, or an upstream library change. The article says the issue was tied to a PyTorch change that vLLM did not account for, which is the kind of cross-layer defect scanners often miss. Traditional WAFs also lack semantic understanding of AI payloads, so a Base64 blob can pass as ordinary traffic even when it carries a malicious object structure. Security has to inspect AI-specific request semantics, not just syntax.

Practical implication: add runtime inspection and API-specific validation for AI traffic instead of relying on source-code scanning alone.

From API abuse to inference-server compromise

Once an attacker can make the server process hostile input, the next step is usually execution on the inference host, followed by access to adjacent systems. In AI environments, that can mean pivoting from the serving layer into databases, internal APIs, or other workload identities the server can reach. This is why the attack path matters more than the model label: a model endpoint that can be crashed or turned into code execution becomes a bridge into the broader environment. The infrastructure trust boundary is the real security boundary.

Practical implication: isolate inference servers and restrict their outbound and east-west permissions so compromise does not become lateral movement.


Threat narrative

Attacker objective: Gain code execution or service disruption on the AI inference server and use that foothold to reach adjacent internal systems.

  1. Entry occurs when an attacker sends a malicious request to the vLLM Completions API carrying crafted embeddings that look like ordinary AI payloads.
  2. Credential access is not the first objective here; the attacker instead abuses unsafe deserialization to force the server to process hostile data and corrupt memory.
  3. Escalation happens when the malformed payload leads to remote code execution or a crash, giving the attacker execution on the inference host.
  4. Impact is compromise of the AI serving layer, with potential pivoting into internal services if the server’s network and workload permissions are too broad.
  • LiteLLM MCP auth bypass 2026: An exploited LiteLLM MCP auth bypass and default sk-1234 master keys let attackers steal AI gateway master and provider API keys.
  • JADEPUFFER agentic ransomware 2026: The first documented agentic ransomware used harvested keys, default MinIO credentials and a default Nacos signing key to wipe a database.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

API infrastructure, not model behaviour, is the first control boundary in AI security. The vLLM flaw shows that a serving stack can fail even when the underlying model is not the problem. That shifts governance from model output risk to request parsing, payload trust, and runtime isolation. Practitioners should treat the inference API as the security perimeter.

Unsafe deserialization is a distinct AI infrastructure failure mode. It is easy to miss because the payload may look like ordinary machine-readable data, yet the server is asked to reconstruct objects with security-sensitive effects. This is especially important for AI systems because embeddings, tensors, and serialized blobs often bypass human-readable inspection. The named concept here is AI payload trust collapse: when the security model assumes AI input is data-only, but the runtime can interpret it as executable structure. Teams need controls that validate the structure before the object exists.

Traditional perimeter tools do not understand AI request semantics well enough. SAST can miss dependency-driven issues, and generic WAF rules often lack context for AI-specific payloads. That creates a governance gap between application review and runtime enforcement. The practical conclusion is that AI infrastructure needs control points that can reason about API behaviour, not just signatures or code patterns.

Compromise of an inference server is an identity and access problem as much as a code-execution problem. Once the serving host is reached, its service permissions and east-west access determine how far an attacker can move. That is where NHI governance matters, because the workload identity of the server can become the next abuse path. Practitioners should align AI runtime controls with workload identity restriction and outbound segmentation, not model safety alone.

From our research library:

What this signals

AI payload trust collapse: once a serving stack assumes serialized input is safe, the runtime becomes the weak point and the model itself is no longer the main security story. That is why AI API governance has to move left into request validation and right into runtime containment.

For identity teams, the important question is whether an inference service can do anything beyond its own task. If a compromised model host can reach secrets, internal APIs, or other workloads, the AI layer becomes an identity and access control issue as much as a code-execution issue.


For practitioners

  • Harden deserialization paths in AI APIs Review every endpoint that accepts embeddings, tensors, or serialized objects and remove any parser behaviour that can reconstruct unsafe structures. If a request must be deserialized, constrain types, sizes, and schemas before the object is materialised.
  • Add AI-specific runtime validation Use request inspection that understands the expected shape of AI traffic so a malformed Base64 blob or object wrapper is rejected before it reaches the model server. Generic WAF rules are not enough for this class of issue.
  • Reduce inference server blast radius Place serving hosts in tightly segmented networks and limit their east-west and outbound permissions so one exploited endpoint cannot reach databases or internal services.
  • Inventory shadow AI endpoints Find experimental or uncatalogued AI deployments that expose public APIs, because untracked inference services are where parser flaws and default trust often go unnoticed.

Key takeaways

  • The core failure is unsafe trust in deserialized AI payloads, not a model-safety problem.
  • A malicious request to an AI serving API can move straight into denial of service or remote code execution.
  • The practical control gap is runtime validation and workload isolation around AI infrastructure, not only static code review.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API8 — Security MisconfigurationThe flaw sits in API request handling and runtime assumptions rather than model logic.
API10 — Unsafe Consumption of APIsThe server consumed structured input in a way that enabled hostile payload processing.
Recommendation — Audit AI endpoints for API misconfiguration and reject unsafe request structures before deserialization. Treat AI payload parsing as unsafe API consumption and validate request semantics at the edge.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementThe article warns that code execution on the inference host can become a pivot into internal systems.
Recommendation — Map post-exploitation paths from AI servers to credential access and lateral movement techniques.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsInference hosts need tightly bounded permissions to prevent compromise from spreading.
Recommendation — Restrict AI server entitlements so a single exploited workload cannot access sensitive internal resources.
CIS Controls v8CIS-12 — Network Infrastructure ManagementSegmentation and traffic control limit the blast radius of a compromised inference server.
Recommendation — Use network controls to isolate AI serving systems and block unnecessary east-west connections.

Key terms

  • Unsafe Deserialisation: Unsafe deserialisation happens when an application turns untrusted serialized data back into objects without strict validation. In Python, this can become code execution if the format supports callable reconstruction or hidden execution paths. Authentication code should avoid it entirely when processing cookies, sessions, or request data.
  • AI Serving Layer: The AI serving layer is the runtime service that accepts prompts, routes requests, and returns model output in production. It matters because this layer often holds network reachability, authentication logic, and access to downstream data or compute, making it a privileged non-human identity boundary rather than a simple application wrapper.
  • Device Trust Boundary: The device trust boundary is the point where an endpoint is considered sufficiently verified to access systems, data, or services. It defines the security line between trusted and untrusted device states, based on posture, identity, integrity, and policy. In practice, it governs whether a device can authenticate, connect, or receive sensitive access.
  • Inference Server Blast Radius: Inference server blast radius is the amount of internal access and downstream impact an exploited model-serving host can reach. The smaller the blast radius, the less likely one compromised AI endpoint is to pivot into databases, secrets, or other workloads.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, and secrets management for practitioners responsible for identity-driven risk. It gives security and platform teams a common control vocabulary for protecting AI infrastructure and the broader systems it can reach.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 2, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org