# CVE-2026-40153: PraisonAIAgents Affected by Environment Variable Secret Exfiltration via os.path.expandvars() Bypassing shell=False in Shell Tool

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/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.28%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-09T21:27:45.545Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-v8g7-9q6v-p3x8, PYSEC-2026-2953
- Weaknesses: CWE-526
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, the execute_command function in shell_tools.py calls os.path.expandvars() on every command argument at line 64, manually re-implementing shell-level environment variable expansion despite using shell=False (line 88) for security. This allows exfiltration of secrets stored in environment variables (database credentials, API keys, cloud access keys). The approval system displays the unexpanded $VAR references to human reviewers, creating a deceptive approval where the displayed command differs from what actually executes. 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 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-v8g7-9q6v-p3x8> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40153> (advisory)
- <https://github.com/MervinPraison/PraisonAI> (package)
- <https://pypi.org/project/praisonaiagents> (package)
- <https://github.com/advisories/GHSA-v8g7-9q6v-p3x8> (advisory)

## Sources

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

---

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