/

CVE-2026-123818

Severity:

HIGH RISK

(7.5)

SSRF (CWE-918) in LMDeploy Remote Media URL Handling

CVE-2026-123818

Deferred

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-918

Impact:

Unauthorized access to internal HTTP services and potential data exposure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

LMDeploy's remote media URL checks can interpret a URL differently from the HTTP client that sends the request. If an application fetches attacker-controlled media URLs, this discrepancy may let an attacker reach internal HTTP services and expose data those services return.

Affected context

The issue occurs in LMDeploy's handling of remote media URLs when URL validation and request processing interpret backslashes differently. It becomes relevant in applications that accept attacker-controlled URLs and use the affected handling to make outbound HTTP requests; the validation may approve a destination that the HTTP client ultimately interprets as internal.

Exploit preconditions

  • Attack surface: An application feature that fetches remote media over HTTP.
  • Required access: The ability to submit or influence a media URL; authentication requirements depend on the application.
  • Trigger point: The application validates the URL and then fetches it with an HTTP client.
  • Why exploitation is possible: Validation and request handling can disagree about the destination, allowing non-global address checks to be bypassed.

Why this happens

The underlying bug is inconsistent URL interpretation across security validation and network request components. The validator uses urlparse, while the HTTP client may interpret backslashes differently, so checks on the parsed hostname do not reliably constrain the request destination. This is a server-side request forgery weakness, mapped to CWE-918, because attacker-influenced input can cause the server to make requests to unintended locations.

Potential impact

  • An attacker may cause requests to internal HTTP services.
  • Responses from internal services could be exposed through the application.
  • Internal network resources may be probed or accessed beyond the intended boundary.

General mitigation guidance

Defensive patterns include validating destinations using the same canonicalization and parsing semantics as the HTTP client, then enforcing network-address policy on the destination actually used for the request. Prefer allowlists of expected hosts and protocols over broad URL acceptance, reduce trust in user-supplied URLs, and restrict outbound network access at the application or workload level. Apply least privilege so the fetching component cannot reach sensitive internal services unnecessarily.

How teams detect issues like this

  • Use static analysis to identify URL validation followed by HTTP requests where parsing or canonicalization differs.
  • During code review, check whether validation constrains the final connection destination, including after redirects and name resolution.
  • Monitor outbound requests from media-fetching components for unexpected internal destinations.
  • Enforce egress policies that limit workloads to required external services and deny unnecessary access to private networks.
  • Automated security review tools may help flag SSRF-prone URL-fetching patterns.

Sources

SourceLink
github.comgithub.com/InternLM/lmdeploy/commit/03c313006d17cc3feae86b633c44206a997c44db
github.comgithub.com/InternLM/lmdeploy/pull/4734
github.comgithub.com/InternLM/lmdeploy/releases/tag/v0.15.0
github.comgithub.com/InternLM/lmdeploy/security/advisories/GHSA-39wr-7q6h-cf68

Frequently asked

questions

It concerns applications using the affected LMDeploy remote media URL handling to fetch URLs supplied or influenced by users.

The attacker needs a way to submit or influence a URL that the application fetches. Whether authentication is required depends on how the application exposes that feature.

Make validation and request processing agree on the canonical destination, enforce an explicit destination policy, and restrict outbound network access.

Treat user-provided URLs as untrusted, use allowlists where practical, review redirects and resolved destinations, and apply least-privilege egress controls.

Find out what's already
exploitable in your codebase.