Skip to main content

CVE-2024-9308: Hliu Llava Open Redirect Vulnerability

CVE-2024-9308 is an open redirect flaw in Hliu Llava v1.2.0 that enables attackers to redirect users to malicious websites for phishing and malware distribution. This article covers technical details, security impact, and remediation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-9308 Overview

CVE-2024-9308 is an open redirect vulnerability [CWE-601] affecting haotian-liu/llava version 1.2.0 (LLaVA-1.6). The flaw allows a remote unauthenticated attacker to redirect users to arbitrary external destinations through a specially crafted URL. Attackers can abuse this behavior for phishing campaigns, malware delivery, and credential harvesting by leveraging the trust associated with the legitimate LLaVA host. Exploitation requires user interaction, typically through a malicious link delivered via email, chat, or social media. The vulnerability affects deployments of the LLaVA multimodal model demo interface used by researchers and developers.

Critical Impact

Unauthenticated attackers can redirect LLaVA users to attacker-controlled sites, enabling phishing, credential theft, and malware distribution against trusted domains.

Affected Products

  • haotian-liu/llava version 1.2.0 (LLaVA-1.6)
  • Deployments exposing the LLaVA web demo interface
  • Downstream forks that inherit the unvalidated redirect handler

Discovery Timeline

  • 2025-03-20 - CVE-2024-9308 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-9308

Vulnerability Analysis

The vulnerability resides in a URL-handling component of the LLaVA web interface that accepts a redirection target as user-controlled input. The application forwards the user to the supplied destination without validating that the target belongs to an allowlist of trusted domains. An attacker crafts a URL that points to the legitimate LLaVA host but encodes an attacker-controlled destination in the redirect parameter. When the victim clicks the link, the browser visits the trusted LLaVA origin and is then redirected to the attacker's site.

The redirect behavior preserves the appearance of a legitimate URL in email previews, chat clients, and link scanners, which commonly inspect only the initial hostname. This increases the likelihood that security filters pass the message to the end user. The impact is scoped to confidentiality and integrity of the user session rather than the LLaVA server itself.

Root Cause

The root cause is improper validation of a URL used in a redirect response, categorized as a URL Redirection to Untrusted Site [CWE-601]. The affected handler trusts attacker-supplied input instead of restricting redirects to a known-good set of destinations.

Attack Vector

Exploitation requires network access to a vulnerable LLaVA instance and user interaction. The attacker sends a victim a crafted link that includes the vulnerable host and an attacker-controlled redirect parameter. See the Huntr Bounty Listing for technical details.

No verified public exploit code is available for this issue; the vulnerability is described in prose only.

Detection Methods for CVE-2024-9308

Indicators of Compromise

  • Outbound HTTP 302 or 301 responses from LLaVA endpoints whose Location header points to external, non-allowlisted hostnames
  • Access logs showing requests with URL parameters containing fully qualified external URLs, protocol-relative URLs (//attacker.tld), or URL-encoded redirect targets
  • Referrer logs on third-party domains showing traffic originating from the LLaVA host

Detection Strategies

  • Inspect web server and reverse proxy logs for redirect responses whose target host differs from the LLaVA origin
  • Deploy web application firewall (WAF) rules that flag query parameters containing http://, https://, or // sequences on redirect endpoints
  • Correlate phishing reports from users with click-through URLs that traverse the LLaVA domain

Monitoring Recommendations

  • Alert on any 3xx response from LLaVA where the Location header resolves to an external IP or domain
  • Baseline normal redirect destinations and alert on deviations
  • Monitor domain reputation feeds for LLaVA hostnames appearing in phishing URL submissions

How to Mitigate CVE-2024-9308

Immediate Actions Required

  • Audit all LLaVA deployments for exposure of the vulnerable 1.2.0 (LLaVA-1.6) demo interface
  • Restrict public access to internal or research-only LLaVA instances using network controls or authentication
  • Educate users to inspect the full URL before clicking links that reference the LLaVA host

Patch Information

No vendor patch has been referenced in the NVD advisory at the time of publication. Monitor the upstream haotian-liu/llava repository and the Huntr Bounty Listing for remediation updates. Operators should upgrade to a fixed release when available.

Workarounds

  • Implement a redirect allowlist that restricts outbound redirects to the LLaVA origin and other explicitly trusted hosts
  • Replace direct redirects with a warning interstitial page that displays the destination URL and requires user confirmation
  • Deploy a reverse proxy rule that strips or rewrites redirect parameters containing external URLs
bash
# Example NGINX rule to block external redirect parameters
if ($arg_url ~* "^(https?:)?//") {
    return 403;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.