SGLang RCE Exploit Breaches NEAR AI, Steals Data From 18 Agents and About 100 Users
About 3 min read
securityaisoftwarehardware
An attacker exploited a remote‑code‑execution (RCE) vulnerability in SGLang, the open‑source inference engine used by NEAR AI, and gained execution rights on one of the company’s inference servers on Sunday. The breach allowed the intruder to view and manipulate requests processed by that server, including those submitted in “confidential mode.” Confidential mode is intended to keep request data private by running it inside a trusted execution environment (TEE), a hardware‑based enclave that normally prevents even the service provider from seeing the contents. However, NEAR AI explained that the TEE cannot defend against flaws in the software it hosts, and because SGLang runs inside the TEE, the attacker could reach the confidential requests once the RCE was successful.
The compromised server was isolated shortly after the intrusion was detected, but the attacker used the foothold to move laterally within NEAR AI’s network. The intruder accessed an internal system that supported Private Chat, a product that the company had already deprecated. From that system the attacker downloaded account details for roughly one hundred users, including email addresses, names, and, for some accounts, subscription plan and balance information. No evidence was found that stored Private Chat conversations or uploaded files were accessed.
Further lateral movement reached an older deployment of NEAR AI Agents that did not operate inside a TEE. Eighteen AI agents on that deployment were compromised, and the attacker extracted data such as chat histories, configuration settings, and logs from each agent. In addition, logs revealed two customers’ NEAR AI Cloud API keys, which have since been revoked by the company.
In response to the incident, NEAR AI took a series of emergency remediation steps. All active user sessions and administrator credentials were revoked, and all agent tokens were regenerated. Private Chat was taken offline, and a patch for the SGLang vulnerability was deployed across every inference server in the fleet. Remaining credentials were rotated, and a comprehensive forensic review was completed. Access to the NEAR AI Cloud service has now been restored.
NEAR AI reported the vulnerability to the maintainers of the SGLang project, but the company has not disclosed a CVE identifier, the specific SGLang versions affected, or whether the upstream project has issued a fix. The company has contacted the approximately one hundred users whose personal details were confirmed as accessed, sending notifications from security@near.ai with guidance on next steps. Users who have not received such a notice were told they do not need to take any action. The company also cautioned all users to be vigilant about unsolicited messages concerning account or balance information.
The incident raises broader concerns about the security of confidential‑mode processing that relies on TEEs. While TEEs protect data from external observation, they do not mitigate vulnerabilities in the software they execute. In this case, the SGLang flaw allowed an attacker to bypass the enclave’s isolation and read confidential requests. The breach also highlights the risk of legacy deployments that lack TEE protection; the older NEAR AI Agents environment was not shielded, making it an attractive target for lateral movement.
The fallout may affect third‑party services that integrate with NEAR AI. In an October 15 technical write‑up, Brave Software disclosed that its Leo assistant runs chats with the GLM 5.3 Flash model inside a TEE operated by NEAR AI. NEAR AI has not confirmed whether the compromised server handled any of those Brave‑Leo chats, leaving an open question for Brave’s users about potential exposure.
Overall, the episode underscores the importance of rapid patching of open‑source components, rigorous credential rotation after a breach, and the need for continuous monitoring of both modern enclave‑based workloads and legacy systems that remain in production. For ShieldPack readers who develop or deploy AI‑driven applications, the incident serves as a reminder to audit the software stack inside TEEs, maintain up‑to‑date versions of inference engines like SGLang, and enforce strict access controls on all API keys and agent tokens.
A new technique called Weight2Shell has been disclosed by cybersecurity researchers, which allows artificial intelligence (AI) models to produce different behavior on different machines, eve…
Season 2: Legacy for Gears of War: E‑Day launches tomorrow, marking the franchise’s twentieth anniversary and offering a wave of new content for both veteran players and newcomers. The updat…
Hela: of Mice & Magic is set to launch on December 1, 2026 for Xbox Series X|S, and the title will be available on day one through Xbox Game Pass. The game presents an open‑world adventure i…