CVE-2024-3851: Unrestricted File Upload Leading to XSS in imartinez/privategpt

Published May 16, 2024
·
Updated

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 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.

Affected Software

2 affected components
Pribai Privategpt<=0.6.2
imartinez privategpt

Event History

May 16, 2024
CVE Published
via MITRE·09:03 AM
Data Sourced
via MITRE·09:03 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-3851?

CVE-2024-3851 is classified as a high severity vulnerability due to its stored Cross-Site Scripting (XSS) nature.

2

How do I fix CVE-2024-3851?

To fix CVE-2024-3851, ensure proper validation and sanitization of file uploads to prevent the execution of malicious scripts.

3

What types of attacks can exploit CVE-2024-3851?

CVE-2024-3851 can be exploited through the upload of malicious HTML files containing JavaScript payloads that execute in users' browsers.

4

Which software is affected by CVE-2024-3851?

CVE-2024-3851 affects the 'imartinez/privategpt' repository.

5

What are the potential impacts of CVE-2024-3851?

The impacts of CVE-2024-3851 include unauthorized access to user data, session hijacking, and the potential for widespread malicious actions through infected browsers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203