LMDeploy is a toolkit for compressing, deploying, and serving large language models. From 0.12.3 until 0.15.0, _is_safe_url validates remote media URLs with urlparse while requests.Session().get interprets backslashes differently when sending the request. An attacker can provide a URL whose validation hostname appears globally routable but whose request destination resolves to an internal host, bypassing non-global address checks. Applications that accept attacker-controlled remote media URLs can therefore be induced to access internal HTTP services and expose data available from those services. This issue is fixed in version 0.15.0.
https://github.com/InternLM/lmdeploy/security/advisories/GHSA-39wr-7q6h-cf68
https://github.com/InternLM/lmdeploy/releases/tag/v0.15.0
https://github.com/InternLM/lmdeploy/pull/4734
https://github.com/InternLM/lmdeploy/commit/03c313006d17cc3feae86b633c44206a997c44db