CVE-2026-34934
SQL Injection in PraisonAI get_all_user_threads Grants Full DB Access
Publication date: 2026-04-03
Last updated on: 2026-04-14
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| praison | praisonai | to 4.5.90 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-89 | The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data. |
Attack-Flow Graph
AI Powered Q&A
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
This vulnerability allows an attacker to execute arbitrary SQL queries and gain full database access, which can lead to unauthorized access, modification, or disclosure of sensitive data.
Such unauthorized access and potential data breaches can result in non-compliance with data protection regulations and standards like GDPR and HIPAA, which require strict controls to protect personal and sensitive information.
Therefore, if exploited, this vulnerability could compromise compliance with these regulations by exposing confidential data and failing to maintain data integrity and confidentiality.
Can you explain this vulnerability to me?
This vulnerability exists in PraisonAI versions prior to 4.5.90. The function get_all_user_threads constructs raw SQL queries using f-strings that include unescaped thread IDs retrieved from the database. An attacker can exploit this by storing a malicious thread ID through the update_thread function. When the application loads the thread list, the malicious payload embedded in the thread ID executes, allowing the attacker to gain full access to the database.
How can this vulnerability impact me? :
This vulnerability can have a severe impact as it allows an attacker to execute arbitrary SQL commands on the database without any privileges or user interaction. This can lead to complete compromise of the database, including unauthorized access, data theft, data modification, or deletion.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade PraisonAI to version 4.5.90 or later, where the issue has been patched.