mtdowling/jmespath.php is vulnerable to Code Injection
98
CVE Score
Critical
Code Injection
mtdowling/jmespath.php emits parsed JMESPath function names into generated PHP source without safely escaping them as string literals when JmesPath\CompilerRuntime is used (or when JP_PHP_COMPILE is enabled). A crafted expression using a non-identifier function callee can break out of the generated string literal and write attacker-controlled PHP into the compiled-expression cache file, which the compiler runtime then loads and executes. This allows arbitrary PHP code execution with the privileges of the PHP process when an attacker can influence the expression string. The fix escapes function names with var_export() and rejects non-identifier function callees in the parser.
Upgrade the mtdowling/jmespath.php library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.1.0 - 2.9.0
Fixed in 2.9.1mtdowling/jmespath.php is vulnerable to Code Injection in versions 0.1.0 - 2.9.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.