<?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>Application-Vulnerability - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/application-vulnerability/</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, 19 Jun 2026 19:47:47 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/application-vulnerability/feed.xml" rel="self" type="application/rss+xml"/><item><title>Stack Buffer Overflow in Oj Ruby Gem (CVE-2026-54502)</title><link>https://feed.craftedsignal.io/briefs/2026-06-stack-buffer-overflow-oj-gem/</link><pubDate>Fri, 19 Jun 2026 19:47:47 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-stack-buffer-overflow-oj-gem/</guid><description>The `Oj.dump` function in the `Oj` Ruby gem is vulnerable to a stack-based buffer overflow (CVE-2026-54502) due to improper validation of the `:indent` parameter, allowing an attacker to trigger a process crash or potentially remote code execution by providing an excessively large integer value, affecting all `Oj` gem versions prior to `3.17.2`.</description><content:encoded><![CDATA[<p>An attacker can exploit a critical stack-based buffer overflow vulnerability, identified as CVE-2026-54502, within the <code>Oj.dump</code> function of the <code>Oj</code> Ruby gem. This vulnerability affects all versions of the <code>Oj</code> gem prior to <code>3.17.2</code>. The flaw stems from insufficient input validation of the <code>:indent</code> parameter; when an application passes an extremely large integer value (such as <code>INT_MAX</code>, 2,147,483,647) to this parameter, the internal <code>fill_indent</code> function in <code>ext/oj/dump.h</code> calls <code>memset</code> without proper size checks. This leads to an attempt to write gigabytes of data into a small, stack-allocated buffer, corrupting the process's stack and resulting in an immediate denial of service through a crash. If exploited precisely, this could also enable remote code execution, posing a significant risk to the availability and integrity of Ruby applications using the vulnerable gem.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li><strong>Initial Access</strong>: An attacker identifies a Ruby application utilizing a vulnerable <code>Oj</code> gem version (prior to 3.17.2) and exposing a parameter or input field that directly or indirectly controls the <code>indent</code> argument for the <code>Oj.dump</code> function. This could be a web API endpoint, a file processing service, or another untrusted input vector.</li>
<li><strong>Input Provision</strong>: The attacker crafts a request (e.g., an HTTP GET/POST parameter, an API call payload, or a crafted data file) containing an excessively large integer value (such as <code>2,147,483,647</code> representing <code>INT_MAX</code>) for the <code>indent</code> parameter.</li>
<li><strong>Application Processing</strong>: The vulnerable Ruby application receives and processes this malicious input, passing the large integer value to the <code>Oj.dump</code> function's <code>indent</code> option without adequate validation.</li>
<li><strong>Vulnerable Function Call</strong>: Internally, <code>Oj.dump</code> invokes its C extension <code>fill_indent</code> function (located in <code>ext/oj/dump.h</code>), which receives the large <code>indent</code> value.</li>
<li><strong>Buffer Overflow</strong>: Within <code>fill_indent</code>, the <code>memset</code> function is called with the attacker-controlled large size, causing it to attempt to write gigabytes of data (<code>(size_t)opts-&gt;indent * depth</code>) into a much smaller, fixed-size stack-allocated <code>out</code> buffer (approximately 4KB).</li>
<li><strong>Stack Corruption and Crash</strong>: This massive write operation overflows the <code>out</code> buffer, severely corrupting the stack memory of the Ruby process.</li>
<li><strong>Denial of Service</strong>: The stack corruption immediately triggers an abnormal termination of the Ruby application process, leading to a denial of service for the affected service or application.</li>
<li><strong>Potential Code Execution</strong>: In specific, carefully crafted scenarios, this stack corruption could potentially be leveraged to overwrite critical program control flow data (e.g., return addresses), allowing the attacker to achieve arbitrary code execution within the context of the vulnerable Ruby process.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-54502 primarily leads to a denial of service (DoS) for Ruby applications relying on the vulnerable <code>Oj</code> gem, causing immediate process crashes and service unavailability. Depending on the application's design, this can severely impact business operations and user access. In more sophisticated attack scenarios, the stack-based buffer overflow might be exploited to achieve arbitrary remote code execution (RCE). If RCE is successful, attackers could compromise the underlying server, execute commands with the privileges of the Ruby process, exfiltrate sensitive data, or establish further persistence within the environment, leading to significant data breaches, system compromise, and financial losses.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-54502 immediately by upgrading the <code>oj</code> gem to version 3.17.2 or later in all affected Ruby applications.</li>
<li>Deploy the webserver Sigma rule &quot;Detect CVE-2026-54502 Exploitation Attempt - Large Oj.dump Indent&quot; in this brief to your SIEM to identify attempts at exploiting this vulnerability.</li>
<li>Implement robust input validation for all user-supplied data, particularly for parameters that influence data formatting or transformation, to prevent excessively large integer values from reaching sensitive functions.</li>
<li>Deploy the process creation Sigma rules &quot;Detect Ruby Process Spawning Suspicious Child Process (Windows)&quot; and &quot;Detect Ruby Process Spawning Suspicious Child Process (Linux)&quot; to monitor for potential remote code execution payloads from Ruby processes.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>overflow</category><category>ruby</category><category>gem</category><category>denial-of-service</category><category>remote-code-execution</category><category>application-vulnerability</category></item><item><title>PraisonAI GitHub template cache path traversal allows outside-cache file write and directory deletion</title><link>https://feed.craftedsignal.io/briefs/2026-06-praisonai-path-traversal/</link><pubDate>Thu, 18 Jun 2026 15:28:36 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-praisonai-path-traversal/</guid><description>PraisonAI's template loader is vulnerable to a path traversal flaw (GHSA-f44v-7qgw-9gh9) when processing GitHub template URIs, allowing an unauthenticated attacker to write arbitrary files or delete arbitrary directories on the system running PraisonAI, leading to corruption of user configuration, project state, or application data.</description><content:encoded><![CDATA[<p>PraisonAI's template loader, particularly versions 2.6.0 through 4.6.57, contains a path traversal vulnerability (GHSA-f44v-7qgw-9gh9) that allows an attacker to manipulate file system operations. The issue stems from insufficient validation of user-controlled <code>ref</code> and <code>template path</code> segments within GitHub template URIs (e.g., <code>github:owner/repo/template@v1.0.0</code>). When a crafted URI with directory traversal sequences (<code>..</code>) is processed, PraisonAI's cache layer constructs file paths that escape its intended cache directory. This enables an attacker to either write arbitrary <code>.cache_meta.json</code> files to unintended locations or, under specific conditions, delete arbitrary directories on the host system. This vulnerability, distinct from Zip Slip attacks, does not require malicious archives and affects PraisonAI installations across various operating systems, posing a significant risk of data corruption or denial of service.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious PraisonAI GitHub template URI containing directory traversal sequences (e.g., <code>github:attacker/repo/template@../../../../outside-target</code>) within the <code>ref</code> portion.</li>
<li>A user or automated service loads this crafted URI using PraisonAI's <code>TemplateLoader.load()</code> method.</li>
<li>PraisonAI's template resolver (<code>praisonai/templates/resolver.py</code>) captures the owner, repo, template path, and the malicious <code>ref</code> verbatim without segment validation.</li>
<li>The <code>_get_cache_path()</code> function in <code>praisonai/templates/cache.py</code> concatenates these unvalidated segments to construct a local cache path, resulting in a path that escapes the intended <code>~/.praison/cache/templates/</code> directory.</li>
<li><strong>Scenario A (Arbitrary File Write):</strong> During the first load, the <code>cache.put()</code> method attempts to write the <code>.cache_meta.json</code> file to the attacker-controlled escaped path.</li>
<li><strong>Scenario B (Arbitrary Directory Deletion):</strong> If a legitimate cache entry for the <em>same owner/repo/template prefix</em> already exists, a subsequent load with the malicious URI causes <code>cache.put()</code> to first call <code>shutil.rmtree()</code> on the attacker-controlled escaped path, deleting an arbitrary directory.</li>
<li>The attacker successfully performs either the creation of <code>.cache_meta.json</code> at an arbitrary location (e.g., corrupting application configuration) or the deletion of an arbitrary directory on the system where PraisonAI is running.</li>
<li>This leads to corruption of user configuration, project state, or application data, potentially resulting in denial of service or further compromise.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this path traversal vulnerability can lead to severe consequences for organizations utilizing PraisonAI. An attacker can create arbitrary files, specifically <code>.cache_meta.json</code>, in locations outside the application's intended cache, potentially overwriting critical configuration files or injecting malicious data. More critically, under a specific two-stage scenario, an attacker can trigger the deletion of arbitrary directories via <code>shutil.rmtree()</code>, leading to data destruction, corruption of user or project data, or even a complete denial of service by removing essential system directories. All PraisonAI versions from 2.6.0 up to 4.6.57 are affected.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch PraisonAI immediately when a fix is released for versions &gt;= 2.6.0 and &lt;= 4.6.57 as per GHSA-f44v-7qgw-9gh9.</li>
<li>Deploy the provided Sigma rules to detect suspicious file write and deletion activities initiated by PraisonAI processes.</li>
<li>Enable detailed file creation and deletion logging (e.g., Sysmon Event ID 11 for file creation, Event ID 23 for file deletion on Windows; auditd on Linux) for Python processes to activate the detection rules.</li>
<li>If PraisonAI is used in a critical environment, implement strict path validation within any custom <code>TemplateCache</code> or <code>TemplateLoader</code> implementations to reject absolute paths, <code>.</code> or <code>..</code> segments, or paths escaping the intended cache root, as suggested in GHSA-f44v-7qgw-9gh9.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>path-traversal</category><category>application-vulnerability</category><category>python</category><category>file-write</category><category>file-deletion</category></item><item><title>PraisonAI Recipe Policy Bypass via YAML Workflow Approval</title><link>https://feed.craftedsignal.io/briefs/2026-06-praisonai-policy-bypass/</link><pubDate>Thu, 18 Jun 2026 15:01:53 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-06-praisonai-policy-bypass/</guid><description>A policy bypass vulnerability in PraisonAI (CVE-NONE) allows untrusted recipes to self-approve and execute default-denied critical shell tools, such as `execute_command`, by declaring them in `workflow.yaml` instead of `TEMPLATE.yaml requires.tools`, leading to arbitrary command execution with the privileges of the PraisonAI process.</description><content:encoded><![CDATA[<p>A critical policy bypass vulnerability affects PraisonAI, a recipe execution platform, specifically versions <code>v4.5.87</code> through <code>v4.6.57</code>. The platform's security model intends to block &quot;dangerous tools&quot; (e.g., <code>execute_command</code>) unless an operator explicitly allows them via <code>allow_dangerous_tools=True</code>. However, an untrusted recipe can circumvent this control. By crafting a <code>workflow.yaml</code> that declares a default-denied tool within an agent's <code>tools</code> section and simultaneously using a top-level <code>approve:</code> directive, the recipe can effectively self-approve the dangerous tool. This bypasses the initial security policy that only checks <code>TEMPLATE.yaml requires.tools</code>, enabling the recipe to execute arbitrary commands without operator consent. The vulnerability affects both local CLI usage and HTTP recipe-runner deployments, with potentially higher severity if exposed to authenticated users.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li><strong>Attacker crafts malicious PraisonAI recipe</strong>: The attacker prepares a recipe consisting of a <code>workflow.yaml</code> that declares a default-denied critical tool (e.g., <code>execute_command</code>) under an agent's <code>tools</code> section and includes <code>approve: [execute_command]</code> at the top level, while ensuring the <code>TEMPLATE.yaml requires.tools</code> section does not list any dangerous tools.</li>
<li><strong>Operator runs untrusted recipe</strong>: An operator or user runs the attacker-controlled recipe through the PraisonAI local CLI or an exposed HTTP recipe runner, critically without specifying <code>allow_dangerous_tools=True</code>.</li>
<li><strong>Initial policy check bypassed</strong>: <code>PraisonAI</code>'s <code>_check_tool_policy()</code> function inspects only the <code>TEMPLATE.yaml requires.tools</code> list. Since the malicious <code>workflow.yaml</code> avoids listing dangerous tools there, the recipe passes this initial security gate.</li>
<li><strong><code>YAMLWorkflowParser</code> processes <code>workflow.yaml</code></strong>: During the <code>_execute_steps_workflow()</code> phase, <code>YAMLWorkflowParser</code> parses the <code>workflow.yaml</code>, resolving agent-level <code>tools:</code> declarations and extracting the top-level <code>approve:</code> directives.</li>
<li><strong>Workflow self-approves dangerous tools</strong>: The <code>Workflow.start()</code> method invokes <code>set_yaml_approved_tools()</code>, which registers the tools specified in the <code>approve:</code> directive (including the dangerous <code>execute_command</code>) within the application's approval context, effectively self-approving them.</li>
<li><strong>Agent executes dangerous command</strong>: When the PraisonAI agent within the workflow attempts to utilize the <code>execute_command</code> tool, it is treated as pre-approved due to the bypass, allowing the agent to proceed with its execution.</li>
<li><strong>Arbitrary command execution</strong>: The <code>execute_command</code> tool then executes arbitrary operating system commands specified by the attacker within the <code>workflow.yaml</code>, inheriting the privileges of the underlying PraisonAI process.</li>
<li><strong>Impact</strong>: This unapproved command execution can lead to remote code execution, data exfiltration, system compromise, or facilitate further lateral movement within the compromised environment.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>This policy bypass allows an untrusted recipe to execute arbitrary commands with the privileges of the PraisonAI process. If an operator runs such a recipe, or if a PraisonAI HTTP recipe runner is exposed to users who can choose recipe names or URIs, successful exploitation can lead to full system compromise. The exact trigger for command execution depends on the specific workflow and model/tool-call path, but the core policy boundary is breached before execution. This impacts both local CLI usage of PraisonAI and deployments utilizing the HTTP recipe runner, potentially escalating to an authenticated remote execution issue if the API is accessible.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li><strong>Patch <code>PraisonAI</code></strong>: Upgrade <code>PraisonAI</code> to version <code>4.6.61</code> or later immediately to address the vulnerability described in the GHSA advisory.</li>
<li><strong>Monitor <code>process_creation</code> logs</strong>: Deploy the Sigma rules provided in this brief to detect suspicious command execution originating from <code>PraisonAI</code> processes.</li>
<li><strong>Enable Sysmon logging</strong>: Ensure Sysmon process creation and command line logging (Event ID 1) is enabled on all Windows systems running PraisonAI to facilitate detection of spawned shell processes.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>application-vulnerability</category><category>policy-bypass</category><category>remote-code-execution</category><category>praisonai</category><category>python</category></item></channel></rss>