CVE-2026-40154: Praisonai Tool Static Destructive File Op Without Workspace Guard

A `@staticmethod` on a file-tooling class performs a destructive filesystem operation (os.remove / os.unlink / shutil.move / shutil.rmtree / shutil.copy / shutil.copy2) without invoking a workspace authorization guard such as `self._require_workspace_access(write=True)` first. When such a method is exposed as an agent tool (e.g., PraisonAI FileTools loaded b

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-40154-praisonai-tool-static-destructive-file-op-without-workspace-guard --engine opengrep

Description

A `@staticmethod` on a file-tooling class performs a destructive filesystem operation (os.remove / os.unlink / shutil.move / shutil.rmtree / shutil.copy / shutil.copy2) without invoking a workspace authorization guard such as `self._require_workspace_access(write=True)` first. When such a method is exposed as an agent tool (e.g., PraisonAI FileTools loaded b