CVE-2026-63764: InternLM lmdeploy SSRF via HTTP redirect bypass in API server

CVE-2026-63764 · Severity: critical · CVSS 9.3 · Published 2026-07-21

InternLM lmdeploy, a toolkit for deploying large language models, contains a security flaw in its API server that allows unauthorized individuals to access internal network resources. By providing a specially crafted image link, an attacker can trick the server into connecting to private internal services or cloud metadata endpoints that are normally protected. This could lead to the theft of sensitive internal data or cloud credentials, potentially compromising the entire server environment.

Quick answers

Is CVE-2026-63764 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-63764 being exploited in the wild.
How severe is CVE-2026-63764?
Critical severity, with a CVSS score of 9.3, published 21 July 2026.
Which products and versions are affected?
InternLM lmdeploy up to and including commit 648df3b.
Is there a fix for CVE-2026-63764?
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-63764 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-63764?
Check whether anything you run is named in the advisory. 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 Server-Side Request Forgery (SSRF) vulnerability exists in lmdeploy's OpenAI-compatible API server due to improper validation of HTTP redirects when fetching multimodal images. The `_is_safe_url` function in `lmdeploy/vl/media/connection.py` validates the initial URL against a private-IP guard, but the subsequent `requests.get` call follows redirects (`allow_redirects=True`) without re-validating subsequent hops. An unauthenticated attacker can send a POST request to the `/v1/chat/completions` endpoint with an `image_url` pointing to a malicious server that issues a 302 redirect to internal addresses (e.g., 127.0.0.1 or 169.254.169.254). This allows the attacker to bypass the safety guard and retrieve content from internal services or cloud metadata endpoints.

Affected products

  • InternLM lmdeploy up to and including commit 648df3b

Timeline

  • 2026-06-12: disclosed: Initial report to maintainers via GitHub Security Advisory
  • 2026-07-18: disclosed: Public issue opened on GitHub repository
  • 2026-07-21: advisory: NVD and VulnCheck advisories published

References

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