# CVE-2026-40315: PraisonAI: SQLiteConversationStore didn't validate table_prefix when constructing SQL queries

- Severity: High 7.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T19:32:00.000Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-x783-xp3g-mqhp, PYSEC-2026-2925
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: < 4.5.133
- praisonai (PyPI): before 4.5.133
- praison praisonai: before 4.5.133

## Every score

- GitHub_M: CVSS:4.0 7.2 High `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`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-x783-xp3g-mqhp> (exploit, vendor-advisory, web)
- <https://github.com/MervinPraison/PraisonAI/commit/0accebb2e3c3ec2fca66bbea0444fb7a35f0b4ef> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40315> (advisory)
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.5.133> (web)
- <https://pypi.org/project/praisonai> (package)
- <https://github.com/advisories/GHSA-x783-xp3g-mqhp> (advisory)

## Sources

- CVE List: [CVE-2026-40315](https://www.cve.org/CVERecord?id=CVE-2026-40315), CVE Terms of Use, modified 2026-04-14
- GitHub Advisory Database: [GHSA-x783-xp3g-mqhp](https://github.com/advisories/GHSA-x783-xp3g-mqhp), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-40315](https://nvd.nist.gov/vuln/detail/CVE-2026-40315), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2925](https://osv.dev/vulnerability/PYSEC-2026-2925), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-40315 · Whole record: https://cve.day/CVE-2026-40315.json · Rebuilt by cve.day 2026-11-25T22:59:18.672Z
