BuzzPHP
LightDarkSystem

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?

PackageAffected versionsFixed in
phalcon/cphalcon (opens in a new tab)<= 5.15.05.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 audit

Advisory details

SeverityCritical
Published
Updated
CVECVE-2026-59989 (opens in a new tab)
GHSAGHSA-hrwp-4hh9-c8r8 (opens in a new tab)
WeaknessCWE-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 .

Other recent advisories for this package

All Composer security advisories