Skip to main content

Praisonaiagents CVE-2026-40153

| EUVDEUVD-2026-21176 HIGH
Cleartext Storage of Sensitive Information in an Environment Variable (CWE-526)
2026-04-09 GitHub_M GHSA-v8g7-9q6v-p3x8
7.4
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft command with environment variable references
  2. Delivery
    Submit to approval system
  3. Exploit
    Reviewer approves unexpanded $VAR syntax
  4. Execution
    execute_command expands variables
  5. Impact
    Exfiltrate secrets in environment

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration Environment variable protection
Exploitation Conditions

The victim must be a human reviewer in PraisonAIAgents (prior to 1.5.128) who approves a crafted command containing $VAR environment variable references. The approval UI displays unexpanded variables, but execute_command expands them at runtime, exfiltrating secrets like database credentials and API keys stored in environment variables.

Impact

Network-exploitable without authentication; requires user interaction (UI:R) to approve deceptive commands. High confidentiality impact via environment variable exfiltration of credentials and API keys. Elevated observed exploitation activity suggests real-world targeting. Moderate blast radius constrained by UI requirement and targeted application scope, but secrets exposure creates downstream compromise risk.

Exploit ScenarioDerived

Attacker crafts PraisonAIAgents prompt containing obfuscated $VAR references (e.g., cat $DATABASE_PASSWORD). Approval interface displays benign-looking command; human reviewer approves. Backend executes expanded variables, exfiltrating secrets to attacker-controlled destination via network call.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 09, 2026

Environment variable exfiltration in PraisonAIAgents versions prior to 1.5.128 allows unauthenticated remote attackers to steal secrets (database credentials, API keys, cloud access keys) through shell_tools.py execute_command function. The vulnerability leverages deceptive command approval where unexpanded $VAR references shown to human reviewers differ from executed commands containing expanded environment variable values. Requires user interaction. No public exploit identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade PraisonAIAgents to version 1.5.128 immediately. This release removes os.path.expandvars() manual expansion from shell_tools.py execute_command function, preventing environment variable exfiltration while maintaining shell=False subprocess security posture. Organizations using multi-agent systems must audit command approval workflows for similar deceptive expansion patterns. Rotate all API keys, database credentials, and cloud access tokens potentially exposed through environment variables in affected deployments. Review execution logs for suspicious $VAR patterns in historical command arguments. Official advisory: https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-v8g7-9q6v-p3x8

Affected VersionsENISA

praisonaiagents < 1.5.128

Affected Packages

pypi praisonaiagents fix: 1.5.128

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The execute_command function improperly implements manual environment variable expansion via os.path.expandvars() on command arguments despite using shell=False. This CWE-526 information exposure creates an approval bypass: users approve commands displaying literal $VAR syntax while subprocess.run() executes commands with fully expanded sensitive environment variable contents, enabling cross-site confidentiality impact without command injection.

Know when Praisonaiagents gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 7.4 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch released
Apr 10, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 09, 2026 - 21:27 nvd
HIGH 7.4

DescriptionGitHub Advisory

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.

Executive ViewAI

Why It Matters

PraisonAIAgents versions below 1.5.128 contain a critical secret exfiltration vulnerability where environment variables containing sensitive credentials (API keys, database passwords, cloud access tokens) can be stolen by unauthenticated attackers through deceptive command approval mechanisms. This directly threatens organizations using this agent framework, as legitimate-appearing commands hide actual environment variable expansion, putting production credentials at immediate risk of compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable or restrict execute_command functionality in shell_tools.py if operationally feasible; (2) Run PraisonAIAgents with minimal environment variable exposure and implement principle of least privilege for process permissions; (3) Implement network segmentation to limit lateral movement if credentials are exfiltrated; (4) Enforce command approval workflows that display fully expanded commands with variable values before execution; (5) Monitor and log all shell_tools.py command execution attempts and environment variable access.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-55526 HIGH POC
8.5 Aug 25

SSRF protection bypass in PraisonAI's praisonaiagents library (all versions before 1.6.58) lets low-privileged users rou

CVE-2026-55528 HIGH POC
8.2 Aug 25

Authentication bypass in PraisonAI's AgentServer component exposes all routes - /publish, /events, /info, /health - to u

CVE-2026-55522 HIGH POC
7.8 Aug 05

Arbitrary Python code execution in PraisonAI's workflow include feature allows an attacker who controls a local recipe d

CVE-2026-55530 MEDIUM POC
6.1 Aug 25

Unauthorized filesystem mutation in praisonaiagents allows an LLM-controlled agent to rewrite arbitrary on-disk source f

CVE-2026-57123 CRITICAL
9.8 Sep 14

Unauthenticated tool invocation and potential remote code execution in PraisonAI Agents (praisonaiagents) before 1.6.59,

CVE-2026-57125 CRITICAL
9.8 Sep 14

Unauthenticated remote code execution in the PraisonAI multi-agent framework lets any network-reachable caller run arbit

CVE-2026-57118 CRITICAL
9.8 Oct 12

Unauthenticated remote agent enumeration and invocation in PraisonAI's AgentTeam.launch() / Agents.launch() HTTP server

CVE-2026-40288 CRITICAL
9.8 Apr 14

Arbitrary command and code execution in PraisonAI's workflow engine (versions <4.5.139) and praisonaiagents (<1.5.140) a

CVE-2026-40111 CRITICAL
9.3 Apr 09

Command injection in PraisonAIAgents memory hooks executor allows authenticated local attackers to execute arbitrary she

CVE-2026-40289 CRITICAL
9.1 Apr 14

Unauthenticated remote session hijacking in PraisonAI's browser bridge (versions <4.5.139) and praisonaiagents (<1.5.140

CVE-2026-57143 HIGH
8.8 Oct 12

Server-side request forgery in the SearxNG-backed search tools shipped with the praisonaiagents Python package before 1.

CVE-2026-44339 HIGH
8.6 May 08

Remote attackers can invoke arbitrary application callables in PraisonAI multi-agent systems by manipulating tool-call n

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy