
On November 8, an attacker exploited a remote code execution flaw in SGLang, the open-source inference engine, on a NEAR AI production server. They got code execution, read in-flight requests, grabbed API keys from logs, and exfiltrated account details for about 100 users and 18 legacy agents. NEAR AI had confidential computing enabled on those servers. It didn't matter.
That's the story I keep coming back to this week, because it closes a loop a lot of teams have been leaving open.
What SGLang Is and Why This Matters
If you're running self-hosted inference, you've probably encountered SGLang. It's one of the fastest open-source serving frameworks for large models. It handles batching, KV cache management, and constrained decoding. A lot of teams run it because it's significantly faster than naive HuggingFace Transformers serving, and it's what NEAR AI used for their inference infrastructure.
The specific CVE hasn't been fully disclosed yet. NEAR AI confirmed a remote code execution flaw in SGLang allowed the attacker to get code execution directly on the inference server.
That's not a prompt injection. That's not a jailbreak. That's a classic software vulnerability in a dependency you're probably running right now.
NEAR AI's incident report confirms the attacker could observe in-flight requests on that server, including confidential-mode ones, from that foothold.
Confidential Computing Doesn't Cover This
NEAR AI's setup included confidential computing, which is worth understanding precisely. Confidential computing (TEEs, trusted execution environments) protects data from the host infrastructure: the cloud provider, the hypervisor, other tenants. It moves the trust boundary so your code runs in an encrypted enclave that even the underlying VM host can't inspect.
Here's the problem: if the code running inside that enclave has an RCE vulnerability, the attacker gets code execution inside the enclave. The confidentiality guarantee holds against the host. It does nothing against bugs in your own inference code.
This is not a knock on confidential computing. It still protects against a real class of supply-chain and hypervisor attacks. But it is not a substitute for running patched software. If you're marketing a "confidential inference" feature to users, your threat model needs to be explicit about where the boundary sits. Users deserve to know.
AgentCorruption: The Lateral Movement Problem
The same week this broke, Zenity Labs' AgentCorruption research got renewed attention. Disclosed at SecTor 2026 in October, the finding: a single prompt to a public-facing AWS Bedrock AgentCore agent with a web-request tool could reach the instance metadata endpoint (IMDS). From there, the agent retrieved the IAM credentials of its underlying machine, and those credentials had access to invoke other agents, read private sessions, and pull secrets from Secrets Manager.
One compromised public agent. Every agent in the account.
AWS's position is that this is "expected and documented behavior" rather than a vulnerability. I understand the argument. IMDS access isn't a secret. But it misses the practical reality: most teams deploying Bedrock AgentCore don't think about lateral movement between agents, and the default execution role permissions are broad enough that one agent compromise covers the whole account.
The pattern is the same as the NEAR AI incident: the AI-specific layer inherits a trust that the underlying system hasn't earned.
What to Actually Do
These aren't theoretical risks. Here's what I'd change if I were auditing an inference or agent deployment today.
Inference infrastructure:
- Treat SGLang, vLLM, and Triton as first-class security dependencies. Subscribe to their GitHub security advisories. Set a policy to patch RCE-class CVEs within 48 hours.
- Never expose inference ports directly to the internet. Put them behind an internal load balancer. Your API gateway is the only thing that should talk to the inference process.
- If you're running SGLang with pickle-based IPC (default for multi-process setups), lock down IPC socket permissions. This was called out specifically in the NEAR AI writeup.
Agent credentials:
- Scope IAM roles tightly. An agent that generates text should not have secretsmanager:GetSecretValue. Use separate execution roles per agent, not a shared account-level role.
- Enforce IMDSv2 (require_imds_v2: true in your instance metadata settings) so IMDS requests need a session token. A tool-call to a plain HTTP path won't get credentials.
- Audit which agents have web-request or HTTP-fetch capabilities. Those are the pivot points for IMDS-style attacks.
Transparency:
- If you're offering confidential inference to users, document the threat model. TEEs protect against the host, not bugs in your inference code. The boundary matters.
The Pattern
Both incidents follow the same shape: a team does careful work on the application layer (credential management, IAM policies, encryption at rest) and then runs an unpatched inference engine on a port that shouldn't be public, or deploys an agent with a role that's broader than it needs to be.
I haven't run a full security audit of a large-scale agent deployment, but I'd bet most of them haven't updated their inference engines in months. NEAR AI moved fast after discovery, which is good. But they still haven't confirmed how long the attacker had access before detection. That dwell time is what costs you.
The inference layer is a primary attack surface now. Build like it.