CVE-2026-40153
High · 7.4CVSS
7.4
EPSS
0.4%
Published
Apr 9, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-72648 Cleartext Storage of Sensitive Information in an Environment Variable (CWE-526) in… CWE-526
- CVE-2026-49377 In JetBrains TeamCity before 2025.11.2 exposure of sensitive data via default agent… CWE-526
- CVE-2026-45370 python-utcp is the python implementation of UTCP. CWE-526
- CVE-2025-36105 IBM Planning Analytics Advanced Certified Containers 3.1.0 through 3.1.4 could allow a… CWE-526
- CVE-2025-27899 IBM DB2 Recovery Expert for LUW 5.5 Interim Fix 002 discloses sensitive information in an… CWE-526
- CVE-2025-9162 A flaw was found in org.keycloak/keycloak-model-storage-service. CWE-526