PatchSiren cyber security CVE debrief
CVE-2026-41497 MervinPraison CVE debrief
The PraisonAI package has an incomplete fix for CVE-2026-34935, allowing OS command injection via the `parse_mcp_command()` method. This method lacks a command allowlist, argument validation, and path-based executable injection prevention. Affected versions are < 47bff65413be; patched versions are >= 47bff65413be. The vulnerability exists in `src/praisonai/praisonai/cli/features/mcp.py` and allows arbitrary executables like `bash`, `python`, or `/bin/sh` with inline code execution flags to pass through to subprocess execution.
- Vendor
- MervinPraison
- Product
- praisonai
- CVSS
- CRITICAL 9.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-04-17
- Original CVE updated
- 2026-11-16
- Advisory published
- 2026-04-17
- Advisory updated
- 2026-11-16
Who should care
Defenders responsible for PraisonAI deployments should assess exposure and verify the presence of the fix. Roles include DevOps, SecOps, and developers using the PraisonAI package.
Why it matters
The incomplete fix for CVE-2026-34935 in PraisonAI allows for OS command injection via the `parse_mcp_command()` method. Defenders should prioritize verifying the presence of the fix, assessing exposure, and implementing additional validation and allowlisting to prevent potential exploitation.
- Arbitrary command execution is possible via the `parse_mcp_command()` method.
- Lack of validation and allowlisting allows for potential path-based executable injection.
- Argument inspection is necessary to block shell metacharacters and dangerous subprocess commands.
- Verification of the fix and inventory checks are necessary to prevent potential exploitation.
Technical summary
The `parse_mcp_command()` method in PraisonAI's `MCPHandler` class lacks critical controls, allowing arbitrary executables and arguments to pass through to subprocess execution. The fix commit 47bff65413be was intended to address command injection but still lacks an `ALLOWED_COMMANDS` allowlist, `os.path.basename()` validation, and argument inspection. This allows for potential path-based executable injection and argument inspection is necessary to block shell metacharacters and dangerous subprocess commands. Defenders should prioritize verifying the presence of the fix in their inventory and assessing exposure.
Defensive priority
Defenders should prioritize verifying the presence of the fix in their inventory and assessing exposure, as the vulnerability allows arbitrary command execution.
Recommended defensive actions
- Verify the presence of the fix (commit 47bff65413be or later) in your PraisonAI inventory.
- Assess exposure by reviewing usage of the `parse_mcp_command()` method.
- Implement additional validation and allowlisting for executables and arguments.
- Monitor for suspicious activity related to the `MCPHandler` class.
- Review compensating controls for exposed systems while remediation is scheduled and verified.
- Check relevant monitoring, detection, and logs for exposed assets that need extra review.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The vulnerability exists in `src/praisonai/praisonai/cli/features/mcp.py` in the `MCPHandler.parse_mcp_command()` method. The pre-patch version performs no validation on the executable or arguments. The fix commit `47bff654` was intended to address command injection but still lacks an `ALLOWED_COMMANDS` allowlist, `os.path.basename()` validation, and argument inspection. Source confidence is limited to public statements and code review.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-41497 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-41497
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-41497 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-41497
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
PraisonAI has an incomplete fix for CVE-2026-34935 - OS Command Injection
Unverified legacy reference
URL: https://github.com/advisories/GHSA-9qhq-v63v-fv3j
github_advisory_database
-
Source reference
Unverified legacy reference
URL: https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9qhq-v63v-fv3j
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-34935
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/MervinPraison/PraisonAI/commit/47bff65413beaa3c21bf633c1fae4e684348368c
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://github.com/pypa/advisory-database/tree/main/vulns/praisonai/PYSEC-2026-473.yaml
Supplemental source
-
Source reference
Unverified legacy reference
URL: https://pypi.org/project/praisonai
Supplemental source
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.