CVE-2026-63764: lmdeploy: SSRF via redirect bypasses private IP guard
HIGH PoC AVAILABLE CISA: TRACK*lmdeploy's OpenAI-compatible API server can be tricked into fetching internal resources: an unauthenticated attacker submits a chat completion request with an image_url pointing to a server they control, which responds with an HTTP 302 redirect to an internal target such as the loopback interface or cloud instance-metadata endpoint, and lmdeploy follows that redirect without re-validating it against its SSRF safety guard. This is a critical, network-exploitable, zero-privilege, zero-interaction bug (CVSS 9.3) against any AI inference deployment exposing this API publicly or on a shared network, with confidentiality impact that can include cloud IAM credential theft via metadata services. There is no CISA KEV listing, no EPSS score, and no known public exploit or Nuclei template yet, so exploitation looks theoretical for now rather than actively weaponized — but the bypass technique requires no specialized AI/ML knowledge, so that window is likely short. Until a patched release is confirmed upstream, restrict network egress from lmdeploy hosts, block loopback and cloud metadata IP ranges (e.g., 169.254.169.254) at the host firewall or via IMDSv2 enforcement, and alert on outbound requests to internal/metadata ranges triggered by image_url fetches.
What is the risk?
Critical. The combination of CVSS 9.3, network attack vector, no authentication, no user interaction, and low attack complexity makes this trivially reachable by any actor who can send HTTP requests to the exposed endpoint. Confidentiality impact is high because SSRF against cloud metadata endpoints commonly yields IAM credentials, enabling lateral movement well beyond the AI service itself. Mitigating factors are the absence of CISA KEV status, no EPSS score, and no public exploit or scanner template — indicating no confirmed mass exploitation yet — but the vulnerability class (redirect-based SSRF guard bypass) is well understood and easy to reproduce once the technique is public, so risk should be treated as high urgency despite the lack of current telemetry.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| LMDeploy | pip | — | No patch |
Do you use LMDeploy? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step-
1) Track lmdeploy's GitHub repository and issue #4761 for a patched release, and upgrade as soon as one ships. 2) Until patched, do not expose the OpenAI-compatible API server directly to untrusted networks; place it behind an authenticating reverse proxy. 3) Enforce network-level egress controls from the lmdeploy host: block outbound requests to loopback (127.0.0.0/8), link-local (169.254.0.0/16, including cloud metadata IPs), and RFC1918 private ranges unless explicitly required. 4) Where supported, disable automatic HTTP redirect following in the image-fetch client, or re-validate the resolved destination IP against the safety guard on every hop (not just the initial URL). 5) Enforce IMDSv2 (or equivalent metadata-service hardening) on the underlying cloud instance so a successful SSRF cannot retrieve credentials via a simple GET. 6) Monitor/alert on outbound HTTP requests from the lmdeploy process to internal IP ranges or metadata endpoints as a detection signal for exploitation attempts.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-63764?
lmdeploy's OpenAI-compatible API server can be tricked into fetching internal resources: an unauthenticated attacker submits a chat completion request with an image_url pointing to a server they control, which responds with an HTTP 302 redirect to an internal target such as the loopback interface or cloud instance-metadata endpoint, and lmdeploy follows that redirect without re-validating it against its SSRF safety guard. This is a critical, network-exploitable, zero-privilege, zero-interaction bug (CVSS 9.3) against any AI inference deployment exposing this API publicly or on a shared network, with confidentiality impact that can include cloud IAM credential theft via metadata services. There is no CISA KEV listing, no EPSS score, and no known public exploit or Nuclei template yet, so exploitation looks theoretical for now rather than actively weaponized — but the bypass technique requires no specialized AI/ML knowledge, so that window is likely short. Until a patched release is confirmed upstream, restrict network egress from lmdeploy hosts, block loopback and cloud metadata IP ranges (e.g., 169.254.169.254) at the host firewall or via IMDSv2 enforcement, and alert on outbound requests to internal/metadata ranges triggered by image_url fetches.
Is CVE-2026-63764 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2026-63764, increasing the risk of exploitation.
How to fix CVE-2026-63764?
1) Track lmdeploy's GitHub repository and issue #4761 for a patched release, and upgrade as soon as one ships. 2) Until patched, do not expose the OpenAI-compatible API server directly to untrusted networks; place it behind an authenticating reverse proxy. 3) Enforce network-level egress controls from the lmdeploy host: block outbound requests to loopback (127.0.0.0/8), link-local (169.254.0.0/16, including cloud metadata IPs), and RFC1918 private ranges unless explicitly required. 4) Where supported, disable automatic HTTP redirect following in the image-fetch client, or re-validate the resolved destination IP against the safety guard on every hop (not just the initial URL). 5) Enforce IMDSv2 (or equivalent metadata-service hardening) on the underlying cloud instance so a successful SSRF cannot retrieve credentials via a simple GET. 6) Monitor/alert on outbound HTTP requests from the lmdeploy process to internal IP ranges or metadata endpoints as a detection signal for exploitation attempts.
What systems are affected by CVE-2026-63764?
This vulnerability affects the following AI/ML architecture patterns: model serving, multimodal/vision-language inference, agent frameworks, cloud-hosted LLM API deployments.
What is the CVSS score for CVE-2026-63764?
CVE-2026-63764 has a CVSS v3.1 base score of 8.6 (HIGH). The EPSS exploitation probability is 0.39%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0049 Exploit Public-Facing Application AML.T0075 Cloud Service Discovery Compliance Controls Affected
What are the technical details?
Original Advisory
LMDeploy through 0.14.0, fixed in commit 03c3130, contains a server-side request forgery (SSRF) vulnerability in the _load_http_url function within the connection.py media handler, where the private-IP guard validates only the original URL without re-validating hosts after HTTP redirects. An unauthenticated attacker can submit a crafted image_url to the chat completions endpoint pointing to an attacker-controlled host that returns a redirect to a private IP or cloud-metadata endpoint, causing the server to follow the redirect and expose internal service content through the model pipeline.
Exploitation Scenario
An unauthenticated attacker identifies an internet-facing lmdeploy OpenAI-compatible endpoint (e.g., via banner/service discovery). They stand up a server they control and send a POST to /v1/chat/completions with a multimodal message whose image_url points to that server — passing lmdeploy's initial SSRF safety check since the URL looks external and benign. Their server responds with an HTTP 302 redirecting to http://169.254.169.254/latest/meta-data/iam/security-credentials/<role-name> (or another internal target such as a loopback admin port). lmdeploy follows the redirect without re-running the safety check against the new destination, fetches the metadata response, and the fetched content (or an error revealing it) is reflected back to the attacker through the model's response or logs — handing them temporary cloud credentials or internal service data they can use for further compromise of the hosting environment.
Weaknesses (CWE)
CWE-918 — Server-Side Request Forgery (SSRF): The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N References
- github.com/InternLM/lmdeploy/commit/03c313006d17cc3feae86b633c44206a997c44db patch
- github.com/InternLM/lmdeploy/pull/4734 issue-tracking
- vulncheck.com/advisories/lmdeploy-server-side-request-forgery-via-http-redirect-bypass third-party-advisory
- github.com/InternLM/lmdeploy
- github.com/InternLM/lmdeploy/issues/4761
- vulncheck.com/advisories/lmdeploy-server-side-request-forgery-via-http-redirect-bypass-of-private-ip-guard-in-vision-image-fetch
Timeline
Related Vulnerabilities
CVE-2026-76850 9.8 LMDeploy: RCE via unauth pickle deserialization
Same package: lmdeploy CVE-2025-59953 9.8 Analysis pending
Same package: lmdeploy CVE-2025-66455 9.8 Analysis pending
Same package: lmdeploy CVE-2025-67729 8.8 lmdeploy: Deserialization enables RCE
Same package: lmdeploy CVE-2026-33625 8.8 Analysis pending
Same package: lmdeploy