# CVE-2026-54133: jmespath.php has CompilerRuntime code injection via unescaped function names

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-12T13:56:37.874Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-pcw8-m77r-2528
- Weaknesses: CWE-20, CWE-94, CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jmespath jmespath.php: < 2.9.1
- mtdowling/jmespath.php (Packagist): before 2.9.1
- jmespath jmespath: before 2.9.1

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/jmespath/jmespath.php/security/advisories/GHSA-pcw8-m77r-2528> (exploit, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54133> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/mtdowling/jmespath.php/CVE-2026-54133.yaml> (web)
- <https://github.com/jmespath/jmespath.php> (package)

## Sources

- CVE List: [CVE-2026-54133](https://www.cve.org/CVERecord?id=CVE-2026-54133), CVE Terms of Use, modified 2026-06-12
- GitHub Advisory Database: [GHSA-pcw8-m77r-2528](https://github.com/advisories/GHSA-pcw8-m77r-2528), CC-BY-4.0, modified 2026-08-18
- NVD: [CVE-2026-54133](https://nvd.nist.gov/vuln/detail/CVE-2026-54133), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-54133 · Whole record: https://cve.day/CVE-2026-54133.json · Rebuilt by cve.day 2026-11-25T22:59:24.519Z
