☰

ReferenceEach category is also its own page, with controls, a standards mapping and tests: the inference reference.

☰

Full paperThis is the long version, with evidence classes, adversary model and citations. The plain-language summary is How LLM serving infrastructure gets broken into, and it takes about five minutes.

Thesis

LLM serving infrastructure creates security boundaries out of performance mechanisms. Cache addressing, scheduling and artifact loading are not access-control components, and were not designed as any, yet in a shared deployment they determine who can reach whose data. A secure deployment therefore has to bind identity at ingress, carry it across every internal plane, and verify that each performance optimization respects the same boundary.

Everything below follows from that one observation.

About this document

This is an architectural threat model, not a vulnerability disclosure. The analysis names no products and reports no findings. Every category describes a class of defect that arises from how inference systems are built, along with the questions to ask of your own stack and the controls that answer them.

Public advisories and research are cited in the references so that the evidence claims can be checked. Vendor-neutral is not the same as source-neutral: the categories are described by mechanism, and the citations exist so a reader can verify that a class is real rather than take it on assertion.

It is written for the people who deploy and review this infrastructure: platform engineers running a serving cluster, security engineers asked to sign one off, and researchers looking for where the unexamined surface is.

The eleven categories are a review framework, not a universal severity ranking. Their priority depends on deployment topology, tenant model, exposed interfaces, and what privileges are available after a compromise. The numbering is navigational.

What this is not. It is not a survey of which projects are vulnerable, and it contains no undisclosed vulnerability information. Where a class has been demonstrated publicly, it is described by mechanism rather than by vendor. Nothing here requires you to trust an assessment of someone else’s code.

Evidence classes

Each category carries a label. The standard for each is fixed, so the labels mean the same thing throughout.

LabelStandard
Incident-backedA public exploitation report, confirmed production compromise, or operator postmortem exists, with a primary source
Advisory-backedA CVE, published vendor advisory, or maintainer-confirmed vulnerability exists, without a known exploited incident
ArchitecturalThe class follows from the design and is supported by research or vendor engineering guidance, without a public implementation-specific finding

Architectural indicates a mechanism-derived risk requiring deployment-specific validation. It is not evidence of a defect in any particular implementation, and equally it is not a claim that the class is theoretical: it means the public record has not caught up, which historically has been a statement about timing rather than about safety. Every label is backed by a numbered citation in the references.

What a citation means here. It establishes that the mechanism has occurred in at least one real implementation. It is not a claim that any particular system is currently affected, nor that the cited project is representative.

1. Why this stack is different

Inference infrastructure is often reviewed as though it were ordinary web infrastructure with a GPU attached. It is not, and five properties account for most of the difference.

Caching is not an optimization here, it is a shared data structure holding user content. A prefix cache exists to let one request reuse work done for another. That is its function, not a side effect. The moment two principals can reach the same cache, reuse and disclosure are the same mechanism viewed from different sides.

Identity is usually derived, not asserted. Cache entries, KV blocks and scheduling decisions are addressed by values computed from request content: token hashes, block hashes, prefix chains. Anything not included in that derivation is invisible to the lookup, including who is asking.

Artifacts are executable. Model files, adapters, tokenizer configs, dataset descriptors and chat templates are all inputs that some component will parse, and several common formats carry references or expressions that the parser will follow or evaluate. The boundary between data and code is thinner here than almost anywhere else in modern systems.

The internal plane is large, chatty and historically unauthenticated. Disaggregated serving splits prefill, decode, routing, cache tiers and metadata services across processes and hosts. Many of these components were written when the deployment assumption was a single trusted cluster network, and that assumption is frequently still in the code and the defaults.

The control plane is Kubernetes. These systems ship operators, custom resources and Helm charts. That makes cluster-level primitives (service account tokens, node metadata, admission policy, namespace scoping) part of the inference attack surface, and they are usually reviewed by a different team than the one reviewing the Python.

2. Reference architecture

The categories below refer to these roles rather than to any product.

Reference architecture of an LLM serving deployment Clients cross a trust boundary into an ingress gateway, which authenticates the caller against an identity source and derives a signed authorization context. That context is carried down every internal hop: to the scheduler, to both model runners, to the peer-to-peer transfer plane and to the shared KV cache tiers. The runners also load artifacts and make outbound fetches. A platform control plane and an observability plane run alongside every layer of the stack. PLATFORM / CONTROL PLANE CRDS · RBAC · SECRETS · WORKLOAD IDENTITY · ADMISSION OBSERVABILITY METRICS · TRACES · LOGS Clients / tenants many principals, one endpoint TRUST BOUNDARY IDENTITY AND AUTHORIZATION CONTEXT BOUND HERE Ingress and gateway authenticate · authorize · derive signed context claims Identity source IdP, API tokens, mTLS, workload identity Scheduler / router dispatches on policy and isolation context Artifact store models, adapters, tokenizers, configs Model runner A prefill / decode Model runner B prefill / decode Outbound fetch remote artifacts, media, adapters Transfer plane authenticated KV movement KV cache tiers GPU · host RAM · disk · object store: physically shared, partitioned only if you partition it request and data path signed authorization context: tenant · project · cache-isolation namespace
The green dashed path is the signed authorization context derived at ingress. Invariants 1 and 2 are the claim that it survives every hop that touches shared state, and most of the categories below are what happens where it does not. The two side rails are planes that touch every component and are usually reviewed by a different team than the request path. Both runners load artifacts and make outbound fetches; only one of each is drawn, to keep the picture readable.

Two observations about this picture drive most of what follows.

The gateway is typically the first component that can reliably bind a request to an authenticated caller identity. A service mesh, workload identity system or signed downstream context can carry that binding further, but something has to establish it first. Everything past it works with derived identifiers. If authorization context is not carried across that line, it does not exist downstream, and no amount of correctness in the cache layer will recreate it.

The cache tiers and the transfer plane hold multiple principals’ data in one addressable space by design, which makes them isolation boundaries whether or not they were built as any. They are not the only such places: request logs, traces, metrics backends and queues accumulate multi-principal data too, and they are frequently the least reviewed component in the diagram. What distinguishes the cache is that reuse across principals is its purpose rather than a side effect of observability, so the failure is silent and looks like success.

Four invariants

Six of the eleven categories are violations of four properties, and it is worth seeing them as one system rather than as separate findings.

  1. Identity propagation. The authenticated principal and its authorization namespace survive every hop that touches shared state.
  2. Context-complete addressing. Stored or reused inference state is keyed by all security-relevant execution context, not only by content.
  3. Authenticated peer relationships. Internal components authorize on cryptographic workload identity, never on self-asserted routing metadata.
  4. Fail-closed enforcement. A component that cannot honor a security control refuses the request rather than serving it downgraded.
InvariantBroken by
1. Identity propagationINF01(a), INF06
2. Context-complete addressingINF01(b), INF01(c)
3. Authenticated peer relationshipsINF02, INF03
4. Fail-closed enforcementINF10

Invariant 2 has a limit worth stating: correct addressing is necessary but not sufficient. A key separates principals only if lookup, eviction and storage semantics all enforce the separation the key expresses. Addressing identity and authorization enforcement are different things, and INF05 exists because the first can be right while the second still leaks through timing.

The remaining four categories are not identity problems. INF04, INF07, INF08 and INF09 concern execution, parsing and privilege, and are governed by ordinary isolation and least-privilege practice rather than by anything specific to inference. They are in scope because this stack reaches them through unusual entry points, not because the controls are novel. INF11 sits outside both groups: it is not an identity problem, and it is not ordinary isolation practice. Stale state is a lifecycle-correctness problem that becomes a security problem here because this stack pools and recycles shared state for speed.

Adversaries

Categories are only testable against a stated attacker. Five are referenced throughout.

AdversaryCapability
A1Remote unauthenticated callerReach exposed routes, measure response timing
A2Authenticated low-privilege tenantIssue chosen prompts, reference permitted artifacts, observe service behavior
A3Internal workload attackerHolds a pod foothold, can reach cluster-local services
A4Artifact supplierInfluences a model, adapter, tokenizer, media or dataset input
A5Control-plane attackerHolds a compromised service account or bypasses admission policy

Note the preconditions this makes explicit. Cache side channels need co-residency or a shared cache tier and are an A2 problem. Control-plane escalation generally presumes an A3 foothold obtained some other way, which is why it multiplies the severity of every other category rather than standing alone.

Deployment applicability

Attacker capability depends on how the system is deployed, and not every category applies to every shape.

CategorySingle hostMulti-nodeKubernetes fleetAgent or tool-enabled
INF01, INF05 cache identity and side channelsIf multi-tenantYesYesYes
INF02, INF03 internal planes and peer identityLimitedPrimaryPrimaryYes
INF04 host and accelerator memoryYesYesPrimaryYes
INF06 routing metadataIf a gateway existsYesPrimaryYes
INF07, INF08 artifacts and pathsYesYesYesPrimary
INF09 control planeNoPartialPrimaryYes
INF10 silent control removalYesYesYesYes
INF11 request state outliving its ownerYesPrimaryYesYes

3. The categories

INF01. Cache identity that fails to bind security context

Advisory-backed for (c)Architectural for (a) and (b)Adversary A2

Mechanism. Cache lookup keys are derived from request content: token sequences, prefix chains, block hashes. A key is a security boundary in a shared deployment whether or not it was designed as one, and it fails in three distinct ways.

(a) Authorization namespace omitted. The key contains no component derived from who is asking. Two principals sending the same content address the same entry. Reuse across the trust boundary follows automatically and no attacker action is required to cause it. This is the intended behavior of the cache operating on unintended inputs.

(b) Version and variant context omitted. The key binds tokens but not model revision, tokenizer revision, adapter or LoRA identity, or multimodal input identity. Entries then collide across configurations that should not share state, which is a correctness problem that becomes a security problem when the configurations belong to different principals.

(c) The identifier itself is weak. Even with the right inputs, a truncated or narrow identifier admits crafted collisions, letting one entry displace or be served in place of another. This subtype has a published advisory behind it [1]; the other two are architectural.

Distinguishing these matters because the fixes differ and do not substitute for one another. Width addresses (c). Only binding authenticated identity addresses (a).

Why it recurs. Cache keys are written by people optimizing hit rate, and every field added to a key reduces hit rate. Isolation inputs therefore look like a cost. The failure is usually not a refusal to add them; it is that a key is designed once, in a single-tenant context, and never revisited when the deployment becomes shared.

Ask your stack.

  • Enumerate every field in your cache key. Which of them is derived from who is asking rather than what is being asked?
  • If your engine offers a per-request isolation input, does every cache tier and every storage backend actually incorporate it, or only some?
  • When a request carries an isolation input your cache layer does not understand, what happens?
  • Does the key bind model revision, tokenizer revision, and adapter identity, or only tokens?
Controls

Derive storage identity from an authorization namespace bound at the gateway, not from a caller-supplied value alone. A caller-chosen salt is a useful mechanism but is not by itself a tenant boundary, since a caller can choose another caller’s value; bind it to authenticated identity at ingress. Keep the namespace in the key that reaches storage, not only in an in-memory index.

INF02. Unauthenticated internal control and data planes

Incident-backedAdversary A1, A3

Mechanism. Coordination endpoints, metadata services, metrics and profiling ports, cache coordinators and job submission interfaces bind to all interfaces with no authentication, on the stated assumption of a trusted network. In practice these land on cloud VPCs, shared clusters and occasionally public addresses.

Why it recurs. The assumption is usually documented, which converts it from a defect into a deployment requirement in the maintainers’ view. That is a defensible position for a library and a dangerous one for a product, and the gap between those two readings is where these incidents live. Publicly documented mass-exploitation campaigns against AI compute clusters have followed exactly this shape [2][3]: an unauthenticated management interface, reachable, doing what it was designed to do.

Ask your stack.

  • Inventory every listening socket in a running deployment, including sidecars. For each: what authenticates the caller?
  • Which of those are bound to 0.0.0.0 by default rather than by your configuration?
  • Do you have a NetworkPolicy per workload, or a flat pod network?
  • If an attacker held a foothold in one pod, which of these would be reachable?
Controls

Bind internal services to loopback or a private overlay. Require mutual authentication on any interface that moves cache state or accepts work. Default-deny network policy between namespaces. Treat “assume a trusted network” in documentation as a finding in its own right, and record who owns producing that network.

INF03. Self-asserted peer and tenant identity

ArchitecturalAdversary A1, A3

A note on what is and is not evidence for this. Published remote-execution advisories exist on KV transfer and coordination services [4][5], but their root cause is network reachability plus deserialization, which belongs to INF02 and INF07. They are not evidence that a peer-supplied identity was treated as authorization. That distinction is the whole point of this category, so it is classified architectural until an advisory demonstrates the mechanism directly [6].

Mechanism. A request or a peer supplies the value used to decide who it is or where its data should come from: a peer address for a cache transfer, an engine or instance identifier, a tenant field in an RPC. The receiving component validates the shape of that value and treats it as authorization.

Why it recurs. In a disaggregated system, components genuinely do need to tell each other where things are. The design error is using the same field for routing and for authorization. Handshakes built for correctness (do we agree on the model, the dtype, the layout?) are frequently mistaken for handshakes that establish trust.

Ask your stack.

  • For every identifier a component receives over the network, ask whether it is checked against something the sender could not have chosen.
  • Can a client influence which peer a worker connects to, or which cache namespace it reads?
  • Is any tenant identifier passed as a plain parameter rather than derived from a credential?
Controls

Cryptographic workload identity, so a peer proves what it is rather than naming it. Declarative peer allowlists derived from cluster topology instead of dynamic self-registration. Never let a request nominate its own data source.

INF04. Host and accelerator memory isolation failure

Advisory-backed for cross-process leakage on some GPUsArchitectural otherwiseAdversary A3

Mechanism. Performance work pushes these systems toward shared memory segments, host IPC, and pinned or reused device memory. Each of these is a channel that crosses a process boundary by design, and bounds checking on shared-memory registration is a recurring source of memory-safety defects in native code [6]. Memory regions registered for remote writes over a fabric add a further surface: whoever can reach the fabric may be able to write into them.

Scope. The test is who is meant to enforce the boundary. This category covers boundaries enforced by the operating system, the driver, the device or the orchestrator. Stale data left by the serving system’s own bookkeeping of request lifecycles, including between its prefill and decode workers, is a different failure with different controls and is covered in INF11. Where memory is shared between engine processes, the driver’s access control belongs here and the memory’s lifetime belongs to INF11.

Why it recurs. The performance gain is real and measurable; the isolation cost is not visible in any benchmark. hostIPC: true in a manifest is one line and removes a boundary the rest of the architecture assumes.

Ask your stack.

  • Does any workload set hostIPC, hostNetwork, hostPID, or privileged?
  • Which shared-memory segments exist at runtime, and what are their permissions?
  • Who on the fabric can write into registered memory regions?
  • Do GPUs run in a sharing mode (MPS, time slicing, MIG), and what isolation does each give?
  • What is your device-buffer reuse policy between tenants, and has it been stated anywhere? Treat this as a question to answer rather than an assumed defect. Leakage between separate processes through accelerator local memory has been shown in research on several non-NVIDIA GPUs, as a proof of concept with no production exploitation reported [21]. We know of no public case in production datacenter inference.
Controls

Reject privileged and host-namespace-sharing pods at admission unless explicitly justified. Where RDMA serving pods need exceptions to these rules, record them and require compensating controls such as dedicated nodes with no tenant code. Scope memory-backed volumes to the pod. Treat native shared-memory registration paths as requiring the same review as any other parser of untrusted length fields.

INF05. Observable cache behavior as a side channel

Advisory-backedAdversary A2

Distinct from INF01. INF01 is an authorization and storage-identity failure. INF05 is an observable side channel that persists even where direct access is correctly denied. Fixing one does not fix the other.

Mechanism. A cache hit is faster than a miss. Where an attacker can submit candidate content and observe latency, scheduling behavior, or exposed metrics, the cache becomes an oracle for what other principals have sent. This is the best-studied class in the whole taxonomy and has published vendor advisories [7] as well as a substantial research literature [8][9][10][11] behind it.

Why it recurs. It is inherent to sharing. Eliminating cross-principal cache timing leakage outright means eliminating cross-principal sharing, which is the entire economic argument for the cache. Partitioning and access-governed reuse materially reduce exposure but need verification rather than assumption, since leakage can arise from KV state, semantic caches, memory allocation, batching and scheduling independently. So this class is managed rather than eliminated, and the management decision is frequently never made explicitly.

Ask your stack.

  • Can an unauthenticated or low-privilege caller measure first-token latency precisely?
  • Are cache hit and miss counters exposed per-entry or per-tenant on a metrics endpoint?
  • Is prefix reuse permitted across trust domains, and was that a decision or a default?
Controls

Scope reuse to a trust domain rather than globally. Consider selective sharing policies for content that is genuinely public (system prompts, shared documents) with isolation for everything else. Restrict metrics granularity and access. Accept that timing noise is mitigation, not prevention.

INF06. Routing metadata treated as trusted input

Advisory-backedAdversary A1, A2

Mechanism. Gateways and routers accept headers or request fields that influence internal destination selection: target pod, model rewrite, backend hints, cache routing keys. If these are not stripped at the trust boundary, a caller steers internal traffic [12][13].

Be precise about which of two things you have. Where the header only selects among legitimate backends, it is internal request-routing manipulation. It becomes server-side request forgery only when it can make the service open a connection to an attacker-selected or policy-bypassing destination, which is typically the outbound artifact or media fetch path rather than backend selection.

Why it recurs. These headers are genuinely useful for internal components, and the same header namespace typically serves both internal and external callers. Sanitizer lists are maintained by hand and drift behind the features that add new headers.

Ask your stack.

  • What is the allowlist of headers permitted to cross from ingress into the mesh, and when was it last reconciled against the features that read headers?
  • Can a caller influence backend selection, model identity, or cache namespace via a header?
  • Does the outbound fetch path (artifacts, adapters, remote media) validate destinations against an allowlist, including after redirects?
Controls

Strip-by-default at ingress with an explicit allowlist. Reconcile that list in CI against the set of headers any component reads. Validate outbound fetch targets after redirect resolution, not before.

INF07. Artifacts and configuration as executable input

Incident-backedAdversary A4

Mechanism. Four distinct sub-cases, and they are worth separating because the controls differ [13][14].

Deserialization. Model checkpoints and cached artifacts in formats that carry executable constructs, loaded by components that treat the local cache or the artifact store as trusted.

Template evaluation in a data path. Configuration fields, chat templates and dataset descriptors rendered by a template engine. If the engine is not sandboxed, a field that looks like a numeric offset or a URL is a code-execution primitive. The controlling question is whether the environment is sandboxed, and it is answerable by reading one line, but that line frequently lives in a dependency rather than in the project under review.

References inside the artifact. Several scientific and array data formats let a file declare that its actual contents live at another path, which the reader follows on open. This defeats every path-validation control that inspects arguments, because the path is not an argument. It is data inside the file.

Resource abuse through the parser. Decompression bombs, oversized media decoding, pathological archives and deeply nested structures exhaust CPU or memory before any application logic runs. This sits with the others because the entry point is identical, an artifact the system was asked to parse, but the control is different: limits and timeouts rather than sandboxing.

Why it recurs. Convenience formats win on developer experience. And the safety of a parser is frequently a property of a transitive dependency’s version, which nothing in the reviewed project reveals.

Ask your stack.

  • Which components parse artifacts uploaded or named by users, and what formats do they accept?
  • For every template render on a data path: sandboxed environment, or not? Check the dependency, and check the pinned version.
  • Do your loaders resolve references embedded inside artifacts, and are those resolved paths validated against an allowlist?
Controls

Prefer formats without executable constructs. Eliminate template evaluation from configuration parsing, or sandbox it explicitly and pin the version that does so. Validate artifact-internal references, not just API arguments. Parse untrusted artifacts in a process with no credentials and no network.

INF08. Artifact path resolution outside the intended root

Advisory-backedAdversary A4

Mechanism. Storage initializers, model downloaders and cache backends construct local paths by joining attacker-influenced components: object keys, digests, manifest entries, layer names. Where containment is not enforced after resolution, writes and reads escape the intended directory. Publicly documented cases have reached arbitrary file write and code execution through exactly this route [15].

Why it recurs. Path handling is spread across per-backend implementations. One backend gets the containment check and the siblings do not, because the check was added in response to a specific report rather than to the class.

Ask your stack.

  • Enumerate every storage backend you support. Which of them enforce containment after path resolution? Diff the implementations against each other, not against the specification.
  • Are archive entries checked for traversal before extraction?
  • Is the resolved path re-validated after symlink resolution?
Controls

One containment helper, used by every backend, tested per backend. Resolve first, then verify the result is under the root. Extract archives with an explicit per-entry check.

Resolve-then-verify is necessary but not sufficient, because a symlink or a rename between the check and the write reopens the escape. Where practical use descriptor-relative filesystem operations so the check and the write refer to the same object, reject symlink traversal outright for untrusted extraction, and do the extraction in an unprivileged sandbox with no credentials.

INF09. Control-plane over-privilege

Incident-backedAdversary A3 escalating to A5

Mechanism. The initial defect gives execution or file read in a pod. What turns that into a cluster compromise is the environment: a mounted service account token with broad rights, a reachable cloud metadata endpoint, permissive admission policy allowing privileged pods and host mounts, cluster-scoped rather than workload-scoped credentials, and signing keys that permit minting further identity. This chain is the difference between an incident and a catastrophe, and the public record of agent-driven intrusion shows it traversed quickly once the first foothold existed [14].

Why it recurs. Operators are written to work across many cluster configurations, and broad permissions are the path of least resistance to that goal. The permissions are then reviewed, if at all, by people reading YAML rather than by people modeling an attacker already inside a pod.

Ask your stack.

  • Is the service account token automounted in inference workloads that do not call the API server?
  • Can a pod reach the instance metadata service?
  • Does admission reject privileged, hostPath, and host namespace sharing?
  • Are operator credentials namespace-scoped, or cluster-wide? Is any secret replicated across namespaces?
  • What can be minted with the keys reachable from a compromised worker?
Controls

Assume pod compromise and design for containment. Workload identity instead of long-lived credentials. Block pod-level metadata access. Enforce admission policy cluster-wide. Scope operator RBAC per namespace.

INF10. Silent removal of a configured control

ArchitecturalAdversary: any

The most underrated class here. An operator configures a security control that the platform genuinely supports. A component in the path does not implement it, ignores it, or drops it during a transformation. There is no error, no warning, and no documentation of the gap. The control appears configured and is inert [13][16].

This is a distinct class rather than an instance of the others, because the defect is not the missing enforcement. It is the absence of signal. A system that refused the request would be secure. A system that warned would be recoverable. A system that silently accepts leaves the operator with a false belief, and false beliefs are what get deployed to production.

Common shapes. Six, and they are worth listing separately because each is mechanically searchable.

  1. Parsed but unused. A configuration key is read and validated, and nothing ever acts on it.
  2. Dropped in translation. A field survives validation but is lost in a serialization round trip or a protocol adaptation between components.
  3. Implemented in one backend, not its sibling. The control exists on the path the maintainers use and not on the path shipped by default.
  4. Overridden by a default. A later default, profile, or environment variable silently disables what was configured.
  5. Documented but refactored away. The design doc describes a control a later change deleted.
  6. Fail-open on the unsupported case. A component meets an input it does not implement and proceeds without the protection instead of refusing.

Shape 6 is the most dangerous, and shape 3 is the most common.

Why it recurs. Nothing tests for it. Absence of a control produces no failing test, no error log and no metric. It is visible only by reading two code paths and comparing them, which is exactly the work that gets deferred.

Ask your stack.

  • For each security control you rely on, find the line that enforces it. Not the line that configures it, the line that acts on it.
  • Where a project ships two implementations of one function (two connectors, two languages, two backends), diff the security-relevant behavior. Parity gaps are where controls disappear.
  • Does any component accept a security-relevant field it does not implement? What does it do with it?
  • Do your documented controls have a test that fails when the control is removed?
Controls

Fail closed. A component that cannot honor a security-relevant input should refuse the request rather than serve it without the protection, because a warning can be missed and a refusal cannot. Assert controls in integration tests rather than trusting configuration. When adding a second implementation of anything, diff it against the first for security behavior specifically.

INF11. Request state that outlives or escapes its owner

Incident-backedAdvisory-backed for shapes 2 to 4Adversary: none needed for the cause of shape 1

Where the cache pool is smaller than the context limit, the deployment is disaggregated and the version is affected, any caller whose request is over the length threshold (A1 or A2) can trigger shape 1 reliably, and receives whatever earlier requests to the same model left in those pages. For shape 2 the maintainers state that a client can raise the odds but cannot choose the victim or the landing slots. Confidentiality and integrity are the core of this category. Two of the shapes below are availability failures and are secondary.

Mechanism. Serving engines recycle slots, pages and cache entries across requests to avoid the cost of clearing and re-creating them. Correctness then depends on every request’s lifecycle ending cleanly on every exit path, not only the successful one. State can fail in two directions. It can be inherited: a later request reads what an earlier one left, whether or not the earlier owner is still running. Or it can escape: a write lands after its owner is gone, inside memory that now belongs to another request. Neither is a wrong key and neither is observed through timing.

This is a different failure from INF01. A cache with a perfect key can still serve stale state if the entry behind the key was never fully written, and can still receive a late write after it was reissued. The fix is ownership, reset and error-path discipline, not key design.

Observed shapes. Five, ordered by strength of evidence.

  1. Reading pages this request never wrote. A receiver reserves memory for a whole request, the sender fills part of it, the transfer is reported complete, and the remainder holds earlier requests’ data. In the public postmortem [17] this happened on every request above a length threshold, because a request the engine had rejected was still passed through a prefill-to-decode handoff in a disaggregated deployment. The response was an ordinary success. The cache pool was sized at startup from free memory while the context limit was configured separately, and nothing forced the two to agree. The operator knew of the mismatch and expected the engine to reject what did not fit; its pre-launch tests checked response codes and throughput, not output content. The report found no evidence of deliberate exploitation. Impact: confidentiality.
  2. Late writes into reissued memory. An aborted request can have remote writes already in flight that cannot be recalled. If the receiver frees and reissues the destination before they land, the late writes arrive inside another request’s cache, with no error raised. The engine’s maintainers describe and reproduce it [22], including live on two GPUs, where the victim’s output turned into the aborted request’s prompt text. The data that leaks is the aborted request’s own context, so clients on unreliable connections are the ones exposed. The maintainers report that default disaggregated configurations were affected from the v0.4.x line (early 2025) until v0.5.21 for the two main transfer backends and v0.5.22 for a third, that the fix line was not backported to earlier release branches, and that operators saw occasional corrupted output they could not reproduce. A related failed-send path was fixed for one backend in v0.5.22, and for two others in a change merged on 2026-10-23, after that release. They state that a client can raise the odds, for example with long requests that disconnect mid-transfer, but cannot choose the victim or the landing slots, and that the flow is one way. The victim’s symptom is the same as in shape 1: it reads memory its own request never wrote, so the two cannot be told apart from the response. The cause differs. In shape 1 the write never happened; in shape 2 it happened too late. Cloudflare also lists same-node variants fixed earlier, such as an offload to host memory racing with a request’s retraction and a double release on an error path [17]. No CVE was assigned to this race at the time of writing: a search of NVD for the engine’s name found none describing it. Impact: confidentiality and integrity.
  3. Slot state not reset on reuse. A per-request constraint stored in a batch slot is not cleared when the batch is compacted. A later, unrestricted request that lands in the same slot inherits the earlier request’s token allowlist, and its output is constrained by a request that is not its own [18]. The response is an ordinary success. The original owner may still be running: the state is a stale copy, not data in flight. The advisory is rated Low. Its affected-versions field lists 0.31.0 as patched, while its text says the fix was merged but not yet in a tagged release. Impact: integrity.
  4. Two components disagree about what exists after a rejection. One component records an item as cached before a later check rejects the request, and the paired component never receives it. The next request that references the same item is answered from the first component’s belief and trips an assertion on the second [19]. The same shape appears in another engine, where tensor-parallel ranks disagreed after a failed cache restore [17]. Here the failure is visible, not silent. Impact: availability.
  5. Reported, below the advisory standard. Public issue-tracker reports describe, among other things, a single-node case close to shape 1: a mixed batch skips a checkpoint write but still donates the slot to the prefix cache, and the reporter measured about a tenth of evaluation answers changing while the server stayed healthy (open, with its fix also open) [23]. Others describe convolution-layer checkpoint state written to the wrong slot so that later prefix-cache hits restore stale or foreign state (merged fix, an addressing bug that is a range example only), and two related scheduler-stall reports that may share a cause (one open, one closed as completed on 2026-10-12, accessed 2026-10-27). They are listed to show the range, not as evidence of exposure. Impact: integrity and availability.

Shapes 1, 2 and 4 arise in error, rejection or abort paths. Shape 3 arises in normal batch compaction. Shapes 1 to 3 return an ordinary success. The class is not specific to model engines: CVE-2023-28858 and CVE-2023-28859 in a Python Redis client describe a cancelled request leaving a connection in a state where response data went to the client of an unrelated request [24]. A fuzzing study of serving engines [20] reports an overlapping family: silent cross-request contamination and delayed crashes arising from concurrency, caching and state reuse. It also covers performance interference, which is outside this category.

Why it recurs. Rejection and abort paths are written once, tested least, and exercised only by unusual traffic. The happy path is covered by every benchmark. Shapes 2 and 3 need overlapping requests to appear, so tests that send one request at a time cannot reach them. Shape 1 needs earlier traffic and then a request over the threshold, and a test that checks only status codes passes it. Long requests widen the window for shape 2: more data in flight means more writes still landing when an abort arrives. Patch latency matters too. In the incident, another user had reported the bug months earlier, and a fix for a related path was merged two days before the security report but was not yet in a release [17].

Ask your stack.

  • For every piece of per-request state in a shared structure (slot, page, queue entry, cache entry), where is it reset, and is that on every exit: success, rejection, cancellation, timeout, transport failure?
  • When a request is aborted, does the receiver wait for in-flight reads and writes from the other side to finish before reusing the memory, and what bounds the wait?
  • Where one component reserves and another fills, where are the two compared before the result is used? A log line or a silent adjustment is not a comparison.
  • What does each component believe after a request is rejected partway through, and do the paired components agree?
  • Do you compare the cache pool size with the context limit, read from the running engine on every prefill and decode node, after every change to weights, quantization, parallelism or memory fraction? Do not rely on a proxy to enforce the limit.
  • Do prefill and decode run matching versions during a rolling upgrade?
  • Do your tests send overlapping requests, including rejected and cancelled ones, and check the content of every response and not just its status?
Controls

Every exit path releases what was acquired exactly once, and not while any accessor can still touch it: remote or local, reader or writer. The receiver gets no signal per write for one-sided remote writes, so release on a positive drain acknowledgement from the sender. If only a timeout is available, derive it from a stated upper bound on how long writers can stay alive (for example the transport timeout plus a cap on transfer batch size), treat expiry as a backstop and not as proof, and never put the released content into a reusable cache. The maintainers describe quarantining a failed request’s cache and discarding it unread [22]. If no such bound exists, keep the slots out of use, count them against capacity, raise an alarm, and fence by restarting the receiving worker. Every degradation should lengthen the hold, not shorten it. Held capacity is about the abort rate times the hold time times the pages per request, so size for it and rate-limit aborts per tenant [22]. Pair aborts in the router so both halves of a request learn of them, and keep the load balancer from aborting a request mid-transfer [17]. Run matching versions of prefill and decode: if one side does not acknowledge, the other waits out its timeout [22].

On count checks, two different checks are in the record. Comparing the tokens transferred with the receiver’s own reservation is independent of the sender. Cloudflare’s proposed change did this [17], and its pull request shows as closed and unmerged on GitHub; neither post says whether the check was adopted elsewhere. Comparing against the length the sender publishes is not independent: the SGLang maintainers evaluated that and declined it, because the published length comes from the same sending-side accounting that signals success [22]. Compare against something the sender did not produce.

An end-to-end integrity check on transferred data helps, with three limits. A non-cryptographic checksum detects corruption and truncation, not deliberate writes, and only writes that land before the check. It is opt-in and does not yet cover every model architecture, so confirm in the logs that requests are actually being verified rather than assuming the flag protects you [17]. And we know of no production engine that verifies page ownership at read time: Cloudflare built a page-tag prototype that cost under one percent in its tests and disabled it for reliability issues, and is working on a production version [17]. Zeroing pages on release (a draft upstream proposal [17]) would blunt shape 1, because unwritten pages would read as zeros, but it does not stop a late write, which lands afterwards.

Check capacity against limits before serving. Validate response content under concurrent, mixed-outcome load as part of release testing, using canary markers.

Boundary with other categories. The test against INF04 is who is meant to enforce the boundary. INF04 is enforced by the operating system, the driver, the device or the orchestrator. INF11 is the serving system’s own bookkeeping of request lifecycles, including between its prefill and decode workers on different hosts. Where memory is shared between engine processes, the driver’s access control is INF04 and the memory’s lifetime is INF11. INF01 is about which entry a request is allowed to reach; INF11 is about whether the entry it reaches is clean and whether its writer is still its owner. INF10 is about a control that is silently inert; INF11 is about state that silently persists or escapes. INF03 is about trusting a peer’s claimed identity. Whether an acknowledgement is authentic and fresh, from the right writer for the right request, is INF03 territory (the maintainers fixed a reused request id consuming a stale acknowledgement [22]). What the acknowledgement means is INF11.

4. Cross-cutting patterns

Four patterns generate defects across several categories at once. They are more useful than the categories when you are deciding where to look first.

The sibling that skips the gate. Where one operation has several implementations (storage backends, transports, connectors, language ports), the check present in most is absent from one. The detector is mechanical: enumerate the call sites of the guard, enumerate the call sites of the operation, and diff. This finds real defects faster than reading any single path carefully.

Derived identity as an accidental boundary. Any value used to address shared state is a boundary whether or not it was designed as one. Ask what is not in that value.

Documentation and code drift in the direction of insecurity. Documented controls that the code does not implement are common enough to be a search strategy. Read the design docs, then grep for the enforcement.

Content-derived trust. Model output, artifact contents and request metadata are treated as control input because they arrive from a component that is nominally internal. Provenance does not survive a hop unless it is carried explicitly.

5. Default review order

For a shared, networked deployment. This sequence optimizes risk reduction per unit of review effort. It is a starting hypothesis rather than a severity ranking, and it should be adapted for single-tenant, air-gapped or non-Kubernetes environments, where several of these steps collapse to nothing.

  1. Enumerate listening sockets and authenticate or close them. INF02. Cheapest, highest yield, and it is the precondition for most remote compromise.
  2. Assume pod compromise and fix the blast radius. INF09. Metadata access, token automounting, admission policy. This work is independent of any inference-specific defect and caps the damage of all of them.
  3. Establish what is in your cache key and whether it crosses a trust boundary. INF01, INF10.
  4. Strip routing metadata at ingress and validate outbound fetches. INF06.
  5. Inventory artifact parsers and sandbox or replace the executable formats. INF07, INF08.
  6. Decide your cache sharing policy explicitly. INF05. The decision matters more than the setting.
  7. Test overlapping, rejected and cancelled requests, and check response content. INF11. A sequential test with status-code checks cannot reach it.

6. Testing your own deployment

The categories above are only useful if they turn into checks. These are deliberately simple, and each has a clear pass condition.

A positive control comes first, always. Before concluding that a boundary holds, prove your test can observe it failing. A test where two tenants correctly do not share a cache entry is indistinguishable from a broken test, unless you first show the same test detects sharing when sharing is expected.

That single discipline invalidates a large fraction of informal security testing.

Run these only where you are authorized to. Several involve creating privileged pods, reading credentials, reaching metadata endpoints, flushing caches, or issuing requests that resemble SSRF. Staging or a dedicated test cluster, not production, and with the platform owner’s agreement.

Test effective isolation, not just the key. Comparing derived identifiers is a useful first check and an insufficient last one, because leakage can arise from timing, telemetry, batching or scheduler placement while the keys differ correctly. The stronger pass condition is that a priming request from one principal changes nothing observable for another: not the hit state, not the first-token latency distribution, not the cache telemetry, not the stored object.

CheckMethodPass condition
Cache isolation, staticSame prompt, two principals with different isolation context, compare derived storage identity and the resulting stored objectDistinct identity and distinct object
Cache isolation, effectivePrincipal A primes a prefix, principal B sends the same prefix and measures hit state, time-to-first-token and telemetryNo cache-derived signal for B that is statistically distinguishable from the baseline variance measured with non-matching prefixes under the same load
Isolation control is honoredSend a request carrying an isolation input, through each connector or backend you deployHonored, or explicitly refused, never silently ignored
Internal exposurePort scan a running deployment from a pod in another namespaceNo unauthenticated service reachable
Blast radiusFrom a shell in an inference pod: reach metadata, read the SA token, list secrets, create a privileged podAll refused
Artifact containmentUpload an artifact whose internal references point outside the intended rootRejected, not resolved
Template safetyIdentify every template render on a data path and check the environment type in the pinned dependency versionSandboxed
ParityDiff security behavior between every pair of sibling implementationsNo gaps

7. Limits of this document

It is a threat model, so it describes where to look rather than what you will find. It cannot tell you whether a given system is affected by any category, and a category marked architectural is not evidence that anyone’s implementation is defective.

The categories overlap deliberately. A single real incident typically traverses several: an artifact parser (INF07) reached through a routing path (INF06), escalated through control-plane over-privilege (INF09). Taxonomies are for directing attention, not for classifying incidents after the fact.

Finally, the evidence classes will age. Categories marked architectural today are the ones most likely to acquire public exemplars, because they describe the parts of this stack that are deployed widely and audited least.

If you are reviewing a serving stack against this model and want a second pair of eyes, write to hello@hedgerow.dev.


References

On naming. The analysis above names no products deliberately, because the categories are about mechanisms rather than about who is currently affected. The citations do name them, because an uncheckable citation is worse than none. Naming a project here means it published or was subject to a public finding, which is a normal part of a maintained codebase and is not a judgement about its security posture. Several of the projects cited have among the better disclosure practices in this space, which is precisely why public records exist to cite.

Identifiers were checked against OSV or the publishing vendor in August 2026; all URLs accessed August 2026. References 17 to 24 and corrections to earlier entries were checked on 27 October 2026. Publication dates are given only where verified, rather than inferred.

Advisories and research

  1. CVE-2026-10813 (GHSA-3hh9-752g-5g22, PYSEC-2026-3480). github.com/advisories/GHSA-3hh9-752g-5g22. LMCache, hex_hash_to_int16 in lmcache/integration/vllm/utils.py, versions up to 0.4.6. Truncated 16-bit hash permits crafted collision between multimodal cache entries. Supports INF01 subtype (c), weak identifier. It does not support subtypes (a) or (b).
  2. CVE-2023-48022. nvd.nist.gov/vuln/detail/CVE-2023-48022. Ray, versions 2.6.3 and 2.8.0. Remote code execution via unauthenticated job submission on an exposed dashboard. Disputed by the vendor as a documented deployment assumption, which is itself the INF02 argument. Supports INF02.
  3. Oligo Security, “ShadowRay” and “ShadowRay 2.0” (March 2024 and November 2025). oligo.security. Public reporting of in-the-wild mass exploitation of [2] for cryptomining and cluster takeover. Supports INF02 as incident-backed rather than advisory-backed.
  4. CVE-2025-47277 (GHSA-hjq4-87xh-g4fv). github.com/advisories/GHSA-hjq4-87xh-g4fv. vLLM, PyNcclPipe communication service. Remote code execution via deserialization on a network-reachable coordination interface. Supports INF02 (reachability plus absent authentication) and INF07 (deserialization). Explicitly not evidence for INF03.
  5. CVE-2025-32444 (GHSA-hj4w-hm2g-p6w5) and CVE-2025-29783 (GHSA-x3m8-f7g5-qhm7). GHSA-hj4w-hm2g-p6w5, GHSA-x3m8-f7g5-qhm7. vLLM, Mooncake integration. Remote code execution via attacker-supplied connection parameters. Supports INF02, INF07.
  6. Kubernetes Pod Security Standards, kubernetes.io; SPIFFE/SPIRE workload identity specification, spiffe.io. Design guidance for host-namespace restriction and for identity that a peer proves rather than asserts. Supports INF03, INF04 as architectural.
  7. CVE-2025-46570 (GHSA-4qjh-9fv9-r85r). github.com/advisories/GHSA-4qjh-9fv9-r85r. vLLM. Timing side channel in chunk-based prefix caching. Supports INF05.
  8. Song et al., The Early Bird Catches the Leak: Unveiling Timing Side Channels in LLM Serving Systems, arXiv:2409.20002. arxiv.org/abs/2409.20002. INF05.
  9. Zheng et al., InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks, arXiv:2411.18191. arxiv.org/abs/2411.18191. INF05.
  10. Selective KV-Cache Sharing to Mitigate Timing Side-Channels in LLM Inference, arXiv:2508.08438. arxiv.org/abs/2508.08438. INF05 mitigation.
  11. PrefixWall: Mitigating Prefix Caching Side Channels in Shared LLM Systems, arXiv:2603.10726v2 (v1 was titled “CacheSolidarity”). arxiv.org/abs/2603.10726v2. INF05 mitigation.
  12. CVE-2023-43654. nvd.nist.gov/vuln/detail/CVE-2023-43654. TorchServe management interface. Server-side request forgery, part of the “ShellTorch” chain. Supports INF06 outbound-fetch subtype.
  13. vLLM Project, “Security” documentation (accessed August 2026). docs.vllm.ai/en/stable/usage/security. Covers trusted-network assumptions inherited from PyTorch Distributed, cache-directory trust and absence of cryptographic integrity verification on cached artifacts, media URL allowlisting and redirect handling, and the path-limited scope of API-key authentication. Supports INF02, INF06, INF07.
  14. Hugging Face, “Agent intrusion: a technical timeline” (2026). huggingface.co/blog/agent-intrusion-technical-timeline. Operator postmortem of an intrusion in which an autonomous agent reached cluster-admin through a dataset processor. Two initial vectors: a template expression in an fsspec reference:// numeric field, and an HDF5 split declaring raw data at a local filesystem path. Escalation via projected service-account tokens, instance metadata, and privileged pods with host mounts. Supports INF07 (template evaluation, artifact-internal reference) and INF09 (escalation chain). Cited as one incident traversing several categories, which is the normal shape and the reason section 7 warns against using the taxonomy to classify incidents.
  15. CVE-2024-37032 (“Probllama”). nvd.nist.gov/vuln/detail/CVE-2024-37032. Ollama before 0.1.34. Path traversal via unvalidated digest strings in a model manifest, reaching arbitrary file write and code execution. Supports INF08.
  16. LMCache issue #2878 (closed as not planned, 2026-07-13) and PR #2880 (closed unmerged, 2026-10-23). issue 2878, PR 2880. A per-request isolation input supported by one integration path and not propagated by the default one, with no error or warning on the unsupported path. Supports INF10 as a public illustration of shape 3 and shape 6.
  17. Cloudflare, “Cross-request KV cache exposure in the GLM-5.3 Workers AI model, and our remediation with SGLang” (26 October 2026). blog.cloudflare.com. Operator postmortem of cross-customer data appearing in responses on a long-context model served with disaggregated prefill and decode, with the engine fixes referenced from the post. Supports INF11 shape 1 as incident-backed.
  18. GHSA-6cxc-2vcg-w5qc (no CVE assigned in the advisory). github.com/vllm-project/vllm. vLLM, InputBatch.condense leaves a stale allowed_token_ids mask on recycled batch rows, so a later unrestricted request inherits an earlier request’s allowlist. Published 2026-10-06, rated Low (CVSS 3.7), patched in 0.31.0 per the advisory. Supports INF11 shape 3.
  19. CVE-2026-105753 (GHSA-ph3r-5jfg-f84f). github.com/advisories/GHSA-ph3r-5jfg-f84f. vLLM, mirrored multimodal cache state desynchronises after a request is rejected partway through, so a later request reusing the same media hash trips an assertion in the engine core. Published 2026-09-28, moderate, availability impact only. Patched in 0.28.0 per the advisory metadata, whose body text lists affected versions differently. Supports INF11 shape 4.
  20. “Continuous Discovery of Vulnerabilities in LLM Serving Systems with Fuzzing” (GRIEF), arXiv:2605.11202. arxiv.org/abs/2605.11202. Greybox fuzzing with timed multi-request traces on vLLM and SGLang; the abstract reports 15 vulnerabilities, 10 confirmed by developers, including 2 CVEs, spanning cache isolation failures, interference and crashes. Supports INF11 as research.
  21. CVE-2023-4969 (“LeftoverLocals”). nvd.nist.gov/vuln/detail/CVE-2023-4969; Trail of Bits, 16 January 2024, blog.trailofbits.com. A GPU kernel can read another kernel’s data through local memory. The authors recovered another process’s LLM session on an AMD GPU, across process and container boundaries; AMD, Apple, Qualcomm and some Imagination GPUs were affected, NVIDIA reported its devices were not. A proof of concept, with no real-world exploitation reported. Supports INF04 as advisory-backed for cross-process leakage on some GPUs.
  22. SGLang team, “SGLang security update: improving request isolation” (26 October 2026). lmsys.org. The engine maintainers’ companion to [17]. Describes the aborted-transfer late-write race, its live reproduction, the deferred-release fix, and a commit-time length check they declined. Supports INF11 shape 2 as advisory-backed.
  23. SGLang issue tracker, issues 39342, 39271 and 41841, pull requests 41144 and 39526. Public bug reports and a merged fix, not advisories; states checked 2026-10-27 (39342 and 39271 open, 41841 closed as completed on 2026-10-12). Supports INF11 shape 5 as illustration only.
  24. CVE-2023-28858 and CVE-2023-28859 (redis-py). nvd.nist.gov/vuln/detail/CVE-2023-28858, nvd.nist.gov/vuln/detail/CVE-2023-28859. A connection left open after cancelling an async command can send response data to the client of an unrelated request. NVD notes the first record was created in response to reports about ChatGPT. Supports INF11 as the same class outside serving engines.

Adjacent foundations, not LLM-specific but load-bearing for several categories: cache side-channel methodology (Prime+Probe, Flush+Reload, and partitioning as mitigation); workload identity systems (SPIFFE/SPIRE, service-mesh mTLS); serialization and supply-chain safety (safe tensor formats, deserialization risk in general-purpose object formats, archive extraction, and template sandbox escape research); and Kubernetes hardening (NetworkPolicy, RBAC least privilege, admission control, metadata service protection).

Follow @Hedgerowdotdev on X