{"id":"CVE-2026-54133","published":"2026-06-12T13:56:37Z","modified":"2026-06-12T15:07:16Z","title":"jmespath.php has CompilerRuntime code injection via unescaped function names","vendor":"jmespath","product":"jmespath.php","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00564,"percentile":0.40613,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://github.com/jmespath/jmespath.php/security/advisories/GHSA-pcw8-m77r-2528","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.0,"factors":[{"name":"EPSS percentile","points":8.12},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"jmespath","affectedVersions":[{"vendor":"jmespath","product":"jmespath.php","versions":["< 2.9.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-06-12T15:07:03.703942Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"mtdowling/jmespath.php","vulnerableRanges":["<2.9.1"],"patched":["2.9.1"],"from":["GHSA-pcw8-m77r-2528"],"provenance":"source"}],"summary":{"text":"jmespath.php, the PHP implementation of the JMESPath JSON query language, contains a code injection flaw in its CompilerRuntime component, where parsed function names are written into generated PHP source without adequate escaping. An attacker who can supply a crafted JMESPath expression to an application using CompilerRuntime (with JP_PHP_COMPILE enabled) can cause attacker-controlled PHP code to be written into a cache file and executed by the compiler runtime, requiring no authentication or user interaction, only that the untrusted expression reaches the compiler.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:32Z"},"euvd":{"id":"EUVD-2026-36431","exploited":false,"provenance":"source"}}