# CVE-2026-40152: PraisonAIAgents has a Path Traversal via Unvalidated Glob Pattern in list_files Bypasses Workspace Boundary

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A: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.43%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-09T21:26:49.586Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-7j2f-xc8p-fjmq, PYSEC-2026-2944
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, he list_files() tool in FileTools validates the directory parameter against workspace boundaries via _validate_path(), but passes the pattern parameter directly to Path.glob() without any validation. Since Python's Path.glob() supports .. path segments, an attacker can use relative path traversal in the glob pattern to enumerate arbitrary files outside the workspace, obtaining file metadata (existence, name, size, timestamps) for any path on the filesystem. This vulnerability is fixed in 1.5.128.

(As written by CVE List.)

## Affected

- MervinPraison PraisonAIAgents: < 1.5.128
- praisonaiagents (PyPI): before 1.5.128
- praison praisonaiagents: before 1.5.128

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-7j2f-xc8p-fjmq> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40152> (advisory)
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://pypi.org/project/praisonaiagents> (package)
- <https://github.com/advisories/GHSA-7j2f-xc8p-fjmq> (advisory)

## Sources

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

---

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