Cyber Resilience

CVE-2024-3851

MediumPublic PoC

Published: 16 May 2024

Published
16 May 2024
Modified
19 May 2025
KEV Added
Patch
CVSS Score v3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
EPSS Score 0.0027 50.5th percentile
Risk Priority 11 60% EPSS · 20% KEV · 20% CVSS

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

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

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1659 Content Injection Initial Access
Adversaries may gain access and continuously communicate with victims by injecting malicious content into systems through online network traffic.
T1059.007 JavaScript Execution
Adversaries may abuse various implementations of JavaScript for execution.
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

AML.T0040.000AML.T0051.000: DirectAML.T0024.000: Infer Training Data MembershipAML.T0018.000: Poison AI ModelAML.T0048.000: Financial Harm

Affected Assets

pribai
privategpt
≤ 0.6.2

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.

addresses: CWE-79

Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.

addresses: CWE-79

Validates web inputs to reject script-related content that could produce XSS.

addresses: CWE-79

Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.

References