Skip to content
HighVulnerability

GHSA-cv3g-hj65-pcfh: PraisonAI: Shell command allowlist bypass via find -exec built-in action

Published
Record updated
View JSON
Affected
  • praisonai <= 4.6.77
Fixed in
4.6.78
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%

Summary

PraisonAI's shell command hardening, shipped in npm 1.7.2 and Python 4.6.58 to fix GHSA-5jv7-2mjm-h6qj and GHSA-vjv9-7m7j-h833, can be bypassed through find's built-in -exec action. The fix blocks shell metacharacters and uses spawn() with shell: false, but find stays in the safe command allowlist, and the batch terminator + replaces the blocked ; so commands run without metacharacters. The same gap exists in four implementations, including the TS shell() tool and the Python safe_shell module, and a find -execdir payload reads /etc/passwd while evading the SandboxExecutor path check.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.