LMDeploy Server-Side Request Forgery Vulnerability in Vision-Language Module

Vulnerability

A Server-Side Request Forgery (SSRF) vulnerability exists in LMDeploy versions prior to 0.12.3, specifically within the vision-language module. The vulnerability arises because the 'load_image()' function in 'lmdeploy/vl/utils.py' retrieves arbitrary URLs without validating internal or private IP addresses. This oversight allows attackers to access cloud metadata services, internal networks, and sensitive resources. The issue has been patched in version 0.12.3.

Impact

Exploitation of this vulnerability allows for unauthorized access to cloud metadata services, internal networks, and sensitive resources, potentially leading to the theft of cloud credentials and unauthorized access to internal services.

Reproduction

To reproduce this vulnerability, deploy the LMDeploy server with a vision-language model. Then, send a request to the '/v1/chat/completions' endpoint with a malicious 'image_url' that points to a private IP address or cloud metadata service URL. The server will fetch the URL without validation, allowing access to the targeted resource.

Remediation

Users can upgrade to LMDeploy version 0.12.3 or later, where this vulnerability has been patched.

Added: Apr 20, 2026, 9:25 PM
Updated: Apr 20, 2026, 9:25 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
3.1
exploitability
9.1
remediation
7.7
relevance
6.3
threat
6.6
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.