CVE-2026-7302: SGLang path traversal in multimodal generation runtime

CVE-2026-7302 · Severity: critical · CVSS 9.1 · Published 2026-05-18

SGLang is an open-source framework used to run and serve large AI models. A security flaw in its image and video processing component allows an unauthenticated attacker to upload malicious files to any location on the server's storage. This could allow an attacker to overwrite critical system files or gain full control over the server, potentially leading to data theft or service disruption.

Technologies: sglang (PyPI), SGLang Project SGLang. Vendors: PyPI, SGLang Project.

Quick answers

Is CVE-2026-7302 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-7302 being exploited in the wild.
How severe is CVE-2026-7302?
Critical severity, with a CVSS score of 9.1, published 18 May 2026.
Which products and versions are affected?
sglang (PyPI) ECOSYSTEM:introduced=0.5.5,last_affected=0.5.12; SGLang Project SGLang >= 0.5.5, <= 0.5.12, v0.5.5 and later.
Is there a fix for CVE-2026-7302?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-7302 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-7302?
Check whether you run sglang (PyPI) or SGLang Project SGLang at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A path traversal vulnerability exists in SGLang's multimodal generation runtime within the _save_upload_to_path helper function. The application fails to sanitize the 'filename' parameter in multipart form uploads to the /v1/images/edits and /v1/videos endpoints, directly joining the user-supplied string with the uploads directory using os.path.join. An unauthenticated remote attacker can use '../' sequences to escape the intended directory and write arbitrary files anywhere the server process has write permissions. This can be leveraged to achieve remote code execution (RCE) by overwriting executable files or configuration scripts. As of the advisory date, no official patch is available; users are advised to restrict network access to SGLang interfaces.

Affected products

  • SGLang Project sglang >= 0.5.5, <= 0.5.12

Identifiers

  • CVE-2026-7302
  • GHSA-qwrp-wghp-94q2
  • PYSEC-2026-538

Timeline

  • 2026-03-10: disclosed: Vulnerabilities reported to SGLang maintainers.
  • 2026-05-15: advisory: CERT/CC published Vulnerability Note VU#777338.
  • 2026-05-18: disclosed: CVE-2026-7302 published.

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.