<?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/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Jmespath.php - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/jmespath.php/</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>Tue, 18 Aug 2026 20:56:10 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/jmespath.php/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Remote Code Execution in jmespath.php via CompilerRuntime</title><link>https://feed.craftedsignal.io/briefs/2026-08-jmespath-injection/</link><pubDate>Tue, 18 Aug 2026 20:56:10 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-jmespath-injection/</guid><description>The mtdowling/jmespath.php library contains a critical code injection vulnerability, CVE-2026-54133, allowing attackers to execute arbitrary PHP code when untrusted JMESPath expressions are processed by the CompilerRuntime.</description><content:encoded><![CDATA[<p>The mtdowling/jmespath.php library is susceptible to a code injection vulnerability (CVE-2026-54133) affecting versions prior to 2.9.1. The vulnerability exists within the <code>CompilerRuntime</code> component, which is designed to optimize performance by compiling JMESPath expressions into PHP code before execution. An attacker who can provide input to an application that uses this library can craft a malicious JMESPath expression containing a non-identifier value in a function call position. Because the library fails to properly escape these function names before writing them into generated PHP cache files, the injected code is interpreted and executed by the PHP engine when the cache file is loaded. This vulnerability is triggered either through explicit use of <code>JmesPath\CompilerRuntime</code> or by enabling the <code>JP_PHP_COMPILE</code> environment variable, which forces the usage of the compiler. Successful exploitation leads to remote code execution under the privileges of the web server process.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker identifies an application endpoint that accepts user-supplied JMESPath expressions for data transformation or filtering.</li>
<li>The application is confirmed to be using <code>mtdowling/jmespath.php</code> versions &lt; 2.9.1.</li>
<li>The attacker provides a crafted JMESPath expression string designed to exploit the missing escaping logic in the compiler.</li>
<li>The library's <code>CompilerRuntime</code> parses the expression and generates a temporary PHP cache file containing the attacker's injected payload.</li>
<li>The application triggers the execution of the compiled expression, causing the PHP engine to include and evaluate the malicious cache file.</li>
<li>The injected payload executes within the application process context.</li>
<li>The attacker gains the ability to execute arbitrary PHP code, potentially leading to system compromise or data exfiltration.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The vulnerability allows unauthenticated or authenticated attackers (depending on the application's input exposure) to achieve remote code execution. Given that this library is a standard tool for handling JSON-like data in PHP applications, the potential scope includes any web application enabling <code>JP_PHP_COMPILE</code> or explicitly using the <code>CompilerRuntime</code> to process untrusted user input. Success results in full control over the application's PHP process, providing a path to access local files, modify application logic, or pivot deeper into the internal network.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade <code>mtdowling/jmespath.php</code> to version 2.9.1 or later to remediate CVE-2026-54133.</li>
<li>If upgrading is not immediately possible, disable the <code>JP_PHP_COMPILE</code> environment variable across all application environments to force the use of the safer <code>AstRuntime</code>.</li>
<li>Audit application code to identify usages of <code>JmesPath\CompilerRuntime</code> and ensure that no user-controlled input is ever passed to these instances without rigorous validation.</li>
<li>Implement strict input validation or use allowlists for any JMESPath expressions accepted from external sources to prevent the injection of malicious characters.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>remote-code-execution</category><category>php</category><category>code-injection</category></item></channel></rss>