An attacker exploited a remote code execution (RCE) vulnerability in SGLang, an open-source inference engine, allowing unauthorized code execution on NEAR AI’s inference server.
The breach has impacted NEAR AI, leading to potential data exposure from around 18 agents and approximately 100 users.
This incident highlights significant vulnerabilities in widely-used AI inference technologies, emphasizing the need for robust security mechanisms in critical systems.
- Conduct a full audit of all SGLang instances in use.
- Implement security controls to mitigate RCE vulnerabilities.
- Enhance monitoring of inference server activities.
- Notify affected users and agents about potential data exposure.
Key Technical Findings
Remote Code Execution (RCE)
SGLang inference engine, NEAR AI inference servers
Exploitation of RCE vulnerability in SGLang
Remote code execution on inference server
Not specified in the source material
Not specified in the source material
Not specified in the source material
Not specified in the source material
Not specified in the source material
Potential access to sensitive data from 18 agents and 100 users
High – potential data leak and service disruption
Technical Background
The incident involves a critical remote code execution (RCE) vulnerability within the SGLang inference engine, which serves as an open-source component widely utilized for AI model inference. Such vulnerabilities allow attackers to run arbitrary code on affected systems, potentially leading to severe security breaches. The exploitation of this vulnerability suggests inadequate input validation or insufficient sanitization mechanisms within the affected software.
The primary objective of exploiting this type of vulnerability is often to gain unauthorized access to sensitive data or to disrupt services. In this case, the attacker had the ability to view requests being processed on the compromised server, including those handled within a trusted execution environment (TEE), indicating that even sensitive operations may have been exposed.
Attack Chain Analysis
-
Initial Access
ActivityThe attacker exploited the RCE vulnerability in SGLang.
EvidenceLogs from the affected server showing unauthorized code execution.
TelemetryEDR logs indicating anomalies or unauthorized commands.
Detection opportunityMonitor for unusual command executions via EDR solutions.
Deep Technical Behavior Analysis
The exploitation of the RCE flaw likely involved leveraging crafted inputs that bypassed existing validation checks, allowing code execution within the context of the server’s operational environment. Such vulnerabilities are common in software that processes untrusted input without adequate safeguards. Attackers typically employ techniques such as command injection or unsanitized input execution to exploit these weaknesses.
Once access is gained, the attacker may deploy additional payloads or scripts to maintain persistence or escalate privileges, although specific methods used in this incident remain unspecified. Defensive mechanisms should include comprehensive input validation and stringent logging to trace any anomalies promptly. Continuous monitoring is vital to detect potential lateral movement or data exfiltration attempts.
Indicators of Compromise
Indicators of Behavior
| Behavioral Indicator | Description | Data Source | Confidence |
|---|---|---|---|
| Unusual Command Execution | Execution of commands not typically observed in normal operation. | EDR logs, Sysmon events | Potential |
Detection Engineering Guidance
index=edr process=sglang (command_line='*') | stats count by user, command_line
index=network src_ip=* | stats count by dest_ip, dest_port | where count > threshold



