{"cve":"CVE-2026-40315","nvd":{"published":"2026-04-14T04:17:16.057","modified":"2026-10-26T22:10:00.163","status":"Analyzed","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.","cvss_v4":{"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","score":7.2},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["https://github.com/MervinPraison/PraisonAI/commit/0accebb2e3c3ec2fca66bbea0444fb7a35f0b4ef","https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-x783-xp3g-mqhp","https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-x783-xp3g-mqhp"],"products":["praison:praisonai"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40315","score":0.00297,"percentile":0.22127,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-x783-xp3g-mqhp","url":"https://osv.dev/vulnerability/GHSA-x783-xp3g-mqhp","summary":"PraisonAI: SQLiteConversationStore didn't validate table_prefix when constructing SQL queries","modified":"2026-07-13T16:43:02.535981465Z","packages":[{"ecosystem":"PyPI","name":"praisonai","purl":"pkg:pypi/praisonai","ranges":["<4.5.133"],"fixed":["4.5.133"]}]},{"id":"PYSEC-2026-2925","url":"https://osv.dev/vulnerability/PYSEC-2026-2925","summary":"PraisonAI: SQLiteConversationStore didn't validate table_prefix when constructing SQL queries","modified":"2026-07-13T16:33:03.494812442Z","packages":[{"ecosystem":"PyPI","name":"praisonai","purl":"pkg:pypi/praisonai","ranges":["<4.5.133"],"fixed":["4.5.133"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}