HighVulnerabilityLLM-specific
GHSA-hvhp-v2gc-268q: PraisonAI has an Arbitrary File Write in Python API
- Identifiers
- CVE-2026-47397GHSA-hvhp-v2gc-268q
- Published
- Record updated
- Affected
- PraisonAI <= 4.6.39
- Fixed in
- 4.6.40
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.5%
Summary
PraisonAI versions up to and including 4.6.37 skip path validation in `write_file` (`code/tools/write_file.py:77-83`) when `workspace=None`. Hidden metadata on a crawled webpage can then cause an agent to call `write_file` autonomously and write attacker-chosen content to an arbitrary path.
Mitigation
Fix: if `workspace` is None, set it to `os.getcwd()` and reject paths outside it with `{'success': False, 'error': 'Path outside workspace'}` (using `is_path_within_directory`).
Related items
- MediumCVE-2026-108759: mistral.rs sandbox escape via symlinks in mistralrs-code-execSimilar attack · NVD/CVE Database
- MediumCVE-2026-108756: Abilityai Trinity missing authorization in Telegram router binding operationsSimilar attack · NVD/CVE Database
- MediumCVE-2026-108575: BerriAI LiteLLM improper authorization in secret resolution via api_keySimilar attack · NVD/CVE Database
- MediumCVE-2026-108574: BerriAI LiteLLM authorization bypass in session spend log view via session_idSimilar attack · NVD/CVE Database
- MediumCVE-2026-108670: JeecgBoot missing authorization in AiragPromptsControllerSimilar attack · NVD/CVE Database