{"id":"CVE-2026-40315","published":"2026-04-14T02:45:33Z","modified":"2026-04-14T13:25:13Z","title":"PraisonAI: SQLiteConversationStore didn't validate table_prefix when constructing SQL queries","vendor":"MervinPraison","product":"PraisonAI","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0042,"percentile":0.28048,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-x783-xp3g-mqhp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MervinPraison/PraisonAI/commit/0accebb2e3c3ec2fca66bbea0444fb7a35f0b4ef","tags":["x_refsource_MISC"]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":5.61},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAI","versions":["< 4.5.133"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-14T13:25:07.665477Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"PraisonAI","vulnerableRanges":["<4.5.133"],"patched":["4.5.133"],"from":["GHSA-x783-xp3g-mqhp","PYSEC-2026-2925"],"provenance":"source"}],"summary":{"text":"PraisonAI, a multi-agent teams system, has an SQL identifier injection flaw in its SQLiteConversationStore component, where the table_prefix configuration value is concatenated directly into SQL queries without validation. An attacker with local access and low privileges who can influence that configuration input (for example, through from_yaml or from_dict) can inject SQL fragments to read internal SQLite tables such as sqlite_master and tamper with query results, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:52Z"},"euvd":{"id":"EUVD-2026-22215","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mervinpraison-praisonai-cve-2026-40315","children":[{"from":"CVE-2026-40315","to":"CVE-2026-41496","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"Prior to praisonai version 4.6.9 and praisonaiagents version 1.6.9, the fix for CVE-2026-40315 added input validation to SQLiteConversationStore only.","from":"CVE.org","in":"CVE-2026-41496"}]}],"packageHistory":[{"cve":"CVE-2026-40157","published":"2026-04-10","fixed":"4.5.128","kev":false},{"cve":"CVE-2026-40158","published":"2026-04-10","fixed":"4.5.128","kev":false},{"cve":"CVE-2026-40159","published":"2026-04-10","fixed":"4.5.128","kev":false},{"cve":"CVE-2026-40315","published":"2026-04-14","fixed":"4.5.133","kev":false},{"cve":"CVE-2026-40287","published":"2026-04-14","fixed":"4.5.139","kev":false,"link":{"from":"CVE-2026-40315","to":"CVE-2026-40287","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:PraisonAI","fromFixed":"4.5.133","toFixed":"4.5.139","daysApart":0}]}},{"cve":"CVE-2026-40288","published":"2026-04-14","fixed":"4.5.139","kev":false,"link":{"from":"CVE-2026-40315","to":"CVE-2026-40288","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:PraisonAI","fromFixed":"4.5.133","toFixed":"4.5.139","daysApart":0}]}},{"cve":"CVE-2026-40289","published":"2026-04-14","fixed":"4.5.139","kev":false,"link":{"from":"CVE-2026-40315","to":"CVE-2026-40289","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:PraisonAI","fromFixed":"4.5.133","toFixed":"4.5.139","daysApart":0}]}}],"package":"PyPI:PraisonAI"}}