CVE-2024-3851
Published: 16 May 2024
Summary
CVE-2024-3851 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Pribai Privategpt. Its CVSS base score is 5.4 (Medium).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 49.5% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
This vulnerability is AI-related — categorised as Enterprise AI Assistants; in the Other ATLAS/OWASP Terms risk domain; MITRE ATLAS techniques in scope: AML.T0040.000, Direct (AML.T0051.000), Infer Training Data Membership (AML.T0024.000).
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-32419
Vulnerability details
A stored Cross-Site Scripting (XSS) vulnerability exists in the 'imartinez/privategpt' repository due to improper validation of file uploads. Attackers can exploit this vulnerability by uploading malicious HTML files, such as those containing JavaScript payloads, which are then executed in the…
more
context of the victim's session when accessed. This could lead to the execution of arbitrary JavaScript code in the context of the user's browser session, potentially resulting in phishing attacks or other malicious actions. The vulnerability affects the latest version of the repository.
- CWE(s)
AI Security AnalysisAI
- AI Category
- Enterprise AI Assistants
- Risk Domain
- Other ATLAS/OWASP Terms
- OWASP Top 10 for LLMs 2025
- None mapped
- Classification Reason
- PrivateGPT (imartinez/privategpt) is a self-hosted platform for private LLM-based document interaction and AI assistance, fitting Enterprise AI Assistants as it provides a UI and backend for local generative AI deployments.
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Stored XSS via malicious file upload enables exploitation of public-facing web applications (T1190), content injection of malicious HTML/JS (T1659), and arbitrary JavaScript execution in victim browser sessions (T1059.007), potentially for phishing or credential theft.
MITRE ATLAS TechniquesAI
MITRE ATLAS techniques
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.