CVE-2026-40315 Details
Description
PraisonAI is a multi-agent teams system. Prior to 4.5.133, there is an SQL identifier injection vulnerability in SQLiteConversationStore where the table_prefix configuration value is directly concatenated into SQL queries via f-strings without any validation or sanitization. Since SQL identifiers cannot be safely parameterized, an attacker who controls the table_prefix value (e.g., through from_yaml or from_dict configuration input) can inject arbitrary SQL fragments that alter query structure. This enables unauthorized data access, such as reading internal SQLite tables like sqlite_master, and manipulation of query results through techniques like UNION-based injection. The vulnerability propagates from configuration input in config.py, through factory.py, to the SQL query construction in sqlite.py. Exploitation requires the ability to influence configuration input, and successful exploitation leads to internal schema disclosure and full query result tampering. This issue has been fixed in version 4.5.133.
An SQL identifier injection vulnerability has been identified in PraisonAI versions prior to 4.5.133. The issue arises in the SQLiteConversationStore component, where the table_prefix configuration value is directly inserted into SQL queries using f-strings, without any validation or sanitization. This vulnerability allows an attacker who can control the table_prefix value, such as through from_yaml or from_dict configuration inputs, to inject arbitrary SQL fragments that can alter the structure of the SQL queries. Exploitation of this vulnerability could lead to unauthorized access to data, such as internal SQLite tables like sqlite_master, and manipulation of query results using techniques like UNION-based injection. The vulnerability originates from unvalidated configuration input, which is passed through the application's factory and into the SQL query construction process, enabling attackers to exploit the injection flaw and tamper with query execution.
Users are advised to update to PraisonAI version 4.5.133 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-x783-xp3g-mqhp | CISA-ADP | ExploitVendor Advisory |
| https://github.com/MervinPraison/PraisonAI/commit/0accebb2e3c3ec2fca66bbea0444fb7a35f0b4ef | [email protected] | Patch |
| https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-x783-xp3g-mqhp | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| praison praisonai | < 4.5.133 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | Initial Analysis | [email protected] |
| Apr 14, 2026 | CVE Modified | CISA-ADP |
| Apr 14, 2026 | New CVE Received | [email protected] |