NEAR AI, an inference platform that sells privacy through trusted execution environments (TEEs), disclosed on November 9, 2026 that an attacker ran code on one of its servers through a remote execution flaw in SGLang, the open-source inference engine. The lesson isn't the incident itself: it's what a TEE does and doesn't protect.
According to NEAR AI's incident report, as covered by Decrypt (November 10) and in Rajesh Beri's analysis (November 11), an attacker used a remote code execution (RCE) vulnerability in SGLang to run commands on an inference server and move from there to other parts of the infrastructure. NEAR AI reported the flaw to the SGLang developers and did not identify which CVE was exploited.
NEAR AI says that on detecting the attack it revoked all sessions and administrative credentials, replaced agent tokens, took Private Chat offline and deployed a patch across all of its inference servers. It completed the credential rotation and a forensic review, notified those affected and contacted the owners of the 18 agents one by one. It did not disclose how long the attacker was inside or what exactly the patch changed.
The NEAR AI Cloud product uses a TEE so that prompts stay encrypted and isolated even from the server operator. The company itself made the point clear: the TEE "does not protect against a vulnerability in the software running inside the environment." The reason is mechanical: an inference engine has to decrypt the prompt to run the model, so anyone who manages to execute code inside the engine sees the plain text. Beri sums it up this way: the enclave held, but the engine inside it did not.
A subtler point, cited from a Cloud Security Alliance research note: remote attestation will still validate a measured image even if it contains a vulnerable version. For attestation to mean anything, the provider would have to reject measurements tied to versions with known flaws and publish a manifest of component versions. Transparency note: the sources differ on whether the 18 agents were inside the confidential environment; Decrypt says they were not.
Beri lists at least 14 SGLang vulnerabilities across five CERT/CC advisories in 2026. None of the sources confirm which one the attacker used, so this is context, not attribution:
Beri points out that the CERT/CC advisories listed no vendor patch at the time of publication, and that he could only confirm the fix for the March flaws (v0.5.10, according to third-party trackers). In other words: if your company self-hosts SGLang, the pattern is insecure deserialization and exposed admin ports, and several mitigations depend on your configuration.
SGLANG_USE_PICKLE_IPC=false (not enough on its own) and bind --dist-init-addr to loopback; block /load_lora_adapter_from_tensors and /update_weights_from_disk if unused; restrict /server_info, which can return API keys; always configure API keys; search inference logs for keys and tokens, redact them and rotate them.Sources: Decrypt (Nov 10, 2026), Rajesh Beri's analysis (Nov 11, 2026) based on the CERT/CC advisories and the Cloud Security Alliance note. NEAR AI's original report was not consulted directly.
Carlos Montiel is an enterprise AI solutions architect. He implements LLMs, Agents, RAG, and orchestrators for companies across Guatemala and Latin America. Reach out for a consultation.
Contact Carlos Montiel