An SGLang flaw let an attacker run code on NEAR AI's confidential inference server
NEAR AI says an attacker used a remote code flaw in SGLang, the open-source serving engine, to run code on one inference server on Nov. 8 and possibly watch confidential requests.
NEAR AI, which sells AI inference that runs inside hardware-protected enclaves, said on Nov. 9 that an attacker exploited a remote code execution flaw in SGLang, the open-source inference engine on its servers. The attacker ran code on one inference server and, according to the company, could have observed requests processed there on Nov. 8, including requests sent in its confidential mode.
From that foothold the attacker reached an internal system behind Private Chat, a product NEAR AI had already deprecated, and downloaded names, email addresses and, for some accounts, plan and balance details for about 100 users. The attacker also pulled chat history, settings and logs for 18 agents on a legacy deployment that did not run inside the enclave, and found two cloud customers' API keys written in logs. NEAR AI says it found no sign that stored Private Chat conversations or uploaded files were taken.
The company revoked sessions and administrator credentials, replaced agent tokens, took Private Chat offline, patched SGLang on all inference servers and reported the flaw to the SGLang project. It has not named a CVE or the SGLang version, and has not said when it detected the intrusion. NEAR AI's own explanation is the core lesson: confidential computing protects data from the operator and the host, not from flaws in the software running inside the protected environment.
SGLang already carried a long list of public flaws. CERT/CC published five notes on it this year covering at least 14 vulnerabilities, several involving Python's unsafe pickle loader, and its July 30 note said no patches were available from the maintainers. Which of those, if any, NEAR AI's attacker used is not known.
Why it mattersSGLang is one of the three engines most often used to serve open-weight models on owned hardware, and this is the first public case of an attacker taking over a production SGLang server and reading user data from it.
For consultantsConsultants running SGLang for clients should set SGLANG_USE_PICKLE_IPC to false, bind its internal sockets to loopback, keep API keys on, block unused admin endpoints at the proxy and strip keys from logs before shipping them anywhere.