InternLM LMDeploy
LMDeploy URL parser disagreement permits SSRF filter bypass
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.12.3, < 0.15.0
Fixed in 0.15.0
Mitigation
Upgrade lmdeploy to 0.15.0 or later.
References
- Vendor advisory github.com/InternLM/lmdeploy/security/advisori…
- Patch github.com/InternLM/lmdeploy/pull/4734
- Patch github.com/InternLM/lmdeploy/commit/03c313006d…
1 more
- Release notes github.com/InternLM/lmdeploy/releases/tag/v0.1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.