CVE-2024-9311 Cross-Site Request Forgery to XSS in haotian-liu/llava
Attackers can upload malicious files via CSRF to execute arbitrary JavaScript in victim browsers, leading to session hijacking or data theft.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-9311?
CVE-2024-9311 is a medium-severity cross-site scripting vulnerability in haotian-liu/llava, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A Cross-Site Request Forgery (CSRF) vulnerability in haotian-liu/llava v1.2.0 (LLaVA-1.6) 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.
Weakness: CWE-352
Which versions are affected by CVE-2024-9311?
It affects 1 product.
Products include Hliu Large Language and Vision Assistant.
How do I fix CVE-2024-9311?
No fix has been published for CVE-2024-9311 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-9311 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-9311 exists.
Other vulnerabilities in haotian-liu/llava
Sources
Also known as GHSA-4wfj-v7c8-rwh4.