Appsecure logo

CVE-2026-7669: Medium Vulnerability in SGLang

A medium-severity vulnerability in SGLang can lead to remote code execution due to improper handling of security settings. Organizations should address this issue promptly to mitigate risk.

MEDIUMPublic ExploitCVSS 6.3 · Published May 2, 2026

Not a customer? See how AppSecure simulates real world attacks to protect your infrastructure.

Speak to Experts

Organizations should be aware that this vulnerability has been published and may be actively exploited. The exploitability of this vulnerability is considered difficult, but the potential impact is significant, demanding immediate attention.

Risk to organizations includesunauthorized access to sensitive data and execution of malicious code, which can compromise system integrity and confidentiality.

Organizations should prioritize patching immediately.

Vulnerability Details

A vulnerability was detected in sgl-project SGLang up to 0.5.9. Impacted is the function get_tokenizer of the file python/sglang/srt/utils/hf_transformers_utils.py of the component HuggingFace Transformer Handler. The manipulation of the argument trust_remote_code with the input False as part of Boolean results in code injection. The attack can be executed remotely.

The complexity level of the attack is high, and the exploitability is considered difficult. In get_tokenizer(), when the caller passes trust_remote_code=False and HuggingFace transformers v5 returns a TokenizersBackend instance (the generic fallback for tokenizer classes not in the registry), SGLang silently re-invokes AutoTokenizer.from_pretrained with trust_remote_code=True, overriding the caller's explicit security setting.

A model repository containing a malicious tokenizer.py referenced via auto_map in tokenizer_config.json will execute arbitrary Python in the SGLang process during this second call. No log line or warning is emitted. The override affects all current SGLang versions because transformers==5.3.0 is pinned in pyproject.toml.

Technical Analysis

The root cause of this vulnerability stems from improper handling of security settings in the get_tokenizer function. When trust_remote_code is set to False, the function incorrectly overrides this setting, leading to potential remote code execution.

The attack vector is network-based, and the attack complexity is high, meaning that a skilled attacker must craft a specific payload to exploit this vulnerability. No user interaction is required, and privileges are not needed for exploitation.

Risk & Impact Analysis

Organizations utilizing SGLang up to version 0.5.9 should assess their risk exposure. The ability for attackers to execute arbitrary code can lead to severe breaches of confidentiality, integrity, and availability, representing a substantial risk to organizational operations.

The blast radius could be significant, as the attack could propagate through various parts of the application or system utilizing the affected component. Organizations should evaluate their deployment of SGLang and prioritize response actions based on the severity of this vulnerability.

Exploitation Status

Signal

Status

Known Exploit

Yes

Public PoC

Yes

Actively Exploited

No

Ransomware Use

No

Affected Versions

All versions prior to vendor patch are affected, specifically SGLang up to 0.5.9.

Mitigation & Remediation

Organizations should ensure they update to the latest version of SGLang to mitigate the risk associated with this vulnerability. If a patch is unavailable, consider implementing workarounds such as restricting the use of the affected components and monitoring for unusual activity.

Detection Guidance

Monitor logs for any unauthorized access attempts or unusual activity related to the SGLang component. Implement network controls to restrict access to the affected service and maintain regular audits of system changes.

AppSecure Threat Intelligence Insight

The long-term significance of this vulnerability highlights the challenges of managing dependencies and security settings in complex software systems. Security teams should learn from this incident and implement better validation mechanisms.

For strategic defensive takeaways, organizations should consider adopting comprehensive security assessments, including continuous security testing and robust dependency management practices to prevent similar vulnerabilities from arising in the future.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Latest CVEs. Recently published vulnerabilities from the NVD database.

View all vulnerabilities
CVE IDSeverity
CVE-2025-65418HIGH
CVE-2025-65417MEDIUM
CVE-2025-65416MEDIUM
CVE-2025-65415MEDIUM
CVE-2025-61314HIGH

Protect Your Business with Hacker-Focused Approach.