Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify endpoint accepting JMESPath expression
-
DeliveryConfirm CompilerRuntime backend in use
-
ExploitSend crafted expression with malicious function-name token
-
InstallCompiler emits poisoned PHP cache file
-
C2Runtime includes generated file
-
ExecuteArbitrary PHP executes as web user
-
ImpactEstablish foothold on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires the target PHP application to (1) instantiate JmesPath\CompilerRuntime - or have JP_PHP_COMPILE enabled so the facade selects the compiler - rather than the default AstRuntime, (2) pass an attacker-controlled JMESPath expression string into that runtime's compile/search call, and (3) run jmespath/jmespath.php at a version below 2.9.1 with a writable compiler cache directory the PHP process can later include. No authentication, user interaction, or special platform is required at the HTTP layer (CVSS AV:N/AC:L/PR:N/UI:N), but the vulnerability is dormant in deployments that only use AstRuntime or never accept expressions from untrusted sources - limiting realistic risk to applications that surface JMESPath as a user-facing query interface. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H scores 9.8 and is technically defensible for any web application that forwards user-supplied expressions to CompilerRuntime, since exploitation then becomes a single crafted HTTP parameter. However, real-world risk is gated by an application-level precondition that CVSS cannot express: the application must (a) use CompilerRuntime rather than the default AstRuntime and (b) feed it attacker-controlled expressions. EPSS, KEV, and SSVC data were not supplied; the advisory carries no indicator of in-the-wild abuse and no public PoC was identified, so this should be treated as a high-severity latent RCE in a popular library rather than confirmed active exploitation. Conflict note: the input tag list mentions 'Information Disclosure' but the description and CVSS clearly describe arbitrary code execution - trust the description over the tag. |
| Exploit ScenarioDerived | A web application exposes a search or reporting endpoint that accepts a JMESPath expression from the client and evaluates it server-side through JmesPath\CompilerRuntime for performance. An unauthenticated attacker submits an expression whose function-name token is crafted to break out of the generated PHP literal and append arbitrary statements (for example, a system() call), the compiler writes the malicious file to the cache directory and immediately includes it, and the attacker's payload runs under the PHP-FPM/web-server user, yielding full RCE. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 12, 2026
Remote code execution in jmespath.php versions prior to 2.9.1 allows attackers controlling JMESPath expressions to inject arbitrary PHP into compiler-generated cache files, which are then loaded and executed by JmesPath\CompilerRuntime. The flaw stems from insufficient escaping of parsed function names when the compiler emits PHP source, enabling code execution whenever an application evaluates untrusted expressions through the compiler runtime. No public exploit identified at time of analysis, but the CVSS 9.8 rating reflects unauthenticated network-reachable RCE in any web app that pipes user input into the compiler.
RemediationAI
Vendor-released patch: upgrade jmespath/jmespath.php to 2.9.1 or later via Composer (composer require jmespath/jmespath.php:^2.9.1) and clear any previously generated compiler cache files on disk, since poisoned cache entries written before the upgrade would still execute on include. If immediate upgrade is impossible, apply the vendor-documented workarounds: unset or set the JP_PHP_COMPILE environment variable to disabled, switch all evaluation sites to the default AstRuntime instead of JmesPath\CompilerRuntime, and ensure any code path that accepts untrusted expressions never reaches the compiler runtime - the trade-off is the loss of the compiled-evaluation performance benefit, which is typically minor for non-hot paths. Full advisory and patch details: https://github.com/jmespath/jmespath.php/security/advisories/GHSA-pcw8-m77r-2528.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
JMESPath is a declarative query language for JSON, and jmespath.php is the official PHP implementation maintained at github.com/jmespath/jmespath.php. The library offers two evaluation backends: AstRuntime (interprets the parsed expression tree at runtime) and CompilerRuntime (transpiles the expression into a PHP file written under a cache directory and includes it for performance). The vulnerability is a CWE-20 Improper Input Validation realized as a code-generation injection: parsed JMESPath function-name tokens are concatenated into emitted PHP source without escaping, so a crafted expression breaks out of the intended string/identifier context and embeds arbitrary PHP statements that execute on the next include. The affected CPE is cpe:2.3:a:jmespath:jmespath.php:*:*:*:*:*:*:*:* covering all versions below 2.9.1.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Network-reachable RCE with no auth or UI, but exploitation depends on the app using CompilerRuntime with untrusted expressions, so AC:H rather than AC:L.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
jmespath.php allows users to use JMESPath, software for declaratively specifying how to extract elements from a JSON document, in PHP applications with PHP data structures. Versions prior to 2.9.1 can generate and execute attacker-controlled PHP code when JmesPath\CompilerRuntime is used with an attacker-controlled JMESPath expression. The compiler emits parsed JMESPath function names into generated PHP source without sufficient escaping. A crafted expression can cause the generated cache file to contain executable attacker-controlled PHP, which is then loaded by the compiler runtime. The issue is patched in 2.9.1 and later. As a workaround, disable JP_PHP_COMPILE and do not use JmesPath\CompilerRuntime with attacker-controlled expressions. Use the default AstRuntime for untrusted expressions. Applications that must continue accepting untrusted JMESPath expressions before upgrading should ensure those expressions are never evaluated by the compiler runtime.
Articles & Coverage 2
Executive ViewAI
jmespath.php versions prior to 2.9.1 contain a critical unauthenticated remote code execution vulnerability that allows attackers to execute arbitrary PHP code through malicious JMESPath expressions. Any organization running web applications with this library that process user input faces immediate risk of complete system compromise, unauthorized data access, and potential malware installation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict allowlist-based input validation for all user-supplied JMESPath expressions; (2) Restrict JMESPath compiler to trusted, pre-validated expressions only; (3) Set read-only file permissions on PHP cache directories and run PHP processes with minimal privilege; (4) Deploy WAF/IPS signatures to detect and block JMESPath injection payloads; (5) Execute affected applications in isolated containers with runtime execution restrictions; (6) Enable detailed application logging to detect suspicious expression evaluation patterns.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-36431
GHSA-pcw8-m77r-2528
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB