Phalcon Volt compiler `join` filter compile-time PHP code injection (SSTI leads to RCE)
Critical severity. Published 21 August 2026. Update phalcon/cphalcon to 5.16.0 or later: composer update phalcon/cphalcon.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| phalcon/cphalcon (opens in a new tab) | <= 5.15.0 | 5.16.0 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show phalcon/cphalcon
composer auditAdvisory details
| Severity | Critical |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-59989 (opens in a new tab) |
| GHSA | GHSA-hrwp-4hh9-c8r8 (opens in a new tab) |
| Weakness | CWE-94, CWE-1336 |
What the advisory says
Summary
The Volt template compiler in Phalcon generates the PHP for the join filter by string-concatenating the filter's raw template-literal argument bytes with no escaping. The separator literal is dropped verbatim between two single quotes the compiler emits, and the piped array argument is emitted completely bare. A Volt template whose join arguments are attacker-influenced can therefore break out of the generated join('…') call and inject arbitrary PHP into the compiled template. Volt writes that compiled template to a cache file and require()s it at render time, so the injected PHP executes i.e.
Source: GHSA-hrwp-4hh9-c8r8 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .