<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>PraisonAI &lt;= 4.6.37 — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/praisonai--4.6.37/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 29 May 2026 22:33:10 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/praisonai--4.6.37/feed.xml" rel="self" type="application/rss+xml"/><item><title>PraisonAI Arbitrary File Write Vulnerability</title><link>https://feed.craftedsignal.io/briefs/2026-05-praisonai-file-write/</link><pubDate>Fri, 29 May 2026 22:33:10 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-praisonai-file-write/</guid><description>PraisonAI versions 4.6.37 and earlier are vulnerable to arbitrary file write due to missing path validation in the `write_file` function when `workspace=None`, allowing an attacker to write attacker-controlled content to arbitrary file paths on the victim's system via a malicious webpage.</description><content:encoded><![CDATA[<p>PraisonAI versions up to 4.6.37 are susceptible to an arbitrary file write vulnerability (CVE-2026-47397) within its Python API. This flaw stems from the <code>write_file</code> function&rsquo;s lack of path validation when the <code>workspace</code> parameter is set to <code>None</code>, a default configuration in production environments. An attacker can exploit this by hosting a webpage containing hidden metadata that specifies an arbitrary file path and content. When a victim&rsquo;s PraisonAI agent crawls and analyzes this webpage, it autonomously calls the <code>write_file</code> function, writing the attacker-controlled content to the specified path on the victim&rsquo;s system. This vulnerability allows attackers to bypass injection defenses and LLM safety measures, as the agent performs normal operations triggered by the malicious metadata.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker crafts a malicious webpage containing hidden metadata within a <code>&lt;span&gt;</code> element, defining the <code>output_file</code> and <code>output_content</code> parameters.</li>
<li>A victim uses the PraisonAI Python API to initiate a web crawling task, targeting the attacker&rsquo;s malicious webpage using the <code>web_crawl</code> tool.</li>
<li>The PraisonAI agent crawls the attacker-controlled webpage using the <code>web_crawl</code> tool, extracting the hidden metadata.</li>
<li>The agent parses the extracted metadata and identifies the <code>output_file</code> parameter, which specifies the arbitrary file path.</li>
<li>The agent, as part of its normal operation, autonomously calls the <code>write_file</code> function to write the extracted content to a file.</li>
<li>Because <code>workspace</code> is <code>None</code>, path validation is skipped in <code>code/tools/write_file.py:77-83</code>.</li>
<li>The <code>write_file</code> function writes the content defined by the <code>output_content</code> parameter to the file path specified by <code>output_file</code> on the victim&rsquo;s system.</li>
<li>The attacker achieves arbitrary file write on the victim&rsquo;s system, potentially leading to code execution or data exfiltration.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows an attacker to write arbitrary files to the victim&rsquo;s system. This can lead to various malicious outcomes, including overwriting critical system files, injecting malicious code, or exfiltrating sensitive information. The vulnerability affects any user of PraisonAI who processes attacker-controlled webpages using the <code>web_crawl</code> tool, potentially impacting a wide range of users and applications that rely on PraisonAI for automated web analysis.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade PraisonAI to a version later than 4.6.37 to incorporate the fix for CVE-2026-47397.</li>
<li>Deploy the Sigma rule &ldquo;Detect PraisonAI Arbitrary File Write via Web Crawl&rdquo; to detect exploitation attempts by monitoring for calls to the <code>write_file</code> function with attacker-controlled paths.</li>
<li>Implement robust input validation and sanitization measures to prevent malicious metadata injection into web pages processed by PraisonAI agents.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>arbitrary file write</category><category>web crawling</category><category>data exfiltration</category></item></channel></rss>