5.3
MEDIUM CVSS 3.0
CVE-2024-8251
Prisma Injection in mintplex-labs/anything-llm
Description

A vulnerability in mintplex-labs/anything-llm prior to version 1.2.2 allows for Prisma injection. The issue exists in the API endpoint "/embed/:embedId/stream-chat" where user-provided JSON is directly taken to the Prisma library's where clause. An attacker can exploit this by providing a specially crafted JSON object, such as {"sessionId":{"not":"a"}}, causing Prisma to return all data from the table. This can lead to unauthorized access to all user queries in embedded chat mode.

INFO

Published Date :

March 20, 2025, 10:15 a.m.

Last Modified :

Oct. 15, 2025, 1:15 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2024-8251 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Mintplexlabs anythingllm
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.0 MEDIUM [email protected]
Solution
Update to version 1.2.2 or later to fix Prisma injection vulnerability.
  • Update the application to version 1.2.2 or later.
  • Sanitize all user input before passing to Prisma.
  • Implement strict validation for API endpoint parameters.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-8251.

URL Resource
https://github.com/mintplex-labs/anything-llm/commit/334fd9cdd02ad4aa6a3c9bdfc95e7764651c13f4 Patch
https://huntr.com/bounties/7c263ef1-7d50-475a-9425-b15df4e0403c Exploit Third Party Advisory
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-8251 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-8251 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-8251 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Oct. 15, 2025

    Action Type Old Value New Value
    Added CWE CWE-89
    Removed CWE CWE-20
  • Initial Analysis by [email protected]

    Jul. 15, 2025

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:mintplexlabs:anythingllm:*:*:*:*:*:*:*:* versions up to (excluding) 1.2.2
    Added Reference Type huntr.dev: https://github.com/mintplex-labs/anything-llm/commit/334fd9cdd02ad4aa6a3c9bdfc95e7764651c13f4 Types: Patch
    Added Reference Type huntr.dev: https://huntr.com/bounties/7c263ef1-7d50-475a-9425-b15df4e0403c Types: Exploit, Third Party Advisory
  • New CVE Received by [email protected]

    Mar. 20, 2025

    Action Type Old Value New Value
    Added Description A vulnerability in mintplex-labs/anything-llm prior to version 1.2.2 allows for Prisma injection. The issue exists in the API endpoint "/embed/:embedId/stream-chat" where user-provided JSON is directly taken to the Prisma library's where clause. An attacker can exploit this by providing a specially crafted JSON object, such as {"sessionId":{"not":"a"}}, causing Prisma to return all data from the table. This can lead to unauthorized access to all user queries in embedded chat mode.
    Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    Added CWE CWE-20
    Added Reference https://github.com/mintplex-labs/anything-llm/commit/334fd9cdd02ad4aa6a3c9bdfc95e7764651c13f4
    Added Reference https://huntr.com/bounties/7c263ef1-7d50-475a-9425-b15df4e0403c
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 5.3
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact